thisandagain/sentiment
AFINN-based sentiment analysis for Node.js.
Combines the AFINN-165 lexicon with emoji sentiment scoring to analyze text polarity, returning detailed breakdowns including comparative scores normalized across document length. Supports extensibility through custom language registration with per-language negation and emphasis strategies, plus runtime word score overrides via extras. Built for Node.js with optimized performance (~2x faster than comparable libraries) through efficient tokenization and lexicon lookup.
2,674 stars and 531,841 monthly downloads. Used by 2 other packages. No commits in the last 6 months. Available on npm.
Stars
2,674
Forks
313
Language
JavaScript
License
MIT
Category
Last pushed
May 18, 2020
Monthly downloads
531,841
Commits (30d)
0
Reverse dependents
2
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/thisandagain/sentiment"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
thisandagain/troll
Language sentiment analysis and neural networks... for trolls.
mananshah99/sentR
Simple sentiment analysis framework for R
kupolak/afinn
Sentiment analysis in Elixir.
SentometricsResearch/sentometrics
An integrated framework in R for textual sentiment time series aggregation and prediction
syzer/sentiment-analyser
ML that can extract german and english sentiment