Reference

Class

RiTa

Name

rhymes

Description Two words are considered as rhyming if their final stressed vowel and all following phonemes are identical
Example
RiTa.rhymes("cat"); 
RiTa.rhymes("cat", {limit: 10});
RiTa.rhymes("cat", { maxLength: 4, numSyllables: 1 });
Parameters
Stringword
Object
(or Map in Java)
options (optional)

{int} options.minLength:
minimum number of characters in target word

{int} options.maxLength:
maximum number of characters in target word

{int} options.numSyllables:
target # of syllables in the word

{int} options.limit:
maximum # of results to return

{String} options.pos:
the target part-of-speech for the word
either from the Penn tag set or the simplified tag set [a, r, v, n]

Returns
String[]rhymes for the word, or an empty array if none are found
Syntax
RiTa.rhymes(word);
RiTa.rhymes(word, options);
Platform Java / JavaScript