C# Class WinRTXamlToolkit.Controls.AutoCompleteTextBox.PrefixSuggestion

Algorithm implementation for AutoCompleteTextBox that scores suggestions from the dictionary based on the Damerau-Levenshtein distance.
Inheritance: AutoCompletable
Show file 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
GetSuggestionPrefixScore ( string wordToSuggest, string suggestion ) : 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