Forum Academy Marketplace Showcase Pricing Features

How to match profiles with most similar variables

Hey! I am currently creating an app that tries to match two profiles, but unlike a “tinder app” where it completely excludes people that don’t perfectly match all the criteria. Here is an example of what I am trying to do:

User 1: Has trait A, B, C, D
User 2: Has trait A, C, E, J
User 3: Has trait A, B, D, J
User 4:: Has trait A, B, C, K

So if I want to look for a pair for User 1, I want User 3 & 4 to pop up since they have the most similarity without excluding them since they aren’t a perfect match. I need matches based on most similarity in traits, not exact match in traits.

Thanks in advance!