characterSimilarities method

List<SimilarityIndex> characterSimilarities(
  1. Iterable<String> terms
)

Returns a ordered list of SimilarityIndex values for the terms, in descending order of SimilarityIndex.similarity.

The String and other are converted to lower-case and trimmed for the comparison.

Not case-sensitive.

Implementation

List<SimilarityIndex> characterSimilarities(Iterable<String> terms) =>
    characterSimilarityMap(terms)
        .entries
        .map((e) => SimilarityIndex(e.key, e.value))
        .sortBySimilarity();