RandomWord
gives a pseudorandom commonly used word.
RandomWord[n]
gives a list of n pseudorandom words.
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 Options
- The following types are supported:
-
"CommonWords" common words in their base forms (default) "KnownWords" known dictionary words in their base forms pos common 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 "GrammaticalUnit" entities or as strings.
- Core parts of speech are "Noun", "Verb", "Adjective", "Adverb", "Preposition", "Conjunction", "Pronoun", "Determiner", and "Interjection".
- RandomWord selects from words available in WordList.
- RandomWord supports the following options:
-
IncludeInflections False whether to include inflected forms of words Language $Language what language to use
Examples
open allclose allBasic Examples (4)
Options (2)
Language (1)
Get a list of random Spanish words:
Language specifications can be strings or "Language" entities:
IncludeInflections (1)
With IncludeInflections->True, inflected forms can also be included in results:
With IncludeInflections->False, only uninflected words are returned:
Properties & Relations (2)
Use SeedRandom to get repeatable random values:
Use BlockRandom to block one use of RandomWord from affecting others:
Text
Wolfram Research (2015), RandomWord, Wolfram Language function, https://reference.wolfram.com/language/ref/RandomWord.html.
CMS
Wolfram Language. 2015. "RandomWord." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RandomWord.html.
APA
Wolfram Language. (2015). RandomWord. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RandomWord.html