lengthSimilarityMap method

Map<String, double> lengthSimilarityMap(
  1. Iterable<String> terms
)

Returns a hashmap of terms to their lengthSimilarity with this.

Implementation

Map<String, double> lengthSimilarityMap(Iterable<String> terms) {
  final retVal = <String, double>{};
  for (var other in terms) {
    retVal[other] = lengthSimilarity(other);
  }
  return retVal;
}