+ 2

List of all the words in the English ïżŒdictionary on pythonïżŒ?

Is there is anyway to get a List of all the words in the English dictionary on python?

4th Aug 2020, 7:23 PM
Brosk
Brosk  - avatar
5 Answers
+ 1
Jan Markus how can i do that can you explain it in easier way for beginners like me :) ?
4th Aug 2020, 8:02 PM
Brosk
Brosk  - avatar
+ 1
you can use the nltk library. first, download the 'words' file like this: impot nltk nltk.download ('words') and it will show you the path where it has been downloaded. you can then print the words using the following code: from nltk.corpus import words words = words.words() print (words) BTW, it has 263, 736 words in the file. and of course, as ~ swim ~ told, you can use web scraping but you have a slight chance of google blocking your account (correct me if I'm wrong) happy coding!
5th Aug 2020, 5:29 AM
sujay simha
sujay simha - avatar
+ 1
THANK YOU ALL 👍👍👆👌
5th Aug 2020, 9:26 AM
Brosk
Brosk  - avatar
+ 1
you are welcome Brosk Jako!!
5th Aug 2020, 9:29 AM
sujay simha
sujay simha - avatar