Journal #7006

Posted 13 years ago2011-01-27 20:56:00 UTC
Striker StrikerI forgot to check the oil pressure
All this poetry stuff reminded me that a year ago I made a poetry generator in C++. It was nothing fancy really, and the poems made no sense( as in context, the words were arranged to express some kind of actions or something).
Its vocabulary had 4 separate "categories": one for a substantive, one for an adjective, one for a verb and another for an adverb. Adding more words would mean a more diversified poem. But out of lazyness I only threw in 200 words(50 per category).

The program could randomly pick a word from each category, making a 4 words per line, with 4 lines in total per... well I don't know the word in english and google translator gives me funny translations.

At this point in time I don't quite remember how I did it, but the program could check if the letters from the words that should rhyme match, else it should generate a random word again until they match(randomly).

Some generated lines were, oddly, funny. Most of it is shit though. Let me translate a group of 4 lines for you(the translation, of course, will not rhyme):

The gloomy laptop occupies proudly
Abandoned prune likes beautiful
The gloomy magazine opens with talent
The thin nose sleeps beautifully.

For some reason, if I input a too high number for the poem generation, it would crash.

Well, why did I write this? Maybe for inspiring others to do something better. Or because I like les cr?pes.

Also, odd things happen here at TWHL. For about a week there was no new journal post. Suddenly, journal spam.

1 Comment

Commented 13 years ago2011-01-27 21:01:28 UTC Comment #57282
can i use it

You must log in to post a comment. You can login or register a new account.