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

spelledName string

The name that was spelled.

possibleNames IEnumerable<string>

A sequence of valid names to choose from.

Returns

string

The name in possibleNames which is most similar to the spelled name; null if the sequence of possible names is empty.