Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
(Ovid) Re: Letter frequenciesby Ovid (Cardinal) |
on Nov 24, 2000 at 03:51 UTC ( [id://43179]=note: print w/replies, xml ) | Need Help?? |
I don't know of any such resource, but perhaps writing a perl script to do figure that out would be the way to go? Have it read plenty of text in your target language and calculate the frequency of each symbol.
You'd have to ensure that you're reading plaintext, though, and not markup or something like that. The following would populate %symbol with a frequency count. You'd just pass it a list of files on the command line. What you'd do with the data from there would be up to you.
Cheers, Update: mdillon had a good point. Here's a rewrite: Or, the fun method: use my first code and add the following after the loop:
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In Section
Seekers of Perl Wisdom
|
|