# thisandagain/sentiment

AFINN-based sentiment analysis for Node.js.

Repository: https://github.com/thisandagain/sentiment
Canonical: https://ross.abutalabs.com/products/sentiment
Language: JavaScript
License: MIT
License Family: permissive
Topics: sentiment, afinn, javascript, nlp, analysis, sentiment-analysis
Last push: 2020-05-18T13:55:58+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5077, "days_push": 2298, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2678, forks 311 (observed 2026-08-28T04:07:09.884008+00:00)

## What it is
A Node.js module that performs sentiment analysis on text using the AFINN-165 wordlist and Emoji Sentiment Ranking. It supports custom languages, custom scoring strategies for negation and emphasis, and extending or overriding the wordlist.

## Use cases
- score sentiment of user reviews in node.js
- analyze sentiment of tweets or comments
- add custom sentiment words to a lexicon
- support sentiment analysis in multiple languages
- handle negation like 'not good' in sentiment scoring
- fast lexicon-based sentiment analysis without ML models

## When to choose
- you need fast, lightweight lexicon-based sentiment scoring in Node.js
- you want to customize the wordlist or add languages easily
- you don't want to depend on heavy ML models or external services

## When to avoid
- you need state-of-the-art accuracy on sarcasm or context-dependent sentiment
- you need languages beyond English without building them yourself
- you need actively developed software with recent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: nlp, parser
- domain: machine-learning, developer-tools
- platform: -
- tags: sentiment-analysis, afinn, text-analysis, emoji-sentiment, lexicon-based, natural-language-processing, nodejs, javascript

## Member repositories
- thisandagain/sentiment (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.884008+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:17:59.235892+00:00, confidence not recorded.
  - readme: https://github.com/thisandagain/sentiment (fetched 2026-08-28T04:07:09.884008+00:00, sha addeebd7d6a4)
  - registry_npm: https://registry.npmjs.org/sentiment (fetched 2026-08-29T10:00:34.388511+00:00, sha 12b4ff5fc615)
- Data as of 2026-08-30T08:39:29.467469+00:00.
