Spelling correction

The best example of spelling correction is Google. When we search for something with an incorrect spelling, it suggests the correct spelling, as seen in the following screenshot:

Spelling correction simple example on Google

The two basic principles used by most algorithms for spelling correction are the following:

Two specific forms of spelling correction are isolated term correction and context sensitive correction. Isolated term correction deals with spelling mistakes. Basically, it checks each word for misspellings; it does not consider the context of the sentence. For example, if the word "form" is encountered, in place of word "from" it will treat it as correct, as the spelling is correct. Context sensitive correction will look at the surrounding words and can suggest required corrections, so it can suggest "form" instead of "forms." If the given sentence is "We took flight form point A to point B", in this sentence, the word "form" is wrong but the spelling is correct, so isolated term correction will treat it as correct, whereas context sensitive correction will suggest "from" instead of "form."