EControl Syntax Editor SDK
TecDictionary.GetNearestWords Method

Finds approximately similar to S words in all dictionaries.

function GetNearestWords(const S: ecString; St: TecStrings; MaxEdits: integer = 1): integer;

GetNearestWords method returns of words found. 

St parameter returns list of words found. 

MaxEdit parameter specifies maximum amount of edits in the words for obtaining S string. Edits are any kind of substitution, deletion and insertion of characters. Hence, MaxEdit parameter specifies the similarity of words found and S string. 

For example, if the origin word is 'football', the word 'foatbaal' contains one substitution, one deletion and one insertion.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!