Peaks and n-grams by peaks