DictionaryLookup

DictionaryLookup[patt]

finds all words in an English dictionary that match the string pattern patt.

DictionaryLookup[patt,n]

gives only the first n words found.

DictionaryLookup[{"lang",patt}]

finds words in the language specified by lang.

Details and Options

  • No word stemming is done by default, so words like "jump", "jumps", and "jumping" appear separately.
  • By default, words appear as they would within a sentence. Setting the option IgnoreCase->True retrieves words whose letters appear in different cases.
  • DictionaryLookup[] gives a list of all words in the dictionary.
  • DictionaryLookup[All] gives a list of available dictionary languages.
  • DictionaryLookup[{"lang",All}] retrieves all words in the language dictionary lang.
  • DictionaryLookup[{All,patt}] retrieves all the languages containing words matching patt.

Examples

open allclose all

Basic Examples  (2)

Look up all English words beginning with "abb":

In[1]:=
Click for copyable input
Out[1]=

Look up all Spanish words beginning with "c", ending with "n", and with an "ñ" in between:

In[1]:=
Click for copyable input
Out[1]=

Scope  (3)

Generalizations & Extensions  (3)

Options  (1)

Applications  (5)

Neat Examples  (4)

See Also

WordData  WordStem  StringCases  StringExpression  Pluralize  LanguageData

Introduced in 2007
(6.0)
| Updated in 2008
(7.0)