Reference

Class

RiTa

Name

RiTa.similarByLetter

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