1#pip install pyspellchecker
2from spellchecker import SpellChecker
3
4spell = SpellChecker()
5
6# find those words that may be misspelled
7misspelled = spell.unknown(['something', 'is', 'hapenning', 'here'])
8
9for word in misspelled:
10 # Get the one `most likely` answer
11 print(spell.correction(word))
12
13 # Get a list of `likely` options
14 print(spell.candidates(word))