# What algorithmic approach for selecting similar, relevancy based documents

I have an application that tracks people making mentions of various topics. We've used a Bayes algorithm to do some simple classification (users give a thumbs up/thumbs down) to pick the people that they believe are the best fit for their project.

Our intention was to use this data to help us sort and order the influencers based on "fit" to the customer's needs.

However, we've got some trained data, and now all we can do is say are they similar to the "thumbs up" group, or the "thumbs down" group.

What algorithm should we have used for this instead?

Basically, the ideal is to have a score.. and the biggest, smallest based on the trained data is the one that gets shown first.

Thoughts?

Even better if its in Ruby.

It's a simple calculation, but there is a ruby gem that calculates it directly: tf-idf-similarity.