Reference

Class

RiTa

Name

phones

Description Returns a string containing all Penn phonemes for the input text
Example

RiTa.phones("apple"); // returns -> ae-p-ah-l

RiTa.phones("two apples"); // returns -> t-uw ae-p-ah-l-z

Parameters
Stringtext to analyze
Returns
Stringe.g., 'ae-n eh-l-ax-f-ax-n-t ih-z ey m-ae-m-ax-l'
(for 'An elephant is a mammal')
Syntax
RiTa.phones(wordStr);
RiTa.phones(wordStr, options);
Platform Java / JavaScript