DEV Community

loading...
Cover image for I Made Spelling Checker in Python

I Made Spelling Checker in Python

soniarpit profile image CodeSnail 🐌 ・1 min read

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

Discussion (0)

pic
Editor guide