Spelling.EditDistance Method (String, String)

NetSpell.SpellChecker

NetSpell Documentation - v.2.1.7

Spelling.EditDistance Method (String, String)

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 _
) As Integer
[C#]
public int EditDistance(
   string source,
   string target
);

Parameters

source

The first word to calculate

target

The second word to calculate

Return Value

The number of edits to make firstWord equal secondWord

Remarks

This method automatically gives priority to matching the first and last char

See Also

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