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

[Feature] Added emoji usage frequency support #618

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MajeurAndroid
Copy link
Member

@MajeurAndroid MajeurAndroid commented May 31, 2022

What is it ?

This PR adds - as an optional feature enabled by default - recent emojis sorted accordingly to their frequency of use. As opposite to the "last used" sorting currently in place.

The goal was to allow a sorting method that would take into account number of uses as well as how recent these uses are.

How it works ?

To explain this briefly, as incoming data we have dates at which emojis had been use, and as outcoming data we want a a value, that we called frequency, that we use to compare emoji against each other.

We compute that "frequency" for each recent emoji by following these steps:

  • For each date of use, we compute the time elapsed from now, and divide it by a reference time period (24h, but it can be anything else).
  • We then throw this value in a well chosen mathematical function that will give more importance for recent dates (2), and decreasing importance the older the dates get (tanganting 1 but never reaching it).
    Here is a graphical representation for 0 to 12 times our reference time (which is 24h):
    image
  • Because the mathematical function has been so well chosen, it gives values at least equals to 1, so we can multiply all the frequencies together to calculate the total frequency of this emoji.
  • We then are able to sort every recent emoji based on previously calculated frequencues.

And now ?

The model for now is "as is", and is in test since 1 week, but may need a bit of testing by a larger audience. We can have a less stiff curve to give a bit less importance to "recentness" over number of uses.

Fixes #55

@MajeurAndroid MajeurAndroid changed the title Added emoji usage frequency support [Feature] Added emoji usage frequency support Aug 12, 2022
@MajeurAndroid MajeurAndroid mentioned this pull request Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to have a most recently used section for emojis
1 participant