# retextjs/retext

natural language processor powered by plugins part of the @unifiedjs collective

Repository: https://github.com/retextjs/retext
Canonical: https://ross.abutalabs.com/products/retext
Homepage: https://unifiedjs.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: natural-language, ast, retext, cst, javascript, unified
Last push: 2025-02-04T14:37:32+00:00

## Health v2 (maintenance only)
Score: 25/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 5, release rhythm 8, longevity 100
- inputs: {"age_days": 4474, "days_push": 575, "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 2436, forks 91 (observed 2026-08-28T04:06:51.437585+00:00)

## What it is
Retext is a JavaScript library that transforms natural language into concrete syntax trees (CSTs) and lets plugins inspect and change that structured prose. It is part of the unified collective and runs on the server, client, and Deno.

## Use cases
- check spelling in text programmatically
- fix typography like smart quotes in prose
- check readability of articles
- lint natural language text for redundant phrases
- parse English text into a syntax tree
- build custom natural language processing plugins

## When to choose
- you want to process or lint prose as structured data in JavaScript
- you need a plugin-based pipeline for natural language transformations
- you want to run text processing on server, client, or Deno

## When to avoid
- you need heavy statistical NLP or machine learning models
- you only need simple regex-based text replacement
- you work outside the JavaScript ecosystem

## Facets
- artifact type: library
- maturity: active
- function: nlp, parser, plugin-system
- domain: developer-tools, text-editors
- platform: browser
- tags: unified, cst, natural-language, prose-linting, ecosystem, natural-language-processing, nodejs, deno, javascript

## Member repositories
- retextjs/retext (main) score 25

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:51.437585+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:31:01.422294+00:00, confidence not recorded.
  - readme: https://github.com/retextjs/retext (fetched 2026-08-28T04:06:51.437585+00:00, sha b4e2d5dc97e0)
  - homepage: https://unifiedjs.com (fetched 2026-08-29T10:12:37.692495+00:00, sha 0359e5fdf9c6)
  - site_page: https://unifiedjs.com/explore/release (fetched 2026-08-29T10:12:37.701666+00:00, sha 34c5baf82537)
- Data as of 2026-08-30T08:39:29.467469+00:00.
