thisandagain/sentiment

AFINN-based sentiment analysis for Node.js.

68
/ 100
Established

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.

Stale 6m
Maintenance 0 / 25
Adoption 22 / 25
Maturity 25 / 25
Community 21 / 25

How are scores calculated?

Stars

2,674

Forks

313

Language

JavaScript

License

MIT

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.