Existing Book Generator
- Dominant language
- No language data
- Stars
- 184
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
First draft of Existing Book Generator, see below
Capx file (yeah sorry)
http://www.lilinx.com/ebg/ebg.capx
Example in action (with fragements of Ennius' Annals)
http://www.lilinx.com/ebg/example/
BONUS : Monkey Business 1.0 : "Take that, Cicero !" a text-only zero-button videogame where you are a fast monkey trying to generate a verse from Ennius' Annals by throwing letters on the floor. It's there : http://www.github.com/lilinx/NaNoGenMo/ ... but it's not generating novels.
A. WHAT IT DOES
B. SO-CALLED GENERATIVE PROCESS
C. YET TO BE IMPLEMENTED
D. WHY I DID THIS
A. WHAT IT DOES
You use it with an existing text file of your choice, First it parses the whole file to determine the set of characters present in the file. Then it uses this set of characters to randomly re-generate the submitted text file.
Also one very cool feature is that when it comes up with a correct string it uses Google Translate synth voice to read it aloud.
Pros:
Randomly generates awesome classic masterpieces.
Cons:
You can't be sure the process will be over before you're dead.
B. SO-CALLED GENERATIVE PROCESS
Randomly creates a character strings.
If at any point the string is different from the original text, resets.
Displays the best matching string so far (in red).
It tries to re-create the text from the beginning to the end, it does not care about generating a string that is present "at some point in the text".
C. YET TO BE IMPLEMENTED
- Cosmetics so it will look very nice
- Built-in choice : Ennius Annals, Homer's Iliad, Shakespeare Complete Works, or imported text file of your choice
- Some way to handle long texts (50,000k words) in a faster way, this probably means real code and not html5 joke made in construct 2.
- letters composed either of gold or any other matter (see below)
D. WHY I DID THIS
I've been thinking again about this quote from Montaigne's essay
"If the atoms have by chance formed so many sorts of figures, why did it never fall out that they made a house or a shoe? Why at the same rate should we not believe that an infinite number of Greek letters, strewed all over a certain place, might fall into the contexture of the Iliad?"
Michel de Montaigne (1533-1592), Essais
This is the thought experiment known nowadays as "Infinite numbers of chimps typing forever on typewriters until they come up with Shakespeare's complete works" and apparently that's related to an Emil Borel's maths article I know nothing about. By the way Ikarth has shared this wonderful link inspired by Borges own speculations about such experiments.
As you can guess, there are already softwares playing around with these ideas and constantly comparing random strings to Shakespeare's works. However, it seems that all such softwares that were available online are now deprecated. Also, I find the whole thing with the typing monkeys rather unpleasant. I'm more of a classical person.
I like the Montaigne thing with throwing letters around much more elegant. From Wikipedia I understand that Montaigne actually refers to Cicero.
"He who believes this may as well believe that if a great quantity of the one-and-twenty letters, composed either of gold or any other matter, were thrown upon the ground, they would fall into such order as legibly to form the Annals of Ennius. I doubt whether fortune could make a single verse of them."
Ok now that's much cooler. I've been trying to run Existing Book Generator against a complete greek version of Iliad but this is SLOW and odds are very low, because there are so many different letters and diacritics signs in greek so the whole process looks desperate. Now the Annals of Ennius are something else because they are written in latin where the range of possible characters is much smaller.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked Capx file and the example output to understand the existing generator. The issue names unfinished ideas but no repository files, tests, or acceptance criteria; clarify which item should be implemented and what result would count as done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100