Reference

Class

RiTa

Name

RiTa.getStresses

Description Analyzes the input and returns a new string containing the stresses for each syllable of the input text
Syntax
RiTa.getStresses(word);
RiTa.getStresses(wordArr);
Parameters
String OR String[]words to analyze
Returns
Stringe.g., '01-0-1', with 1's meaning 'stressed', and 0's meaning 'unstressed',
Example
RiTa.getStresses("apple"); // returns -> 1/0
Platform Java / Javascript