Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Favorite emojis? #37

Open
KevinColemanInc opened this issue Jan 17, 2020 · 1 comment
Open

Favorite emojis? #37

KevinColemanInc opened this issue Jan 17, 2020 · 1 comment

Comments

@KevinColemanInc
Copy link

I'd be curious what my favorite emojis are and how that compares to my friend's favorite emojis

@mar-muel
Copy link
Collaborator

mar-muel commented Feb 9, 2020

Hey all - thought this was a fun idea so I tried to give it a shot.

My first idea was to use matplotlib to render a plot which shows rows for each user and then the preferred emojis (more popular emojis would be printed with a higher font size). However as you can see below the result was... not very impressive 🙈:

emoji_1581179099729

There are multiple problems with rendering Apple emojis properly with matplotlib. This blogpost gives some solutions on how to solve this. However, I think the setup is not trivial and this would lead to all kinds of problems for users (e.g. on Windows).

So what I did now was simply printing out the frequencies by user (ranking from the top top bottom):

2020-02-09 21:41:32,517 [INFO ] [visualizers.]: Computing emoji frequencies on 232,855 messages... 😤
2020-02-09 21:41:33,124 [INFO ] [visualizers.]: Found 23,364 messages containing 35,256 emojis! 🤗🤗
Favorite emojis for <user>
😂 😅 🏻 👍 😭 🙄 🙃 😎 😏 😒 😄 😍 😛 💃 😘 🙂 🏼 😔 💪 🔫
Favorite emojis for You
😂 😄 👍 🙂 😭 😍 🙄 😱 😀 😏 😎 😕 🎉 🙌 😵 👌 🙁 😉 🏽 💩
Favorite emojis for <user>
😂 😝 👌 😍 😁 👍 😭 🙄 🇩 🇪 🇨 🇭 😘 😬 🚲 😋 😅 💪 😆 😱
Favorite emojis for <user>
🏻 👍 😂 😅 😉 😏 😱 😀 😎 😊 😳 😞 🙈 🙀 🎉 😜 😃 🍷 🙏 🎶
Favorite emojis for <user>
🗡 🕊 🔁 🔮 🔎 👔
Favorite emojis for <user>
😉 😅 😜 👍 😄 😂 😊 🙄 🙂 😀 😆 🙁 😁 😮 😩 😕
Favorite emojis for <user>
👍 👌 😅 😏 😭 😉 🙈 😘 🙏 😜 🙀 🙇 🏻
Favorite emojis for <user>
😂 👍 😊 😅 😲 😆 😛 😈 😯 😏 😉 😩 😄 😜
Favorite emojis for <user>
😄 🙈 👌 😂 😊 👏 🏠 📭 🍺 🍝 📝 😉 😜 🌸 🗝 🔑 📪 🎁 💌 😘
Favorite emojis for <user>
😂 🏼 👍 🏿 😉 😩 💪 😛 😏 😭 😃

There are two issues here:

  1. Some emojis are not correctly parsed. I'm pretty sure that my regex parsing is not perfect. It would probably be cleaner to parse the emojis with the emoji Python library, which also supports parsing of Slack emojis (such as :smile:) - however, it would add a dependency.
  2. The printing is not as nice as a visualization.

Are there ideas on how we could render emojis? (Pull pngs for emojis? Render an HTML file with a library like bokeh? I'm also ok not continuing this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants