Saturday, December 6, 2008

Dragonforce Lyric Generator

Earlier this year my roommate and I realized that the lyrics for Dragonforce songs are absolutely ridiculous.



We often joke about them, stringing together random "epic" words and pretending that they're Dragonforce lyrics.

One day we decided that instead of just stringing these words together ourselves, we should write a program to do it. A Dragonforce Lyric Generator, if you will. A couple of important steps had to be taken to ensure accurate Dragonforce replication, which include:

1) Make a list of every word used in every Dragonforce song
2) Calculate the frequency of each word
3) Sort all of the words by word type (noun, verb, adverb, pronoun, adjective, article, etc)
4) Write the code

I've been working on this on and off for a while and it's due for a class on Wednesday evening so it will definitely be in a state of completion by then (there will always be tweaking and refining to do). BUT. . . here's the reason for the entry. My code just generated its first couple of sentences! The words "on" "in" and "before" are hard-coded in but everything else is generated based on the frequency of usage in other Dragonforce songs. I present to you, the first ten lines generated using my Dragonforce Lyric Generator!

On a first searching body, in the song before the pain.
On the high unknown moonlight, in the fire before the rain.
On the good endless winter, in a time before the sun.
On a first endless silence, in the sky before a ride.
On the north master tower, in the hell before the fight.
On a lost falling lifetime, in the rage before the time.
On the long burning evil, in the break before the face.
On the lost falling lifetime, in a side before a cry.
On the cold searching tonight, in the dream before the night.
On the lost searching laughter, in the sword before a door.

No comments:

Post a Comment