dariusk / NaNoGenMo-2014

National Novel Generation Month, 2014 edition.
258 stars 17 forks source link

The Big Jolly Book of Humorous Observations by @hugovk #127

Open hugovk opened 9 years ago

hugovk commented 9 years ago

lolol

or

ol the lols

or

The Big Jolly Book of Humorous Observations

An extract:

lol, lol and behold! O!
Lol, here! thine horse.
When lol! a sudden shock!

In the Project Gutenberg CD corpus of 600 books, 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.html

Uses gutengrep.py.

Then print to PDF using Chrome. Big thanks to @moonmilk for the CSS.

nqpz commented 9 years ago

I cannot resist adding the following comment:

nqpz commented 9 years ago

lol

MichaelPaulukonis commented 9 years ago

roflcopter