Reference

Class

RiTa

Name

RiTa.similarBySound

Description Compares the phonemes of the input word (using a version of the min-edit distance algorithm) to each word in the lexicon, returning the set of closest matches.
Syntax
RiTa.similarBySound(input);
RiTa.similarBySound(input, minAllowedDist);
Parameters
Stringthe word to match
intminimum edit distance for matches (optional, default=1)
Returns
String[]the matching words
Example
RiTa.similarBySound("happy");
Platform Java / Javascript