optimize for case with n-grams
accept nosetests 1.3.3