Table of Contents

Class DictionaryExtensions

Namespace
Gamelogic.Words
Assembly
Gamelogic.Words.dll

A collection of extension methods common to all dictionary implementations

[Version(1, 0, 0)]
public static class DictionaryExtensions
Inheritance
DictionaryExtensions
Inherited Members

Methods

GetLengthFilter(int, int)
GetNearestWord(IWordDictionary, Word)

Finds the closest word to the given input string, by edit distance

GetNearestWord(IWordDictionary, string)
GetRandomWord(IWordDictionary)

Gets the random word from the dictionary.

GetRegexFilter(string, string)
LoadDictionary(IWordDictionary, Stream)

Load a dictionary from a stream. Expects one word per line.

LoadDictionary(IWordDictionary, Stream, Func<string, string>)

Load a dictionary from a stream, and providing a transformation function. Expects one word per line.

LoadDictionary(IWordDictionary, Stream, int, int)

Load a dictionary from a stream, checking a word's length before adding it

LoadDictionary(IWordDictionary, Stream, string, string)

Load a dictionary from a stream, checking it against exclusion and inclusion regular expressions before adding to the dictionary

LoadDictionary(IWordDictionary, Stream, string, string, int, int)

Load a dictionary from a stream, checking its length and matching it against exclusion and inclusion regular expressions before adding to the dictionary