New update to the Twitter-Text library: Emoji character count

emoji
twitter-text

#1

Over the years, we have made several updates to the way that people can communicate on Twitter. One of the more notable changes made last year was to increase the number of characters per Tweet from 140 to 280 characters. Today, we continue to expand people’s ability to express themselves by announcing a change to the way that we count emojis.

Due to the differences in the way written text and emojis are encoded, many emojis (including emojis where you can apply gender and skin tone) have counted as more characters than other emojis, limiting the room for people to express themselves in other ways. There was also a difference in character counts amongst emojis, adding to the confusion.

Moving forward, in support of recent updates to Unicode, Twitter will now count all emojis equally, including those with gender and skin tone modifiers. This update marks significant progress for our service, and everyone can now benefit from the additional room to express themselves with more characters (or more emojis :wink:).

Additionally, we are releasing an update to our Open Source library - twitter-text - to account for these changes. twitter-text handles the way our internal services and client applications parse Tweets. This has consistently been a very popular library, and we know that many of you rely on it directly, or use its algorithms indirectly, in your own code. Alongside this, we are releasing a supporting library for the Javascript implementation - twemoji-parser - that enables identifying emoji entities within a string.

If you have any questions, feel free to raise technical issues and problems against the project on GitHub.

Thanks for building on the Twitter Developer Platform - we hope you enjoy the extra room, and new version of twitter-text!


#2