Pybot Wiki
Advertisement

This page describes a user-fix which is ordinarily used with the replace.py script. The chances are that you will not be able to use this code directly on your wiki. It is an example of the kind of thing you can do with user-fixes. You will have to update the code on this page to fit your particular circumstance.

NOTE: This script is not to be confused with User:CzechOut's SpellBot! That script changes words from their American spelling to British Spelling. This script corrects misspelled words!

CommonTypos
Creator: Corey Chambers
Code location: pybot:Fix:SpellingBot
What it does: Corrects misspelled words.
Complexity: Intermediate


CommonTypos is a user-fix that you can use with the replace.py script. It corrects for some misspelled words. As of right now it can only fix around 90 of the most common misspellings that I could think of. Feel free to add more!

CommonTypos should always be run in manual mode! Although it has been tested several times at the Doctor Who Answers Wikia. It could still occasionally make a mistake.


NOTE: Be sure to change the line:

'en':u'Correcting misspelled words. Report problems [[User_talk:BOTUSERNAME|here]].'

So that it says your bot's username instead of BOTUSERNAME!

Code

Fix:CommonTypos/Code

Advertisement