Reference

Class

RiTa

Name

RiTa.randomWord

Description Returns a random word from the lexicon. When arguments are supplied part-of-speech and/or syllable-count will be matched as well
Syntax
randomWord()
randomWord(pos);
randomWord(syllableCount);
randomWord(pos, syllableCount);
Parameters
Stringthe part-of-speech to match (optional)
intthe # of syllables to matcg (optional)
Returns
Stringrandom word
Example
RiTa.randomWord(); 
RiTa.randomWord("nn"); // returns a random noun
Platform Java / Javascript