As jdporter wisely said, you don't want to go reinventing this particular wheel.
With that in mind, may I suggest Ted Pedersen's Ngram Statistics Package?
HTH,
In reply to Re: Word density
by planetscape
in thread Word density
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |