Class NameSuggestion
- Namespace
- Pixie
- Assembly
- Pixie.dll
Contains functionality that suggests names for "Did you mean ...?" messages.
public static class NameSuggestion
- Inheritance
-
NameSuggestion
- Inherited Members
Methods
SuggestName(string, IEnumerable<string>)
Suggests a name from a sequence of names by picking the name that is the most similar to the spelled name.
public static string SuggestName(string spelledName, IEnumerable<string> possibleNames)
Parameters
spelledNamestringThe name that was spelled.
possibleNamesIEnumerable<string>A sequence of valid names to choose from.
Returns
- string
The name in
possibleNameswhich is most similar to the spelled name;nullif the sequence of possible names is empty.