Trigram
Trigrams are a special case of the n-gram, where n is 3.[src] They are often used in natural language processing for performing statistical analysis of texts and in cryptography for control and use of ciphers and codes.[src] See results of analysis of "Letter Frequencies in the English Language".[src]
Trigrams are a special case of the n-gram, where n is 3.[src] They are often used in natural language processing for performing statistical analysis of texts and in cryptography for control and use of ciphers and codes.[src] See results of analysis of "Letter Frequencies in the English Language".[src] ==Frequency== Context is very important, varying analysis rankings and percentages are easily derived by drawing from different sample sizes, different authors; or different document types: poetry, science-fiction, technology documentation; and writing levels: stories for children versus adults, military orders, and recipes.[src] Typical cryptanalytic frequency analysis finds that the 16 most common character-level trigrams in English are: Because encrypted messages sent by telegraph often omit punctuation and spaces, cryptographic frequency analysis of such messages includes trigrams that straddle word boundaries.[src] This causes trigrams such as "edt" to occur frequently, even though it may never occur in any one word of those messages.[src] ==Examples== The sentence "the quick red fox jumps over the lazy brown dog" has the following word-level trigrams: 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 ==References==[src]
10 sentences · 10 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Trigram." encyclopegia.org, 2026, https://encyclopegia.org/wiki/trigram. Accessed 26 November 2026.
Chicago
"Trigram." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/trigram.
APA
encyclopegia.org. (2026). Trigram. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/trigram
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON