Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBMega Poem #48

Open
rpotter2 opened this issue Dec 1, 2022 · 1 comment
Open

IBMega Poem #48

rpotter2 opened this issue Dec 1, 2022 · 1 comment

Comments

@rpotter2
Copy link

rpotter2 commented Dec 1, 2022

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
Copy link
Member

hugovk commented Dec 1, 2022

Good work!

Here's a little preview:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants