Skip to main content

fuzzy.FindAllMatches

Find all candidates above similarity threshold

fuzzy.FindAllMatches(target: string, candidates: []any, threshold: float64) -> []map

Arguments

NameType
targetstring
candidates[]any
thresholdfloat64

Example

{{ fuzzy.FindAllMatches("apple", ["aple", "banana", "apples"], 0.7) }}

Returns [{"match": "aple", "score": 0.8, "index": 0}, ...].