absinthe v1.3.0-beta.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)
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.