A humor classifier for tweets based on naive bayes algorithm