Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Frequency  





2 Examples  





3 References  














Trigram






Français
Nederlands
Русский
Українська
Tiếng Vit

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


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 ciphers and codes. See results of analysis of "Letter Frequencies in the English Language".

Frequency[edit]

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.

Typical cryptanalytic frequency analysis finds that the 16 most common character-level trigrams in English are:[1][2]

Rank[1] Trigram Frequency[3]
(Different source)
1 the 1.81%
2 and 0.73%
3 tha 0.33%
4 ent 0.42%
5 ing 0.72%
6 ion 0.42%
7 tio 0.31%
8 for 0.34%
9 nde
10 has
11 nce
12 edt
13 tis
14 oft 0.22%
15 sth 0.21%
16 men

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.[4]

Examples[edit]

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[edit]

  1. ^ a b Lewand, Robert (2000). Cryptological Mathematics. The Mathematical Association of America. p. 37. ISBN 978-0-88385-719-9.
  • ^ Linton, Tom (2001). "Relative Frequencies of Letters in General English Plain text". Central College. Cryptography (Spring ed.). Archived from the original on January 22, 2007.
  • ^ "English Letter Frequencies". Practical Cryptography.
  • ^ "Voice Search SEO". Fuelonline.

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Trigram&oldid=1213305987"

    Categories: 
    Natural language processing
    Computational linguistics
    Speech recognition
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
    Articles needing additional references from December 2009
    All articles needing additional references
     



    This page was last edited on 12 March 2024, at 06:44 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki