speller (python version) ignores a 45-char word when checking
curiouskiwi opened this issue · 1 comments
curiouskiwi commented
# ignore alphabetical strings too long to be words
if index >= LENGTH:
If the text contains pneumonoultramicroscopicsilicovolcanoconiosis
, index will be 45 (LENGTH
) after reading the final 's'
and the word is thrown away.
If you run ./speller large large
you will see:
WORDS MISSPELLED: 0
WORDS IN DICTIONARY: 143091
WORDS IN TEXT: 143090 <<---- missing the longest word