Dictionary::directory
very
that
lean
keys
used
type
foot
mine
eery
flee
Dictionary::cachelength,
word, pattern, and trigram.
length will cache the possible word lengths. This is useful when
new lengths will not be added to the dictionary while the program is running.
word will cache the words in the dictionary, as they are read in
by length. pattern will cache the results of a pattern match on
the dictionary words. trigram will cache the results of a valid
trigram determination. Enabling the caches will consume more memory in
exchange for faster dictionary lookups. Caching will not provide any benefit
for programs that make a only a single pass through the dictionary.
Dictionary::availableLengths ?minimum? ?maximum?minimum or maximum lengths are specified then the
return values are guaranteed to lie within the min/max limits. This procedure
is use in conjunction with Dictionary::lookupByLength to iterate
through all words in the dictionary. If the length cache is
enabled then this procedure will only search the dictionary files the first
time it is called.
Dictionary::lookupByLength length ?pattern?pattern can be used to limit the
If the word cache is enabled then this procedure will load the
words from the appropriate dictionary file only once. If the pattern cache is enabled then the result will be stored in the pattern cache.
Dictionary::lookupByPattern patternDictionary::lookupByLength
Dictionary::clearCache cache1 ?cache2 ...?
Dictionary::isWord wordword is in the dictionary. Returns 1 if the word is
in the dictionary, 0 if not.
Dictionary::isNumber valval is a valid number. Valid numbers contain only
the digits 0-9.
Dictionary::addWord wordword cache is enabled then the word is also added to the
cache.
Dictionary::isIllegalTrigram trigramtrigram can be formed from words in the
dictionary. If two or more words can not be joined to form the trigram then
this procedure returns 0. Otherwise it returns 1. If the trigram
cache is enabled then the result is stored in the cache. Any necessary word
and pattern lookups will also be cached if the word or
pattern caches are enabled.
Dictionary::containsIllegalTrigram stringDictionary::isIllegalTrigram on all 3-character substrings
composed of only the letters from a to z.
Dictionary::dumpCache
Dictionary::allWordsMatching stringstring. Spaces in string are treated as wildcard
characters. For example, the string "atten" would match
attentive, attention, attend,
at, and a. And the string "i
qr" would match in, if, and
i.
Dictionary::findWords plaintext
Dictionary::createWordTreewordtree scoring table of the
score command.