editSimilarityMap method

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

Returns a hashmap of terms to their editSimilarity with this.

Not case-sensitive.

Implementation

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