dwyl / english-words

:memo: A text file containing 479k English words for all your dictionary/word-based projects e.g: auto-completion / autosuggestion
The Unlicense
10.54k stars 1.84k forks source link

read_english_dictionary.py not working #161

Open micksulley opened 1 year ago

micksulley commented 1 year ago

I have copied read_english_dictionary.py and words_alpha.txt. When I run the code it just returns 'false' If I add print(english_words) it prints what looks like the file contents, but not a recognisable list of English words Am I missing something here? Mick

nelsonic commented 1 year ago

Hi @micksulley, 👋 thanks for opening this issue to report your pain with read_english_dictionary.py ... 😢

As it stands the file is considered "sample code":

https://github.com/dwyl/english-words/blob/a77cb15f4f5beb59c15b945f2415328a6b33c3b0/read_english_dictionary.py#L1-L11

Not really something we are actively using in any of our projects. Perhaps we should write a test and run it on GitHub Actions CI to verify that it works. 💭