Module Merlin_sherlodoc.Name_costSource

Utilities for calculating distances between names.

Sourceval distance : ?cutoff:int -> string -> string -> int option

distance ?cutoff a b returns the Damerau-Levenshtein between a and b.

Sourceval distance_of_substring : ?cutoff:int -> string -> string -> int option

distance_of_substring ?cutoff a b compute the distance by extracting relevant substring from b

Sourceval best_distance : ?cutoff:int -> string list -> string -> int

best_distance ?cutoff words entry compute the best distance of a list of string according to a given string.