r/learnpython • u/StefanKocic • Aug 20 '24
List of all the english words
Is there a way to make a list of all the valid words in the english language, like in the game scrabble or wordle?
8
Upvotes
14
u/cyberjellyfish Aug 20 '24
Sure, you can download dictionary lists, but you won't have "all the words", not by a long shot.
Here's the official Scrabble list: https://drive.google.com/open?id=1oGDf1wjWp5RF_X9C7HoedhIWMh5uJs8s
6
u/paradroid42 Aug 20 '24
There are many word lists that are all different and more or less suitable for different purposes.
What do you want to do with your word list?
If you don't care about which word list to use, here's a repo that includes some sample code for loading the word list from the provided .txt file: https://github.com/dwyl/english-words
3
u/JamzTyson Aug 20 '24
Depending on the platform, your computer probably already has a large word list for spell checking and similar purposes. On Linux they are often located, (or symlinks), in
/usr/share/dict/.2
u/pipthemouse Aug 20 '24
Use corpora, like that
https://www.english-corpora.org/