Python | TextBlob.Word.spellcheck() method

With the help of TextBlob.Word.spellcheck() method, we can check the word if that word have spelling mistake by using TextBlob.Word.spellcheck() method.

Syntax : TextBlob.Word.spellcheck()
Return : Return the word with correctness accuracy.

Example #1 :
In this example we can say that by using TextBlob.Word.spellcheck() method, we are able to get the accuracy of word weather it is correct or not.



filter_none

edit
close

play_arrow

link
brightness_4
code

# import Word
from textblob import Word
  
gfg = Word("Facility")
  
# using Word.spellcheck() method
print(gfg.spellcheck())

chevron_right


Output :

[(‘Facility’, 1.0)]

Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# import Word
from textblob import Word
  
gfg = Word("Prediction")
  
# using Word.spellcheck() method
print(gfg.spellcheck())

chevron_right


Output :

[(‘Prediction’, 1.0)]



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.