Reddit Bible
This was a project from Golan Levin’s Creative Computing class.
The objective of this project was to create a fully computer generated book, design and content, via basil.js, and any sort of language generating code (RiTa, Markov, etc).
In short, the Reddit Bible compares questions found on 8 advice boards of reddit with interrogative sentences found in the bible, using the machine learning library InferSent, then is laid out in inDesign using basil.js, showing visually how similar original sentences are.
Here are some of the results.
“InferSent is a sentence embeddings method that provides semantic representations for English sentences. It is trained on natural language inference data and generalizes well to many different tasks.”






The Code Process
This is a condensed version of all the code process used to create this project. For in depth information, go here.
- Scraped Reddit advice forums for questions, and compiled into multiple CSV databases.
-
I scraped 8 boards: r/advice, r/internetparents, r/legal_advice, r/need_a_friend, r/need_advice, r/relationship_advice, r/tech_support, r/social_skills
- Then I scraped the Bible (KJV) for questions. Any sentence that ends in a “?”.
-
Using Infersent, the machine learning sentence embedding library, I found the best matching pairs from reddit and the bible.
- This too was compiled in a CSV database.
- I generated smaller CSV files that I could then port them into Basil.js.
- Using Basil.js, I was able to design some of the data into the the layout, such as the circle, which represents how closely related the two sentences are.
