README
emoji-emotion
List of emoji rated for valence with an integer between minus five (negative) and plus five (positive).
Install
This package is ESM only: Node 12+ is needed to use it and it must be import
ed
instead of require
d.
npm:
npm install emoji-emotion
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 } ]
Note the information is intentionally limited.
Check out gemoji
for more info: tags, descriptions, names, etc.
API
This package exports the following identifiers: emojiEmotion
.
There is no default export.
emojiEmotion
Array.<Info>
, where each object has name
(string
), emoji
(string
), and
polarity
(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.
Note that some emoji receive arguably confusing polarities, such as
stuck_out_tongue_closed_eyes
(0
), due to being used for both positive and
negative emotions.
No images are included in this repository: the copyrighted material may or may not be available on the users computer.
Support
| Emoji | Name(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_face | 0 | | 𤤠| drooling_face | 0 | | đ | expressionless | 0 | | đ¤ | money_mouth_face | 0 | | đ | neutral_face | 0 | | đļ | no_mouth | 0 | | đ´ | sleeping | 0 | | đĒ | sleepy | 0 | | đ | stuck_out_tongue_closed_eyes | 0 | | đ¤ | triumph | 0 | | đ | upside_down_face | 0 | | đ¤ | handshake | 1 | | đ | laughing; satisfied | 1 | | đ | pray | 1 | | đ | slightly_smiling_face | 1 | | đ | stuck_out_tongue | 1 | | đ | sunglasses | 1 | | đ | +1; thumbsup | 2 | | đ˛ | astonished | 2 | | đ | blush | 2 | | đ¤ | cowboy_hat_face | 2 | | đ¤ | crossed_fingers | 2 | | đ | grin | 2 | | đ | grinning | 2 | | đ¤ | hugs | 2 | | đ | kiss | 2 | | đ | kissing | 2 | | đŊ | kissing_cat | 2 | | đ | kissing_closed_eyes | 2 | | đ | kissing_smiling_eyes | 2 | | đ | lips | 2 | | đ | ok_hand | 2 | | âēī¸ | relaxed | 2 | | đ | relieved | 2 | | đ | smile | 2 | | đ¸ | smile_cat | 2 | | đ | smiley | 2 | | đē | smiley_cat | 2 | | đ | smirk | 2 | | đŧ | smirk_cat | 2 | | đ | sweat_smile | 2 | | âī¸ | v | 2 | | đ¯ | 100 | 3 | | đ¤ | black_heart | 3 | | đ | blue_heart | 3 | | đ | clap | 3 | | đ | cupid | 3 | | đ | gift_heart | 3 | | đ | green_heart | 3 | | â¤ī¸ | heart | 3 | | đ | heart_eyes | 3 | | đģ | heart_eyes_cat | 3 | | đ | heartbeat | 3 | | đ | heartpulse | 3 | | đ | innocent | 3 | | đ | joy | 3 | | đš | joy_cat | 3 | | đ | kissing_heart | 3 | | đ | purple_heart | 3 | | đ | revolving_hearts | 3 | | đ | sparkling_heart | 3 | | đ | two_hearts | 3 | | đ | wink | 3 | | đ | yellow_heart | 3 | | đ | yum | 3 | | đ | raised_hands | 4 | | đ¤Ŗ | rofl | 4 |
License
MIT Š Titus Wormer