Definition of n-gram in US English:

n-gram

noun

Computing Linguistics
  • (especially in corpus analysis) a string of elements (such as letters, words, or phonemes) that appears within a longer sequence.

    ‘the program demonstrates a simple method of producing n-grams from a string of text’

Origin

1960s: from n (denoting an unspecified or variable number) + -gram.