Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomSpellChecker.GetTwoWordsDistance(string,string) Method

Returns a distance between two words.

#Declaration

Delphi
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