#113 · Primary category: NLP Tools & Text Processing

sentiment

afinn analysis javascript nlp sentiment sentiment-analysis

AFINN-based sentiment analysis for Node.js.

Project last updated:05/18/20

GitHub Stars

2.7K

Forks

310

Contributors

18

License

MIT

Why we included this project

Sentiment scores the emotional tone of a block of text by matching tokens against the AFINN-165 wordlist, with an emoji sentiment ranking layered on top. It returns both an absolute score and a comparative figure normalized by sentence length, so you get a quick, deterministic read on product reviews, support tickets, or social mentions without standing up a trained model. You can also extend it: register a new language with its own label set, or override the scoring strategy per language to handle negation and emphasis the way that language actually works. For lightweight analysis pipelines where a rough positive/negative signal is all you need, that keeps the whole thing a few lines of code instead of a project.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category