Text classifier written in Ruby