Sentiment analysis in PHP - simple bayesian filter