NaNoGenMo / 2019

National Novel Generation Month, 2019 edition.
97 stars 5 forks source link

Emoji #59

Open djonn opened 4 years ago

djonn commented 4 years ago

DISCLAIMER

I wrote the code for this October 21st 2019, as I had misremembered the month. Hope you're all okay with that.

Idea

The idea was just to find a dictionary of emoji and english words and change all the words into emoji. Whenever an emoji doesn't exist for the word, the word is just skipped. When a combination of emojis are present for the word only the first emoji is inserted. In emoji a single icon can contain multiple characters. Take for example 🚴🏿‍♀️ or "Woman Biking: Dark Skin Tone", which contains 5 characters, a person cycling, dark skin tone, whats called a "zero width modifier", woman and a variant (I don't know what it's doing).

Result

Code: https://github.com/djonn/NaNoGenMo2019-Emoji Book: https://github.com/djonn/NaNoGenMo2019-Emoji/blob/master/BOOK.md

Resources

Emoji/word dataset: http://emojinet.knoesis.org/dataset.php Input books: https://www.gutenberg.org/

hugovk commented 4 years ago

I wrote the code for this October 21st 2019, as I had misremembered the month.

That's a good enough excuse for me, we'll let you off this time, don't do it again :)

I like all the clocks near the end!

djonn commented 4 years ago

I think they are coming from the tables in "The Mental Life of Monkeys and Apes" :)