A simple python program to check for incorrect spelling and print the correct spelling using TextBlob.
This is a simple program in Python where you can check the spellings of the given words and return the correct spellings.
Requirement: TextBlob library
TextBlob is a Python library for processing textual data. Sometimes messages, tweets, reviews, text, or any kind of blog data may contain incorrect spellings we need to correct the data to reduce the multiple copies of wrong words.
Installing TextBlob is very simple and easy. We can simply install it using pip
To install TextBlob use:
!pip install textblob
Import TextBlob using the below statement
from textblob import TextBlob
In this project,
TextBlob object: Store the text with the TextBlob object.
correct(): This function is used to correct the spelling of a blob.
Submitted by Akshitha Theretupally (Akshitha)
Download packets of source code on Coders Packet