Spellings Correction by using Python Programing Language.

Mohammad Sakib Mahmood
2 min readJun 12, 2021

In this article, I have shown how to write a program to correct spellings with the Python programming language. For this, I used an NLP library in Python, which as known as TextBlob.

At first, we need to know that what is TextBlob?

Definition of TextBlob

TextBlob is a Python library for processing text data. It provides a simple API for delving into common natural language processing tasks such as tagging part of speech, extracting nominal sentences, analyzing feelings, classifying, translating, and more.

Sometimes It provides some very useful features for Machine Learning projects like:

  1. Noun phrase extraction
  2. Part-of-speech tagging
  3. Parsing
  4. Classification
  5. Word and phrase frequencies
  6. Tokenization
  7. Sentiment analysis

We can simply install the TextBlob library in your systems by writing a pip command; pip install textblob.

Correct Spellings with Python

Here I showed you how to write a Python program to correct spellings:

Output.

So this is how we can write a python program using the TextBlob library for correcting spellings. This feature can be used in Natural language processing projects in Machine Learning as well.

--

--

Mohammad Sakib Mahmood

Co-op Intern @Central Station Marketing, Euless TX & Graduate Student @Missouri State University, USA.