Back to Devexpress

TdxCustomSpellChecker.GetTwoWordsDistance(string,string) Method

vcl-dxspellchecker-dot-tdxcustomspellchecker-dot-gettwowordsdistance-x28-system-dot-string-system-dot-string-x29.md

latest970 B
Original Source

TdxCustomSpellChecker.GetTwoWordsDistance(string,string) Method

Returns a distance between two words.

Declaration

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

Parameters

NameType
AWord1string
AWord2string

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

TdxCustomSpellChecker Class

TdxCustomSpellChecker Members

dxSpellChecker Unit