Have you searched CPAN? Ngram or Trigram
Alternatively, write it yourself. It's not hard.
In reply to Re: N-gram comparison by Corion in thread N-gram comparison by sarvan