Interface IWordDictionary
An interface for a dictionary of words
[Version(1, 0, 0)]
public interface IWordDictionary : IEnumerable<Word>, IEnumerable
- Inherited Members
- Extension Methods
Properties
- Alphabet
Gets our alphabet
- Count
Gets the number of words in this dictionary
- LetterFrequencies
Gets an array of letter frequencies per letter of our alphabet
Methods
- AddWord(Word)
Add a word to the dictionary
- FindAnagrams(Word)
Find anagrams of a given source string
- FindAnagrams(Word, bool)
Find phrase anagrams of a given source string. Phrase anagrams may return multple words that, together, consist of all the letters in the source string
- FindAnagramsOfSubset(Word)
Find anagrams of a subset of the letters in the given source string
- FindFirstAnagram(Word)
Find one anagram of a given source string
- FindFirstAnagram(Word, bool)
Find one anagram of a given source string, optionally returning phrases
- FindFirstAnagramsOfSubset(Word)
Find anagrams of a subset of the letters in the given source string and returns the first result
- FindFirstSubWord(Word)
Searches a word for the first substrings that is itself also a word
- FindSubWords(Word)
Searches a word for all substrings that are themselves also words
- GetRandomWord(IRandom)
Selects a random word from the dictionary.
The generator to use.A random word from the dictionary.
- Lookup(Word)
Gets whether a word is in the dictionary
- Search(Word)
Search the dictionary for a pattern
- SearchFirst(Word)
Search the dictionary for a pattern and returns only the first result
- WordWithPrefixExists(Word)
Gets whether a certain prefix leads to a word or is a word itself