#Spelling Correction with Python
# how to check spelling correction in python using textblod
from textblob import TextBlob
def Convert(string):
li=list(string.split())
return li
str1=input("enter your word:")
words=Convert(str1)
corrected_words=[]
for i in words:
corrected_words.append(TextBlob(i))
print("wrong words?",words)
print("Corrected words are")
for i in corrected_words:
print(i.correct(),end="")
Comments
Post a Comment