lol I like it. Very arty and I can see it working for almost any words.
My program can’t handle more than one subject, so you will definitely win points over me on that one. I have a list of around 2,500 common words with lots of attributes about each one and look up a few of these attributes to drop them in around 25 or so poem templates I made up. If the subject doesn’t exist in my list (for example “existentialism”, was that you Dave from Nevada?), it drops back to a list of default poems.
This has the benefit that the judge can ask for another poem on the same subject and it can pick one of its other templates.
An example is this. Tell me a poem about frogs
1) It singularises(?) frogs
2) Sees it should be A frog not AN frog
3) Gets a word that rhymes with frog (log)
4) Gets the place where you can find a frog (in water)
then drops them in a template like so:
As I was walking home for a bath.
A frog stepped out and blocked my path.
“Excuse me sir”, I started to say.
“You should be in water and not in my way”
“I apologise”, said the frog
“But I was looking for my log”
“It’s over there”, I pointed out.
“Wow! thanks a lot”, the frog did shout.
Other templates grab what colour the object is, how many letters in its name, what use it has, what it is made from and so on:
I am found in water and have webbed feet.
Can you guess what my name is?
This object croaks.
And I will also tell you this.
I have 4 letters, that I vow.
And also rhyme with log.
You must know what I am by now.
That’s right, I am a frog.