https://github.com/hugovk/lolol
Replace every "lo" in Project Gutenberg with a "lol". For NaNoGenMo 2014.
https://github.com/hugovk/lolol
gutenberg lol lolol nanogenmo python
Last synced: 2 months ago
JSON representation
Replace every "lo" in Project Gutenberg with a "lol". For NaNoGenMo 2014.
- Host: GitHub
- URL: https://github.com/hugovk/lolol
- Owner: hugovk
- Created: 2014-11-28T12:07:07.000Z (over 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2014-11-28T14:23:35.000Z (over 10 years ago)
- Last Synced: 2025-02-01T22:29:11.467Z (4 months ago)
- Topics: gutenberg, lol, lolol, nanogenmo, python
- Language: Python
- Size: 4.36 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
lolol
=====*or*
ol the lols
-----*or*
The Big Jolly Book of Humorous Observations
-------------------------------------------* [PDF](https://hugovk.github.io/lolol/lolol.pdf) |
[HTML](https://hugovk.github.io/lolol/lolol.html) | (103,915 words)In the [Project Gutenberg CD corpus of 600 books](http://www.gutenberg.org/wiki/Gutenberg:The_CD_and_DVD_Project), find every English sentence containing the word **lo** – but also include the next sentence because the parser sometimes breaks things like "**lo!** and behold" into two.
Then replace each **lo** with **lol**.
gutengrep.py -i "\blo\b" "*.txt" --cache --sort --correct -o /tmp/lolol.txt --andnext --language en
lolol.py lolol-sort.txt > lolol.md
multimarkdown lolol.md > lolol.html && lolol.htmlUses [gutengrep.py](https://github.com/hugovk/gutengrep).
Then print to PDF using Chrome. Big thanks to [@moonmilk for the CSS](https://github.com/moonmilk/nanogenmo2014).
An entry for [NaNoGemMo 2014](https://github.com/dariusk/NaNoGenMo-2014).