multinomialBayes implemented naive bayes classifier to detect author of a text and multinomial bayes classifier to detect the language of a text both bigrams and trigrams are used as stopwords for multinomial classifier