Inspired by the Harry Potter Story Title Generator, I wanted to see how long it would take to roll my own using phpNonsense. As it turns out, about half and hour, with most of that time being copying-and-pasting possible protagonists' names and debugging the CSS.
You can find my contribution here. I tried to give it the flexibility to occasionally renderer some pretty plausible-sounding titles ("Viktor Krum and the Alliance of Flame", "Cedric Diggory and the Wizard's Hammer") and yet still have the capacity to spit out a few atrocities ("Harry Potter and the Rotting Monk", "Harry Potter and the Porcelain Justice") as well.
If you're interested in the data files, here they are.
You can find my contribution here. I tried to give it the flexibility to occasionally renderer some pretty plausible-sounding titles ("Viktor Krum and the Alliance of Flame", "Cedric Diggory and the Wizard's Hammer") and yet still have the capacity to spit out a few atrocities ("Harry Potter and the Rotting Monk", "Harry Potter and the Porcelain Justice") as well.
If you're interested in the data files, here they are.
- The harrypotter.html.template file -- note, looks a little messed up without rendering the bracketed info, but might make more sense if you view the source
- The harrypotter.data file -- lot of extraneous crap gets added to this by FreeStartHost, but that's the price I pay for not paying a price, I guess. The first line of the actual data files is "DEFAULT".
- The missionwords.data file -- occasionally called by the harrypotter.data file, I think this is my favorite of the datafiles. 228 adjectives and 355 nouns, some apropos, most not.
Tags: