Avrogen.Util.FuzzyEnumMatch (avrogen v1.1.0)

Copy Markdown View Source

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

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

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.

candidates(index, s)

make_index(atoms)

preprocess(s)