Binary package “libtext-ngrams-perl” in ubuntu focal

Perl module for flexible N-gram analysis of text

 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.