All Projects → words → afinn-111

words / afinn-111

Licence: MIT license
AFINN 111 (list of English words rated for valence) in JSON

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to afinn-111

Senti4SD
An emotion-polarity classifier specifically trained on developers' communication channels
Stars: ✭ 41 (-6.82%)
Mutual labels:  sentiment, polarity
Emotion and Polarity SO
An emotion classifier of text containing technical content from the SE domain
Stars: ✭ 74 (+68.18%)
Mutual labels:  sentiment, polarity
Sentiment
AFINN-based sentiment analysis for Node.js.
Stars: ✭ 2,469 (+5511.36%)
Mutual labels:  sentiment, afinn
billboard
🎤 Lyrics/associated NLP data for Billboard's Top 100, 1950-2015.
Stars: ✭ 53 (+20.45%)
Mutual labels:  sentiment
Sentimentr
Dictionary based sentiment analysis that considers valence shifters
Stars: ✭ 325 (+638.64%)
Mutual labels:  sentiment
Text Analytics With Python
Learn how to process, classify, cluster, summarize, understand syntax, semantics and sentiment of text data with the power of Python! This repository contains code and datasets used in my book, "Text Analytics with Python" published by Apress/Springer.
Stars: ✭ 1,132 (+2472.73%)
Mutual labels:  sentiment
memealyzer
Memealyzer is an app built to demonstrate some the latest and greatest Azure tech to dev, debug, and deploy microservice applications.
Stars: ✭ 97 (+120.45%)
Mutual labels:  sentiment
OTE-MTL
Code and dataset for Findings of EMNLP 2020 paper titled "A Multi-task Learning Framework for Opinion Triplet Extraction"
Stars: ✭ 32 (-27.27%)
Mutual labels:  sentiment
Twitter Sentiment Analysis
This script can tell you the sentiments of people regarding to any events happening in the world by analyzing tweets related to that event
Stars: ✭ 94 (+113.64%)
Mutual labels:  sentiment
Max Text Sentiment Classifier
Detect the sentiment captured in short pieces of text
Stars: ✭ 35 (-20.45%)
Mutual labels:  sentiment
Polarity
Detect the polarity (sentiment) of text
Stars: ✭ 33 (-25%)
Mutual labels:  sentiment
Troll
Language sentiment analysis and neural networks... for trolls.
Stars: ✭ 330 (+650%)
Mutual labels:  sentiment
Sentiment 2017 Imavis
From Pixels to Sentiment: Fine-tuning CNNs for Visual Sentiment Prediction
Stars: ✭ 85 (+93.18%)
Mutual labels:  sentiment
NRC-Persian-Lexicon
NRC Word-Emotion Association Lexicon
Stars: ✭ 30 (-31.82%)
Mutual labels:  sentiment
Scattertext
Beautiful visualizations of how language differs among document types.
Stars: ✭ 1,722 (+3813.64%)
Mutual labels:  sentiment
stock-news-sentiment-analysis
This program uses Vader SentimentIntensityAnalyzer to calculate the news headline overall sentiment for a stock
Stars: ✭ 21 (-52.27%)
Mutual labels:  sentiment
Pytreebank
😡😇 Stanford Sentiment Treebank loader in Python
Stars: ✭ 93 (+111.36%)
Mutual labels:  sentiment
Afinn 165
AFINN 165 (list of English words rated for valence) in JSON
Stars: ✭ 32 (-27.27%)
Mutual labels:  sentiment
Stocksight
Stock market analyzer and predictor using Elasticsearch, Twitter, News headlines and Python natural language processing and sentiment analysis
Stars: ✭ 1,037 (+2256.82%)
Mutual labels:  sentiment
watson-discovery-food-reviews
Combine Watson Knowledge Studio and Watson Discovery to discover customer sentiment from product reviews
Stars: ✭ 36 (-18.18%)
Mutual labels:  sentiment

afinn-111

Build Coverage Downloads Size

afinn-111.

Contents

What is this?

This package gives you easy access to afinn-111.

When should I use this?

You should likely use afinn-165 instead.

Install

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

npm install afinn-111

In Deno with esm.sh:

import {afinn111} from 'https://esm.sh/afinn-111@2'

In browsers with esm.sh:

<script type="module">
  import {afinn111} from 'https://esm.sh/afinn-111@2?bundle'
</script>

Use

import {afinn111} from 'afinn-111'

afinn111.positive //=> 2
afinn111['self-deluded'] //=> -2

API

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

afinn111

afinn-111 maps entries to valence ratings (Object.<string, number>).

👉 Note: Be careful when accessing unknown properties on the afinn-111 object, words such as “constructor” or “toString” might occur. It’s recommended to use a hasOwnProperty check beforehand.

Notes

Note the AFINN entries are:

  • all lower case
  • can contain numbers (only case: n00b)
  • can contain spaces (cases: can't stand, cashing in, cool stuff, does not work, dont like, fed up, green wash, green washing, messing up, no fun, not good, not working, right direction, screwed up, some kind)
  • can contain apostrophes (only case: can't stand)
  • can contain diaeresis (only case: naïve)
  • can contain dashes (cases: cover-up, made-up, once-in-a-lifetime, self-confident, self-deluded, short-sighted, short-sightedness, son-of-a-bitch)

Types

This package is fully typed with TypeScript. It exports no additional types.

Compatibility

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

Related

  • afinn-96 — AFINN list from 2009, containing 1468 entries
  • afinn-165 — AFINN list from 2015, containing 3382 entries
  • emoji-emotion — Like AFINN, but for emoji
  • polarity — Detect the polarity of text, based on afinn-165 and emoji-emotion

Contribute

Yes please! See How to Contribute to Open Source.

Security

This package is safe.

License

MIT © Titus Wormer

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].