added the extraction of character n-grams