Skip to content

N-gram

An n-gram in the context of keyboard layout analysis is a sequence of nn key presses.

In AKLDB, we use the first four orders of n-grams:

nNameExamples
1Unigrame, t, a
2Bigramth, he, in
3Trigramthe, ing, and
4Quadgramtion, here, ment

A skipgram is a bigram that is separated by one or more characters. In some earlier literature, it is called disjoint bigram, for example in the stat “disjoint same-finger bigram.”

On AKLDB, the term n-th order skipgram denotes a skipgram with nn characters in between. For example, the trigram abc contains the 1st order skipgram a_c (where _ is an empty placeholder, not a literal underspace).