DEV Community

Cover image for I Made Spelling Checker in Python
Arpit
Arpit

Posted on

I Made Spelling Checker in Python

Using textblob module

Installation

pip install textblob
Enter fullscreen mode Exit fullscreen mode

code

# using textblob

from textblob import TextBlob 

a = "comuter progrming is gret"
print("original text: "+str(a)) 

b = TextBlob(a) 

print("corrected text: "+str(b.correct()))    

Enter fullscreen mode Exit fullscreen mode

output

Alt Text

see second method here

Top comments (0)