seamusabshere / fuzzy_match

Find a needle (a document or record) in a haystack using string similarity and (optionally) regular expression rules. Uses Dice's Coefficient (aka Pair Similiarity) and Levenshtein Distance internally.
MIT License
675 stars 48 forks source link

how to match all-vs-all? #21

Open sbayona opened 7 years ago

sbayona commented 7 years ago

Given FuzzyMatch.new(['a', 'b', 'c']) How do I match between all of them?

Revokee commented 6 years ago

You can use "find_all_with_score": FuzzyMatch.new(['a', 'b', 'c'],:find_all_with_score =>true)