
Text::ngrams is a module for flexible n-gram analysis of text. it supports character n-grams, word n-grams, and many more types of n-grams. it allows a user to manually feed a sequence of tokens, has automatic recognition and feed of tokens, and the way they are combined in an n-gram. it can also be used from the command line through the script ngrams.pl provided with the package.