Reference

Class

RiTa

Name

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.
Example
RiTa.isAlliteration("cat","kitchen");
Parameters
Stringthe first word
Stringthe second word
boolean(optional) use LTS (letter to sound), default=false
Returns
booleantrue if the first stressed consonant of the two words match
Syntax
RiTa.isAlliteration(word1, word2);
RiTa.isAlliteration(word1, word2, useLTS);
Platform Java / JavaScript