Answers for "spell check in python tutorial point"

0

spell check in python tutorial point

from spellchecker import SpellChecker

spell = SpellChecker()

# find those words that may be misspelled
misspelled = spell.unknown(['Let', 'us', 'wlak','on','the','groun'])

for word in misspelled:
    # Get the one `most likely` answer
    print(spell.correction(word))

    # Get a list of `likely` options
    print(spell.candidates(word))
Posted by: Guest on August-14-2020

Code answers related to "spell check in python tutorial point"

Python Answers by Framework

Browse Popular Code Answers by Language