Method | Description | |
---|---|---|
AddWord ( string word ) : void |
Append new word to the dictionary
|
|
GetCorrections1T ( string typo ) : IList |
Gets the corrections for edit distance 1 with transpositions.
|
|
GetCorrections2T ( string typo ) : IList |
Gets the corrections for edit distance 2 with transpositions.
|
|
SpellChecker ( ) : System |
Initializes a new instance for empty lexicon
|
|
SpellChecker ( IEnumerable |
Initializes a new instance for the given lexicon
|
Method | Description | |
---|---|---|
GetCorrectionNodes ( string typo, |
Basic Schulz and Mihov algoritm
|
|
GetCorrectionStrings ( string typo, |
Find all words in dictionary such that Levenshtein distance to typo less or equal to editDistance
|
|
PrepareSubstrings ( string typo, string &left, string &right, string &rleft, string &rright ) : int |
Splits the typo into two substrings of similar length
|
public GetCorrections1T ( string typo ) : IList |
||
typo | string | Garbled word. |
return | IList |
public GetCorrections2T ( string typo ) : IList |
||
typo | string | Garbled word. |
return | IList |
public SpellChecker ( IEnumerable |
||
words | IEnumerable |
|
return | System |