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

Piem generator #91

Open
jodi opened this issue Dec 1, 2021 · 2 comments
Open

Piem generator #91

jodi opened this issue Dec 1, 2021 · 2 comments

Comments

@jodi
Copy link

jodi commented Dec 1, 2021

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

hugovk commented Dec 1, 2021

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

image

@greg-kennedy
Copy link

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

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

3 participants