When you input a wrong word, Google will give us some right words, this is very interesting.
The main idea is:
First of all, for your input word, spelling corrector will change that word by delete one letter in any place, or transpose one letter in any place with any letter, or replace one letter in any place by any letter, or insert any letter.
Second, the new word vector, which created by delete, transpose, replace, insert the input word, will be checked in the dictionary, which include correct words.
Third, look for the most common and the most similar right words,then output them.
More details you could refer the link here.
Text Mining Series 2.1: Make a Spell Checker for English Text by Python
Text Mining Series 2.2: Make a Spell Checker for English and Chinese Text by R
Welcome your advice and suggestion!
Just record, this article was posted at linkedin, and have 49 views to November 2021.