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 |
String | word |
---|
Object (or Map in Java) | options (optional)
{int} options.minLength: minimum number of characters in target word (default=3)
{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 (default=10)
{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]
{boolean} options.shuffle: if true, iterate over lexicon in random order
|
---|
|
Returns |
String[] | rhymes for the word, or an empty array if none are found |
---|
|
Related |
RiTa.alliterations(),RiTa.search(),RiTa.soundsLike(),RiTa.spellsLike() |
Note |
tmp_note |
Syntax |
RiTa.rhymes(word); RiTa.rhymes(word, options);
|
Constants |
RiTa.alliterations(),RiTa.search(),RiTa.soundsLike(),RiTa.spellsLike()Constants
|
Platform |
Java / JavaScript |
|
|