Home

Awesome

emoji-emotion

Build Coverage Downloads Size

List of emoji rated for valence.

Contents

What is this?

This is a list of unicode emoji rated for valence (โ€œgoodnessโ€ vs โ€œbadnessโ€).

When should I use this?

This package can be used for sentiment analysis of emoji. You can use afinn-165 for English words. Use gemoji for more info on emoji.

Install

This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:

npm install emoji-emotion

In Deno with esm.sh:

import {emojiEmotion} from 'https://esm.sh/emoji-emotion@3'

In browsers with esm.sh:

<script type="module">
  import {emojiEmotion} from 'https://esm.sh/emoji-emotion@3?bundle'
</script>

Use

import {emojiEmotion} from 'emoji-emotion'

console.log(emojiEmotion.slice(0, 5))

Yields:

[ { name: '100', emoji: '๐Ÿ’ฏ', polarity: 3 },
  { name: 'angry', emoji: '๐Ÿ˜ ', polarity: -3 },
  { name: 'anguished', emoji: '๐Ÿ˜ง', polarity: -3 },
  { name: 'astonished', emoji: '๐Ÿ˜ฒ', polarity: 2 },
  { name: 'black_heart', emoji: '๐Ÿ–ค', polarity: 3 } ]

API

This package exports the identifier emojiEmotion. There is no default export.

emojiEmotion

List of emoji rated for valence (Array<Info>).

Info

Emoji rated for valence.

info.name

Name of emoji, according to gemoji (string).

info.emoji

Unicode emoji (string).

info.polarity

Integer between minus five (negative) and plus five (positive) (number).

Data

The included emoji are the faces and cats defined by Unicode. The polarity was hand classified (by one person) based on the names of these emoji (sometimes synonyms) and their AFINN-165 values. Special care was given to not classify based on the images (as different vendors use different pictograms), but only on words and how they are used.

Some emoji receive arguably confusing polarities, such as stuck_out_tongue_closed_eyes (0), due to being used for both positive and negative emotions.

Support

<!--support start-->
EmojiName(s)Polarity
๐Ÿ‘ฟimp-4
๐Ÿ–•middle_finger; fu-4
๐Ÿ˜พpouting_cat-4
๐Ÿ˜กrage; pout-4
๐Ÿ˜ angry-3
๐Ÿ˜งanguished-3
๐Ÿ’”broken_heart-3
๐Ÿ’ฉhankey; poop; shit-3
๐Ÿ˜ฑscream-3
๐Ÿ™€scream_cat-3
๐Ÿ˜ˆsmiling_imp-3
๐Ÿ˜ญsob-3
๐Ÿ˜Ÿworried-3
๐Ÿ‘Ž-1; thumbsdown-2
๐Ÿ˜ฐcold_sweat-2
๐Ÿ˜–confounded-2
๐Ÿ˜•confused-2
๐Ÿ˜ขcry-2
๐Ÿ˜ฟcrying_cat_face-2
๐Ÿ˜ždisappointed-2
๐Ÿค•face_with_head_bandage-2
๐Ÿ˜จfearful-2
๐Ÿ˜ณflushed-2
โ˜น๏ธfrowning_face-2
๐Ÿ˜ฌgrimacing-2
๐Ÿคฅlying_face-2
๐Ÿคขnauseated_face-2
๐Ÿ˜ฎopen_mouth-2
๐Ÿ˜ฃpersevere-2
๐Ÿ’€skull-2
โ˜ ๏ธskull_and_crossbones-2
๐Ÿคงsneezing_face-2
๐Ÿ˜ซtired_face-2
๐Ÿ˜’unamused-2
๐Ÿ˜ฉweary-2
๐Ÿ˜ฅdisappointed_relieved-1
๐Ÿ˜ตdizzy_face-1
๐Ÿค’face_with_thermometer-1
๐Ÿ‘Šfist_oncoming; facepunch; punch-1
๐Ÿ˜ฆfrowning-1
๐Ÿ‘ปghost-1
๐Ÿ˜ฏhushed-1
๐Ÿ˜ทmask-1
๐Ÿค“nerd_face-1
๐Ÿ˜”pensive-1
๐Ÿ™„roll_eyes-1
๐Ÿ™slightly_frowning_face-1
๐Ÿ˜œstuck_out_tongue_winking_eye-1
๐Ÿ˜“sweat-1
๐Ÿค”thinking-1
๐Ÿคzipper_mouth_face-1
๐Ÿคกclown_face0
๐Ÿคคdrooling_face0
๐Ÿ˜‘expressionless0
๐Ÿค‘money_mouth_face0
๐Ÿ˜neutral_face0
๐Ÿ˜ถno_mouth0
๐Ÿ˜ดsleeping0
๐Ÿ˜ชsleepy0
๐Ÿ˜stuck_out_tongue_closed_eyes0
๐Ÿ˜คtriumph0
๐Ÿ™ƒupside_down_face0
๐Ÿคhandshake1
๐Ÿ˜†laughing; satisfied1
๐Ÿ™pray1
๐Ÿ™‚slightly_smiling_face1
๐Ÿ˜›stuck_out_tongue1
๐Ÿ˜Žsunglasses1
๐Ÿ‘+1; thumbsup2
๐Ÿ˜ฒastonished2
๐Ÿ˜Šblush2
๐Ÿค cowboy_hat_face2
๐Ÿคžcrossed_fingers2
๐Ÿ˜grin2
๐Ÿ˜€grinning2
๐Ÿค—hugs2
๐Ÿ’‹kiss2
๐Ÿ˜—kissing2
๐Ÿ˜ฝkissing_cat2
๐Ÿ˜škissing_closed_eyes2
๐Ÿ˜™kissing_smiling_eyes2
๐Ÿ‘„lips2
๐Ÿ‘Œok_hand2
โ˜บ๏ธrelaxed2
๐Ÿ˜Œrelieved2
๐Ÿ˜„smile2
๐Ÿ˜ธsmile_cat2
๐Ÿ˜ƒsmiley2
๐Ÿ˜บsmiley_cat2
๐Ÿ˜smirk2
๐Ÿ˜ผsmirk_cat2
๐Ÿ˜…sweat_smile2
โœŒ๏ธv2
๐Ÿ’ฏ1003
๐Ÿ–คblack_heart3
๐Ÿ’™blue_heart3
๐Ÿ‘clap3
๐Ÿ’˜cupid3
๐Ÿ’gift_heart3
๐Ÿ’šgreen_heart3
โค๏ธheart3
๐Ÿ˜heart_eyes3
๐Ÿ˜ปheart_eyes_cat3
๐Ÿ’“heartbeat3
๐Ÿ’—heartpulse3
๐Ÿ˜‡innocent3
๐Ÿ˜‚joy3
๐Ÿ˜นjoy_cat3
๐Ÿ˜˜kissing_heart3
๐Ÿ’œpurple_heart3
๐Ÿ’žrevolving_hearts3
๐Ÿ’–sparkling_heart3
๐Ÿ’•two_hearts3
๐Ÿ˜‰wink3
๐Ÿ’›yellow_heart3
๐Ÿ˜‹yum3
๐Ÿ™Œraised_hands4
๐Ÿคฃrofl4
<!--support end-->

Types

This package is fully typed with TypeScript. It exports the additional type Info.

Compatibility

This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.

Related

Contribute

Yes please! See How to Contribute to Open Source.

Security

This package is safe.

License

MIT ยฉ Titus Wormer

<!-- Definitions -->