Skip to main content
Glossary

N-gram

The "n" refers to a variable number. A trigram is where text is broken up into overlapping groups of three characters. For example the trigrams for "book are "boo and "ook. This is a technique used in language identification. It is also considered a less accurate technique to index words for a search engine in a language that does not use spaces between words (such as Chinese and Japanese).