characterSimilarityMap method

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

Returns a hashmap of terms to their lengthSimilarity with this.

Implementation

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