absinthe v1.2.0-alpha.1 Absinthe.Utils.Suggestion

Summary

Functions

Sort a list of suggestions by Jaro distance to a target string, supporting a cut-off threshold

Functions

sort_list(suggestions, target, threshold \\ 0.7)

Specs

sort_list([String.t], String.t, float) :: [String.t]

Sort a list of suggestions by Jaro distance to a target string, supporting a cut-off threshold.