Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

RandomWord

RandomWord[]
gives a pseudorandom commonly used word.

RandomWord[type]
gives a pseudorandom word of the specified type.

RandomWord[type,n]
gives a list of n pseudorandom words of the specified type.

Details and OptionsDetails and Options

  • The following types are supported:
  • "CommonWords"common words in their base forms (default)
    "KnownWords"known dictionary words in their base forms
    poscommon words that can be a given part of speech
    {"type",pos}inflected, known, etc. words filtered by part of speech
    "Stopwords"words like "the" that are often considered insignificant
  • Parts of speech can be given as entities or as strings.
  • Core parts of speech are , , , , , , , , and .
  • RandomWord selects from words available in WordList.
  • RandomWord supports the following options:
  • IncludeInflectionsFalsewhether to include inflected forms of words
    Language$Languagewhat language to use

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

A random common word:

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

A random common noun:

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

Four random common adverbs:

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

Six random adjectives selected from known words:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2015
(10.3)