Skip to content
a birthday hack :)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
bd_edgeworth-parents.txt.html
hidden_wishes.ipynb
hidden_wishes.py

README.md

Secret Wishes

a birthday hack :)

what's this?

Code that scans literature for secret "happy birthday" wishes. 😉

why?

Because today is my birthday 🎂 , and I felt like coding something connected to that.

how does it work?

Note: For this to work you need to have python's nltk package (install like so), as well as the associated Gutenberg corpus, that you can obtain running nltk.download() in a python shell. Then select the Gutenberg corpus from the avaialble corpora.

If those requirements are met you can proceed to download and run hidden_wishes.py. This creates a couple of HTML pages containing the novels' edited text with the strings happy and birthday highlighted. There is also a count of the occurances of each string right at the top of the document. Have fun!

PS.: parents send most wishes!

You can’t perform that action at this time.