Spelling.EditDistance Method (String, String, Boolean)

NetSpell.SpellChecker

NetSpell Documentation - v.2.1.7

Spelling.EditDistance Method (String, String, Boolean)

Calculates the minimum number of change, inserts or deletes required to change firstWord into secondWord

[Visual Basic]Overloads Public Function EditDistance( _
   ByVal source As String, _
   ByVal target As String, _
   ByVal positionPriority As Boolean _
) As Integer
[C#]
public int EditDistance(
   string source,
   string target,
   bool positionPriority
);

Parameters

source

The first word to calculate

target

The second word to calculate

positionPriority

set to true if the first and last char should have priority

Return Value

The number of edits to make firstWord equal secondWord

See Also

Spelling Class | NetSpell.SpellChecker Namespace | Spelling.EditDistance Overload List