barrust / pyspellchecker

Pure Python Spell Checking http://pyspellchecker.readthedocs.io/en/latest/
MIT License
694 stars 101 forks source link

"recieve" is not recognized as misspelled word #112

Closed akarmazyan closed 2 years ago

akarmazyan commented 2 years ago

Hi,

does anyone know why "recieve" is not detected as misspelled word ?

spell = SpellChecker(); word_list=['recieve', 'mydummy'] misspelled=spell.unknown(word_list) print (misspelled) {'mydummy'}

thanks ,

barrust commented 2 years ago

We can actually see that it is in the dictionary (erroneously) using the following code:

from spellchecker import SpellChecker
spell = SpellChecker()
print('recieve' in spell)  #True
print(spell['recieve']) #254

So, based on this we can see that the data source used to build the dictionaries included this version of recieve 254 times. I will add this misspelling to the en_exclude.txt file to ensure that it is not present in future versions of the dictionary.

If there are others (and there will be), you can add them to an issue until I find a better way to track words to add and remove. You can also remove it from your local dictionary using the remove functionality.

barrust commented 2 years ago

This exact issue will be resolved in the next release