View Source Absinthe.Utils.Suggestion (absinthe v1.7.6)

Summary

Functions

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

Functions

Link to this function

sort_list(suggestions, target, threshold \\ 0.7)

View Source
@spec 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.