Created
October 30, 2021 16:17
-
-
Save makmac213/7398f60094ef2346c2f00662bf75f6d5 to your computer and use it in GitHub Desktop.
Spellcheck using NLTK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nltk.corpus import words | |
def spellcheck(w): | |
if w in words.words(): | |
return True | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment