Crowd Sourcing (Crowd Voting) – a PHP template

I ran into a problem that: given a first name, I need to match the most likely email address from a given list of possible emails.

For example: given a first name like Mike, out of a list of all the email like,,,…etc. I think is the mostly likely one to be the correct match.

You can apply some algorithms to calculate the similarity between the first name and each email address. However, there are some situations where is better than and simply because of the tradition of use the first letter of first name in combination with last name. So on and so forth, simply using one algorithms might not work that well.

Since the amount of work is not too big to do manually… however, it is too big for ME manually. I decided to divide and conquer. So I broke each name mapping into a question and make it accessible through browser by using some basic php.

You can access the source code of the php from my Github repo, you might need to reverse engineer and guess how the MySQL table should look up based on your use case.

Here is a screen shot of how it looks like:


When the user submits the response, I not only document what his choice is, but also get the user agent, ip address and a cookie that I assigned to that user to track that user. So later down the road, some machine learning could be done to distinguish the irresponsible user from the informed and careful attendees.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s