editDistanceMap method
Returns a hashmap of terms to their editDistance with this.
Not case-sensitive.
Implementation
Map<Term, int> editDistanceMap(Iterable<Term> terms) {
final retVal = <Term, int>{};
for (var other in terms) {
retVal[other] = editDistance(other);
}
return retVal;
}