Text classifier based on naive Bayes algorithm