Reference

Class

RiTa

Name

RiTa.isRhyme

Description Returns true if the two words rhyme, that is, if their final stressed vowel phoneme and all following phonemes are identical, else false.

Note: returns false if word1.equals(word2) or if either (or both) are null;

Syntax
RiTa.isRhyme(word1, word2)
RiTa.isRhyme(word1, word2, useLTS);
Parameters
Stringword1
Stringword2
booleanuse letter-to-sound rules if not found in lexicon (optional, default=true)
Returns
booleantrue if the two words rhyme, else false.
Example
RiTa.isRhyme("cat","mat");
Platform Java / Javascript