barrust / pyspellchecker

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

nan flagged as should not check #125

Closed HowardJeng closed 2 years ago

HowardJeng commented 2 years ago

In 0.6.3, the word "nan" is hardcoded to be rejected regardless of dictionary because in _check_if_should_check() the word is tried against float(word), but 'nan' is the string representation for not a number, so the conversion succeeds.

barrust commented 2 years ago

resolved by #127