Modified bigram classifier