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

Chimeras. NaNoGenMo 2021 project: COMPLETED! #72

Open
meotod opened this issue Nov 23, 2021 · 6 comments
Open

Chimeras. NaNoGenMo 2021 project: COMPLETED! #72

meotod opened this issue Nov 23, 2021 · 6 comments

Comments

@meotod
Copy link

meotod commented Nov 23, 2021

I'm generating a novel entitled "Chimeras". It uses Natural Language Tool Kit (NLTK) and Python2.7. NLTK comes with various corpora, and I am using excerpts from Moby Dick, Sense and Sensibility, the Book of Genesis, and The Man who was Thursday, all public domain and in Project Gutenberg. The process is to take the text of one excerpt and replace its nouns with the nouns of another excerpt. So, for example:
"Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world."
from Moby Dick
is "chimerized" with:
"In the beginning God created the heaven and the earth. ⁠And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters."
from The Book of Genesis
to generate:
"Call me God. Some waters ago -- never mind how long precisely -- having little or no beginning in my heaven, and earth particular to earth me on form, I thought I would sail about a little and see the darkness face of the deep."

There are twelve permutations so the novel has twelve chapters. I've generated the twelve chapters, but have to clean it up a bit, creating arbitrary paragraphs, making sure each sentence begins with an uppercase letter, getting rid of extra spaces, etc. I may generate some chapters anew until next week's deadline, when I will post a pdf of the novel and commented Python code.

@meotod
Copy link
Author

meotod commented Nov 30, 2021

Chimeras is finished. I spent too much time trying to clean it up of excess spaces, uncapitalized sentences, and it still isn't perfect. But it is readable if devoid of meaning. I find it entertaining, and actually read the entire thing from beginning to end. I plan to follow with project that will replace the nouns in a text with the nouns from another text, as before, and also replace the adjectives using a third text. It would be interesting to replace the verbs, but I haven't tried because I think it would be difficult to get them to agree on person, number, or tense. It was really fun to participate in NatNoGenMo 2021, and I hope there will be a 2022 version. I've enjoyed reading many of the other projects, too. Thanks to all.
chimeras.pdf
chimera_gen_1.py.txt

@meotod meotod closed this as completed Nov 30, 2021
@meotod
Copy link
Author

meotod commented Nov 30, 2021

I'm new to GitHub, and I don't know how to put a green COMPLETED tag on this issue in NatNoGenMo

@meotod meotod reopened this Nov 30, 2021
@meotod meotod changed the title Chimeras. NaNoGenMo 2021 project Chimeras. NaNoGenMo 2021 project: COMPLETED! Nov 30, 2021
@hugovk
Copy link
Member

hugovk commented Nov 30, 2021

Nice work, I've added a green COMPLETED tag for you!

@meotod
Copy link
Author

meotod commented Nov 30, 2021

Wow! Thanks, Hugo. If I do more of this, I'll learn how to do it myself.

@hugovk
Copy link
Member

hugovk commented Nov 30, 2021

Only people with "triage" permissions for a repository can add labels to issues:

https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/managing-labels#applying-a-label

Not a problem here, one of the admins will add a label to completed label to issues :)

@meotod
Copy link
Author

meotod commented Dec 1, 2021

OK, thanks for your support!

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