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