Reference

Class

RiTa

Name

syllables

Description Analyzes the input and returns a string containing the phonemes for each syllable of each word of the input text, delimited by dashes (phonemes) and spaces (words)
Example
RiTa.syllables("apple"); // returns -> ae/p-ah-l
Parameters
Stringtext to analyze
Returns
Stringe.g., 'dh-ax d-ao-g r-ae-n f-ae-s-t' for the 4 syllables of the phrase 'The dog ran fast'
Syntax
RiTa.syllables(word);
Platform Java / JavaScript