replace Ngram global feature with Pattern