View Source Avrogen.Util.FuzzyEnumMatch (avrogen v0.7.1)

Fuzzy enum matching.

Summary

Functions

Returns the closest match for s from the lookup index; returns the default value if the similarity is less than the given threshold or if s is not a string.

Functions

Link to this function

best_match(index, s, default_value, min_similarity \\ 0.5)

View Source

Returns the closest match for s from the lookup index; returns the default value if the similarity is less than the given threshold or if s is not a string.