similarities method
This method returns a Set<String>
of candidates accepted by the generated Levenshtein's Automaton for the input.
Implementation
Set<String> similarities({
required List<String> candidates,
int distance = 1,
}) {
const textSimilarity = TextSimilarity();
return textSimilarity.similarities(
input: this,
candidates: candidates,
distance: distance,
);
}