How to use textblob library In Python

First, you need to install the library textblob using pip in command prompt. 

pip install textblob

You can also install this library in Jupyter Notebook as: 
 

Python3




import sys
!{sys.executable} - m pip install textblob


  
Program for Spelling checker – 
 

Python3




from textblob import TextBlob
 
a = "cmputr"           # incorrect spelling
print("original text: "+str(a))
 
b = TextBlob(a)
 
# prints the corrected spelling
print("corrected text: "+str(b.correct()))


Output: 
 

original text: cmputr
corrected text: computer


 

Spelling checker in Python

For any type of text processing or analysis, checking the spelling of the word is one of the basic requirements. This article discusses various ways that you can check the spellings of the words and also can correct the spelling of the respective word.
 

Similar Reads

Using textblob library

First, you need to install the library textblob using pip in command prompt....

Using pyspellchecker library

...

Using JamSpell

...