Regular expressions based on the fly typo fixer.
You can get script here:
http://www.autohotkey.net/~TePe/TypoHunter.ahk
It is not trying to fix all typos, only most popular one. It is not meant to fully replace spellchecker, but in the meantime, it works fine in places where is no spellchecker available, for example in a chat programs.
To check if it is working type "hte" and press Space.
New version: March 24, 2008.
* Lots of bugs fixed
* Code clean up and some minor optimizations
* Updated RegEx rules base with fresh one from Wikipedia:
-several false positives removed
-multiple RegEx optimizations
-few new typos recognized
Difference from
AutoReplace
* TypoHunter rule base based on regular expressions. That mean that single rule can fix several typos in many different words. For example,
Code:
find="\b(O|o|[Dd]iso|[Rr]eo)rgi?niz(e[ds]?|ing)\b" replace="$1rganiz$2"
will catch and fix typos in words like "orgnizing", "disorginize", "reorgnized", "reorginizing" and etc.
*Rule base itself is taken from AutoWikiBrowser software
page. And Wikipedians check thousands of Wikipedia articles everyday using it, often expanding and improving it. Chances are, that by the time you are reading this someone already improved typo searching/fixing regular expressions in some way. It would take me less then 15 min to update script rules with fresh ones from Wikipedia.
*This script will correct your typos, not your style. It would not translate words spelled British/American way to opposed spelling. It would not "fix" words like "naive" or "melee" French way - both spellings are perfectly Ok in English. On the other hand, I will include French spelling regexes later for those who think they cool:)
*Lots of AutoReplace mistakes were corrected, we talking about rules that were replacing perfectly ok spelled word with one that misspelled or one that is spelled ok but have different meaning.
*9 different languages covered so far by Wikipedia regexes. If you are using more then one language, you might be able to modify this script to fix even more typos.
*As of now, there is no easy way to add new rules, like one with Win+H key in AutoReplace.
This is early beta. So far it was not fully tested.
Bugs/ToDo:
Script now checking only one word - there are some rules that looking to fix two-word typos.
Replace only letters that need to be replaced(i.e. only part of the word that was misspelled, not whole word).
French spelling rules.
In case you improved script in any way you can try to upload it here:
http://en.wikipedia.org/w/index.php?tit ... ction=edit