textlint checks prose in Markdown and plain text using installable rules, configurable via .textlintrc and runnable from the CLI or Node API.
Overview
textlint is a linting utility for natural language, modeled after ESLint but aimed at text rather than code. It ships without bundled rules; each rule is installed separately from npm and enabled in configuration.
Users install the textlint CLI with npm, add rules, run npx textlint --init to generate .textlintrc.json, then lint files with glob patterns. Configuration can be JSON, YAML, or JavaScript loaded through rc-config-loader, including per-rule options.
Plugins extend parsers and file types beyond default Markdown and plain text, for example HTML via textlint-plugin-html. Optional formatters include stylish, compact, junit, github, and others; some rules support --fix for automatic corrections.
The project exposes a Node module API and a lower-level @textlint/kernel for non-Node environments. Integrations cover editors, gulp and Grunt, a standalone cross-platform app, browser extension, and an MCP server for AI assistants in VS Code, Cursor, and similar tools.
Key features
- No default rules; npm-installed rule packs
- .textlintrc JSON YAML or JS config
- Markdown and plain text by default
- Processor plugins for more formats
- Multiple output formatters
- Fixable rules with --fix
- Node module and kernel APIs
- MCP server for AI editors
Use cases
- Linting README and docs prose
- Enforcing style guides in Markdown
- CI checks on technical writing
- Custom rules for terminology
- AI-assisted writing review via MCP