List of emoji rated for valence
npm install emoji-emotion[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
List of emoji rated for valence.
* What is this?
* When should I use this?
* Install
* Use
* API
* emojiEmotion
* Data
* Support
* Types
* Compatibility
* Related
* Contribute
* Security
* License
This is a list of unicode emoji rated for [valence][valence-wiki] (โgoodnessโ
vs โbadnessโ).
This package can be used for sentiment analysis of emoji.
You can use [afinn-165][afinn-165] for English words.
Use [gemoji][gemoji] for more info on emoji.
This package is [ESM only][esm].
In Node.js (version 14.14+, 16.0+), install with [npm][]:
``sh`
npm install emoji-emotion
In Deno with [esm.sh][esmsh]:
`js`
import {emojiEmotion} from 'https://esm.sh/emoji-emotion@3'
In browsers with [esm.sh][esmsh]:
`html`
`js
import {emojiEmotion} from 'emoji-emotion'
console.log(emojiEmotion.slice(0, 5))
`
Yields:
`js`
[ { 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 } ]
This package exports the identifier emojiEmotion.
There is no default export.
List of emoji rated for valence (Array).
##### Info
Emoji rated for valence.
##### info.name
Name of emoji, according to [gemoji][gemoji] (string).
##### info.emoji
Unicode emoji (string).
##### info.polarity
Integer between minus five (negative) and plus five (positive) (number).
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][checkmoji]), 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.
| 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 |
This package is fully typed with [TypeScript][].
It exports the additional type Info.
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][afinn-165]gemoji`][gemoji]
โ list of English words rated for valence
* [
โ info on gemoji (GitHub Emoji)
Yes please!
See [How to Contribute to Open Source][contribute].
This package is safe.
[MIT][license] ยฉ [Titus Wormer][author]
[build-badge]: https://github.com/words/emoji-emotion/workflows/main/badge.svg
[build]: https://github.com/words/emoji-emotion/actions
[coverage-badge]: https://img.shields.io/codecov/c/github/words/emoji-emotion.svg
[coverage]: https://codecov.io/github/words/emoji-emotion
[downloads-badge]: https://img.shields.io/npm/dm/emoji-emotion.svg
[downloads]: https://www.npmjs.com/package/emoji-emotion
[size-badge]: https://img.shields.io/bundlephobia/minzip/emoji-emotion.svg
[size]: https://bundlephobia.com/result?p=emoji-emotion
[npm]: https://docs.npmjs.com/cli/install
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
[esmsh]: https://esm.sh
[typescript]: https://www.typescriptlang.org
[contribute]: https://opensource.guide/how-to-contribute/
[license]: license
[author]: https://wooorm.com
[unicode]: http://www.unicode.org/emoji/charts/full-emoji-list.html
[gemoji]: https://github.com/wooorm/gemoji
[afinn-165]: https://github.com/words/afinn-165
[checkmoji]: https://wooorm.com/checkmoji/
[valence-wiki]: https://en.wikipedia.org/wiki/Valence_\(psychology\)