create categories for naive bayes