Reference

Class

RiTa

Name

alliterations

Description Finds alliterations by comparing the phonemes of the input string to those of each word in the lexicon
Example
RiTa.alliterations("cat"); 
RiTa.alliterations("cat", {limit: 10});
RiTa.alliterations("cat", { maxLength: 4, numSyllables: 1 });
Parameters
Stringinput 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

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

Returns
String[]array of alliterations
Syntax
RiTa.alliterations(word);
RiTa.alliterations(word, opts);
Platform Java / JavaScript