Skip to main content

TdxCustomSpellChecker.GetTwoWordsDistance(string,string) Method

Returns a distance between two words.

Declaration

function GetTwoWordsDistance(const AWord1: string; const AWord2: string): Integer;

Parameters

Name Type
AWord1 string
AWord2 string

Returns

Type
Integer

Remarks

The GetTwoWordsDistance method uses the modified Levenshtein algorithm.

A misspelled word is subsequently modified by one letter. After the word has been changed, the method returns 1.

See Also