generalized naive bayes for 25 terms
added terms.json for convenience