[][src]Module str_distance::modifiers

Structs

Winkler

Winkler modifies a DistanceMetric's distance to decrease the distance between two strings, when their original distance is below some threshold. The boost is equal to min(l, maxlength) * p * dist where l denotes the length of their common prefix and dist denotes the original distance. The Winkler adjustment was originally defined for the Jaro similarity score but is here defined it for any distance.

WinklerConfig