spell check in python tutorial point

Solutions on MaxInterview for spell check in python tutorial point by the best coders in the world

showing results for - "spell check in python tutorial point"
Esteban
26 Sep 2020
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