n-grams mapper.