fuzzy.FindAllMatches
Find all candidates above similarity threshold
fuzzy.FindAllMatches(target: string, candidates: []any, threshold: float64) -> []map
Arguments
| Name | Type |
|---|---|
| target | string |
| candidates | []any |
| threshold | float64 |
Example
{{ fuzzy.FindAllMatches("apple", ["aple", "banana", "apples"], 0.7) }}
Returns [{"match": "aple", "score": 0.8, "index": 0}, ...].