NaNoGenMo / 2022

National Novel Generation Month, 2022 edition.
51 stars 0 forks source link

IBMega Poem #48

Open rpotter2 opened 1 year ago

rpotter2 commented 1 year ago

I've played around a lot with Emmett Williams' IBM Poem generation for class projects, so I'm using it for my first NaNoGenMo project too.

for those unfamiliar the method involves assigning a word to each letter of the alphabet. Then you choose three letters and expand those into the words you assigned them, which serves as the title. Then for each word in the title, you expand their letters into a line of poetry, then expand those words in those lines, and so on and so forth.

You typically stop three loops in, but I'm throwing out the limit and writing 50k words out of a list of 26.

I was also interested in looking for ways to 'cheese' the generation to be more intelligent, specifically by combining part of speech with letter frequency. For example, E, S, D, and T are the most common letters at the end of a word, so they shouldn't be a prepositions. There are many areas for improvement in that regard, but simply getting the first part done with is good for me.

Here's my final result!

I coded this in p5js and used Bindery to put it in a book layout, you can see the final state of the code in the repository or some possible post-2022 edits on p5js.org

hugovk commented 1 year ago

Good work!

Here's a little preview:

image