A spelling suggestion is a part of spelling correction program that generates a set of plausible replacements for words that are likely to be misspelled. One way to measure the plausibility of these replacements is to compute their edit distance against a given misspelled word. The edit distance between two words is the total number of edit operations that have to be done in order to transform one word into the other. Normally these edit operations are insertion, deletion and substitution of a single character including transposition of 2 consecutive characters.
For example, for a word "wonder", if the deletion is applied at the character 'o', this word will transform into "wnder". And if the substitution with 'a' is applied at 'o', it will become "wander". And if the transposition is applied at "er", it will become "wondre".
In this edit distance strategy, the degree of similarity between two words is up to their minimum edit distance. If the minimum edit distance between word_1 and word_2 is lower than the distance between word_1 and word_3, then word_1 is more similar to word_2 than to word