NaNoGenMo / 2021

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

Chimeras. NaNoGenMo 2021 project: COMPLETED! #72

Open meotod opened 2 years ago

meotod commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

hugovk commented 2 years ago

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

meotod commented 2 years ago

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

hugovk commented 2 years ago

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 commented 2 years ago

OK, thanks for your support!