simplify ngram detection to entropy detection