C# Class WinRTXamlToolkit.Controls.AutoCompleteTextBox.DamerauLevenshteinDistance

Algorithm implementation for AutoCompleteTextBox that scores suggestions from the dictionary based on the Damerau-Levenshtein distance.
Inheritance: AutoCompletable
Mostrar archivo Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
GetSuggestedWords ( string wordToSuggest, ICollection suggestionDictionary ) : IList

Gets a list of suggested word completions for the specified word, given a dictionary of words.

Private Methods

Method Description
CalculateDistance ( string first, string second ) : ScoredString

Method Details

GetSuggestedWords() public method

Gets a list of suggested word completions for the specified word, given a dictionary of words.
public GetSuggestedWords ( string wordToSuggest, ICollection suggestionDictionary ) : IList
wordToSuggest string Word/string to get suggestions for.
suggestionDictionary ICollection Dictionary of words to select suggestions from.
return IList