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 |
String | word1 |
---|
String | word2 |
---|
boolean | use letter-to-sound rules if not found in lexicon (optional, default=false) |
---|
|
Returns |
boolean | true if the two words rhyme, else false. |
---|
|
Related |
tmp_related |
Note |
tmp_note |
Syntax |
RiTa.isRhyme(word1, word2) RiTa.isRhyme(word1, word2, useLTS);
|
Platform |
Java / JavaScript |
|
|