NaNoGenMo / 2021

National Novel Generation Month, 2021 edition.
45 stars 8 forks source link

Piem generator #91

Open jodi opened 2 years ago

jodi commented 2 years ago

I'm a bit late posting, sorry.

I created a Piem generator, which I finished last night.

A Piem is Pi+poem, a mnemonic to help remember Pi, so each word has the corresponding number of letters in it to the digit in Pi. For example, I was taught at school, "How I wish I could calculate Pi" = 3.141592.

It doesn't work that well, but never mind, I can always improve it later. :)

Here is the python file: Piem Generator

Here is an example using Anne of Green Gables as a corpus: Anne Piem

It doesn't make a lot of sense, so that definitely needs improving.

Here are some shorter Piems I got it to generate earlier before doing the 50,000 version:

Sin A wing, a color Otherwise me Course lover Act brain

For a nose:   A sales highlight to assert   Space nut flame

“Hat!” I boom   A goose typically   No forest smell   Lie lucky 

And a girl: I  About, different  If future tears, she minds  Hurtling timetable ripples sparkling

hugovk commented 2 years ago

I really like the 50k digits of pi in the source code :)

image

greg-kennedy commented 1 year ago

I can tell that you left the Project Gutenberg header in there... don't remember him factoring too heavily in the original story :P