Trigrams are a special case of the N-gram, where n is 3. They are often used in natural language processing for performing statistical analysis of texts and in cryptography for control and use of and . See results of analysis of " Letter Frequencies in the English Language".
Typical cryptanalytic frequency analysis finds that the 16 most common character-level trigrams in English are:
1.81% |
0.73% |
0.33% |
0.42% |
0.72% |
0.42% |
0.31% |
0.34% |
0.22% |
0.21% |
Because encrypted messages sent by telegraph often omit punctuation and spaces, cryptographic frequency analysis of such messages includes trigrams that straddle word boundaries. This causes trigrams such as "edt" to occur frequently, even though it may never occur in any one word of those messages.
the quick red quick red fox red fox jumps fox jumps over jumps over the over the lazy the lazy brown lazy brown dog
And the word-level trigram "the quick red" has the following character-level trigrams (where an underscore "_" marks a space):
the he_ e_q _qu qui uic ick ck_ k_r _re red
|
|