Reference

Class

RiTa

Name

RiTa.isAlliteration

Description Returns true if the two words are alliterations (iff the first stressed consonant of the two match). Note: returns true if wordA.equals(wordB) and false if either (or both) are null.
Syntax
RiTa.isAlliteration(word1, word2);
Parameters
Stringthe first word
Stringthe second word
Returns
booleantrue if the first stressed consonant of the two words match
Example
RiTa.isAlliteration("cat","kitchen");
Platform Java / Javascript