Socket
Socket
Sign inDemoInstall

emoji-emotion

Package Overview
Dependencies
0
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    emoji-emotion

List of emoji rated for valence


Version published
Weekly downloads
5
decreased by-50%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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

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

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.

  • afinn-165 — list of English words rated for valence
  • gemoji — info on gemoji (GitHub Emoji)

Contribute

Yes please! See How to Contribute to Open Source.

Security

This package is safe.

License

MIT © Titus Wormer

Keywords

FAQs

Last updated on 07 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc