Reference

Class

RiTa

Name

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;

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