5-7-5 nonsense poems generated using unicode description text.
Java Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commitโ€ฆ
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
datasources
emojihaiku
java
syllablecount
unicodescraper
.gitattributes
LICENSE
README.md
developer_notes.md
samples.md

README.md

Emoji Haiku!

๐ŸŒŒ ๐Ÿ•๏ธ
๐Ÿ‡น๐Ÿ‡ฉ ๐Ÿ––
๐ŸŽฝ ๐Ÿ“›

MILKY WAY CAMPING
FLAG FOR CHAD VULCAN SALUTE
RUNNING SHIRT NAME BADGE

What?

Emoji Haiku is a small program that generates nonsense poems in a 5-7-5 syllable pattern based on the Unicode emoji descriptions.

Generate your own at capnfabs.net/emoji-haiku, or follow @emojihaikus on twitter for one per day ๐Ÿ˜

How do I use it?

Head to http://capnfabs.net/emoji-haiku.

Alternatively, here's a quick overview of the code:

  • go run unicodescraper/scrape.go - scrapes the aforementioned unicode emoji descriptions page and outputs a JSON format that's easier to work with.
  • go run syllablecount/syllable_count.go - parses the CMU pronunciation dictionary to precompute syllable counts. Note that I've commented out some words from the CMU dictionary stored in the datasources directory; I'll be darned before "national" or "fuel" are two-syllable words.
  • java/ - this aptly-named directory is a Java gradle project. It does two things:
      1. ./gradlew run: runs the program locally and generates a single Emoji Haiku
      1. ./gradlew buildAwsZip: builds a ZIP file that you can upload to AWS and use as a lambda function (see developer_notes.md for more info).

There's more samples here.

Acknowledgements

Somewhat inspired by Haiku by Robot, Wizard Generator, Aubergine Bot, Emoji Tracker and plenty of others.

With apologies to anyone who has ever put time and energy into a real poem.