I'm working on a PHP algorithm to match compatibility based on responses to questions in a form.
In this situation, user A and user B are asked the same exact questions. Let's say these are a few of the questions:
Cleanliness
No preference
Somewhat Clean
Tidy but cluttered
Strictly organized
Person B Cleanliness Preference
Whatever
Can't be too different
Must Match
Room Temperature
Cold
Comfortable
Hot
Now there would be more questions, but it continues on this similar trend. There are questions about you specifically, and then there are questions that pertain to Person B (and how you want them to respond)
I want the algorithm to match people based on their similarity in responses, and obviously the conditional statements for person B will add more weight to their answers to those questions.
I thought maybe of assigning a point value to each answer, but I'm still not sure how I'd make that work.
Does anyone have any suggestions?