The selection is based on the fequency of words per the training
and the edit distance of the given word to the suggestion.
If there are no known words within an edit distance of two
the given word is returned unchanged.
The word with the fewest edits is returned unless the predicate is true.
Where a is the fequency of edit distance one and b is the frequency of
edit distance two.
Give a suggested word based the given word.
The selection is based on the fequency of words per the training and the edit distance of the given word to the suggestion. If there are no known words within an edit distance of two the given word is returned unchanged.
The word with the fewest edits is returned unless the predicate is true. Where a is the fequency of edit distance one and b is the frequency of edit distance two.