Retext

github.com/retextjs/retext Programming Languages Open-source projectOpen source

Retext processes natural language through a plugin based toolkit in the unified JavaScript ecosystem.

github.com/retextjs/retext
Retext homepage screenshot

About Retext

Retext is a tool that transforms natural language with plugins in the unified JavaScript ecosystem. It represents prose as concrete syntax trees that plugins can inspect and change, for tasks such as checking spelling, fixing typography, flagging redundant phrases, and checking readability. Users can use existing plugins or write their own.

The repository is a monorepo with parsers for English, Dutch, and other Latin-script prose, plus a serializer and a programmatic interface. It can run on the server, the client, Deno, and related JavaScript environments. The source recommends retext-english for English, retext-dutch for Dutch, and the general parser for other Latin-script languages.

Key features

  • Inspect and change natural language syntax trees with plugins
  • Parse English prose to syntax tree via retext-english
  • Parse Dutch prose to syntax tree via retext-dutch
  • Parse Latin-script prose via retext-latin
  • Serialize syntax trees to text via retext-stringify
  • Create custom plugins for spelling, typography and readability checks
Best for: Developers building JavaScript programs that analyze or transform English, Dutch, or other Latin-script prose.
Good for
  • Plugin ecosystem allows use of existing plugins or custom plugins
  • Runs on the server, the client, Deno, and related environments
  • Fully typed with TypeScript with types for nlcst available
Watch out for
  • Parsing guidance covers English, Dutch, and other Latin-script languages
  • Community plugins vary in maintenance and require quality assessment

Retext at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Retext alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Programming Languages

Well-known listings from the same topic.

All 66

Retext FAQ

When should I use retext-english, retext-dutch, or retext?
Use unified with retext-english and retext-stringify for English, retext-dutch for Dutch, and retext for other Latin-script languages.
Can I create my own retext plugin?
Yes. Plugins inspect and change syntax trees, and you can write custom plugins for your own checks.
How do I find existing plugins?
Through the awesome-retext selection, the list of plugins, or GitHub repositories tagged with the retext-plugin topic.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing