lengthSimilarities method

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

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

Not case-sensitive.

Implementation

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