A naive Bayesian filter in ruby