Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

xsawyerx (8978)

xsawyerx
  (email not shown publicly)

Journal of xsawyerx (8978)

Tuesday April 14, 2009
05:32 AM

On simple stuff and bad religions

[ #38808 ]

Recently, I showed a friend the power of hashes in Perl and the example I gave is counting words. That's a very nifty trick but most people can't imagine a situation in which they would want to count words (every editor does that for them anyway), so I decided to show a good example of how sometimes simple things can come in handy.

The band Bad Religion have a lot of songs, and are known to use heavy words. Listening to them yesterday, I wondered if many of the heavy words repeat themselves. Apparently not. These are the results:

Highest ranking words:

  • The (1681)
  • And (1181)
  • A (974)
  • To (935)
  • Of (704)
  • I (542)
  • In (499)
  • Is (421)
  • It (393)
  • You (836)
  • All (306)
  • But (261)
  • ...

The only words in the top 50 which aren't so basic are time (129) and world (155).

"Heavy" words - 15 characters long or more:

  • Omni-directional
  • transubstantiation
  • phylogenetically

"Heavy" words which actually repeat themselves:

  • repercussions - 13 chars, 4 times
  • regurgitate - 11 chars, 6 times
  • materialist - 11 chars, 7 times

However, the point to consider with it is that some words repeat more than one in specific songs, like repeating verse or choruses.

This was fun. I'll try to upload the technicalities of how I did all the calculation in future posts.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.