Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/words/emoji-emotion
List of emoji rated for valence
https://github.com/words/emoji-emotion
emoji emotion polarity unicode valence
Last synced: 27 days ago
JSON representation
List of emoji rated for valence
- Host: GitHub
- URL: https://github.com/words/emoji-emotion
- Owner: words
- License: mit
- Created: 2014-11-28T13:43:58.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T09:09:02.000Z (about 2 years ago)
- Last Synced: 2024-11-08T13:15:18.663Z (about 1 month ago)
- Topics: emoji, emotion, polarity, unicode, valence
- Language: JavaScript
- Homepage:
- Size: 103 KB
- Stars: 123
- Watchers: 10
- Forks: 32
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: funding.yml
- License: license
Awesome Lists containing this project
README
# emoji-emotion
[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]List of emoji rated for valence.
## Contents
* [What is this?](#what-is-this)
* [When should I use this?](#when-should-i-use-this)
* [Install](#install)
* [Use](#use)
* [API](#api)
* [`emojiEmotion`](#emojiemotion)
* [Data](#data)
* [Support](#support)
* [Types](#types)
* [Compatibility](#compatibility)
* [Related](#related)
* [Contribute](#contribute)
* [Security](#security)
* [License](#license)## What is this?
This is a list of unicode emoji rated for [valence][valence-wiki] (โgoodnessโ
vs โbadnessโ).## When should I use this?
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.## Install
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
import {emojiEmotion} from 'https://esm.sh/emoji-emotion@3?bundle'
```
## Use
```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 } ]
```## API
This package exports the identifier `emojiEmotion`.
There is no default export.### `emojiEmotion`
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`).
## 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][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.## 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 |## 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
* [`afinn-165`][afinn-165]
โ list of English words rated for valence
* [`gemoji`][gemoji]
โ info on gemoji (GitHub Emoji)## Contribute
Yes please!
See [How to Contribute to Open Source][contribute].## Security
This package is safe.
## License
[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\)