SynonymDictionary

SynonymDictionary class

Represents a dictionary of synonyms.

public class SynonymDictionary : DictionaryBase, IEnumerable<string>

Properties

Name Description
Count { get; } Gets the number of words contained in this SynonymDictionary.
override DictionaryType { get; } Gets the dictionary type.

Methods

Name Description
AddRange(IEnumerable<string[]>) Adds the specified collection of synonym groups to this instance of the SynonymDictionary.
AddRange(string[][]) Adds the specified collection of synonym groups to this instance of the SynonymDictionary.
override Clear() Removes all words from this SynonymDictionary object.
ExportDictionary(string) Exports the dictionary to a file with the specified name.
GetAllSynonymGroups() Gets all groups of synonyms contained in this dictionary.
GetEnumerator() Returns an enumerator that iterates through the collection.
GetSynonymGroups(string) Gets all groups of synonyms to which the specified word belongs.
GetSynonyms(string) Gets the synonyms for the specified word. The resulting array does not contain the original word.
ImportDictionary(string) Imports a dictionary from the specified file.

Remarks

Learn more

See Also