GetSynonyms

SynonymDictionary.GetSynonyms method

Gets the synonyms for the specified word. The resulting array does not contain the original word.

public string[] GetSynonyms(string word)
Parameter Type Description
word String The word to suggest the synonyms.

Return Value

The synonyms for the specified word or an empty array if the SynonymDictionary object does not contain the specified word. A change of the array does not change the dictionary.

Exceptions

exception condition
ArgumentNullException Thrown when word is null.

Remarks

The case of the letters of the word is not taken into account.

See Also