Skip to content

proselint

⚠️ GitHub stars sarif GitHub release (latest SemVer) GitHub last commit GitHub commit activity GitHub contributors

This linter has been deprecated.

proselint is unmaintained and suffers from high false-positive rates and Python packaging conflicts. Migrate to Vale (SPELL_VALE) for prose style checking or typos (SPELL_TYPOS) for fast source-code spell checking.

You should disable proselint by adding it in DISABLE_LINTERS property.

It will be maintained at least until the next major release.

proselint is a powerful linter for English prose that places the world's greatest writers and editors by your side, offering intelligent suggestions to improve your writing quality and style.

Key Features:

  • Expert-Driven Advice: Aggregates wisdom from renowned writers like David Foster Wallace, Chuck Palahniuk, Steve Pinker, Mark Twain, and George Orwell
  • Comprehensive Style Checks: Over 50 different categories covering everything from redundancy and clichés to typography and consistency
  • Industry-Specific Guidance: Detects jargon, corporate buzzwords, archaic forms, and domain-specific writing issues
  • Security Awareness: Identifies sensitive information like credit card numbers and passwords in text
  • Rich Output Formats: Provides detailed suggestions with source attribution, severity levels, and potential replacements
  • Extensible Configuration: Fully customizable checks through JSON configuration files

Migration Guide

SPELL_PROSELINT is deprecated and will be removed in a future major release. Replace it with SPELL_VALE for prose style linting and SPELL_TYPOS for fast source-code spell checking:

  • Editorial and prose style linting (SPELL_VALE): Replace .proselintrc.json with a .vale.ini configuration file and install community prose style packages (such as write-good, Google, or Microsoft) via vale sync.
  • Fast source-code spell checking (SPELL_TYPOS): Enable SPELL_TYPOS (configured via typos.toml, _typos.toml, .typos.toml, pyproject.toml, or Cargo.toml) to catch unambiguous misspellings across source files, comments, and documentation with --write-changes auto-fix support.
  • Disable SPELL_PROSELINT: Remove .proselintrc.json once migrated, or add DISABLE_LINTERS: [SPELL_PROSELINT] to your .mega-linter.yml configuration.

proselint documentation

proselint - GitHub

Configuration in MegaLinter

Variable Description Default value
SPELL_PROSELINT_ARGUMENTS User custom arguments to add in linter CLI call
Ex: -s --foo "bar"
SPELL_PROSELINT_COMMAND_REMOVE_ARGUMENTS User custom arguments to remove from command line before calling the linter
Ex: -s --foo "bar"
SPELL_PROSELINT_FILTER_REGEX_INCLUDE Custom regex including filter
Ex: (src\|lib)
⚠️ Not available with SPELL_PROSELINT_CLI_LINT_MODE = project
Exclude no file
SPELL_PROSELINT_FILTER_REGEX_EXCLUDE Custom regex excluding filter
Ex: (test\|examples)
⚠️ Not available with SPELL_PROSELINT_CLI_LINT_MODE = project
Exclude no file
SPELL_PROSELINT_CLI_LINT_MODE Override default CLI lint mode
- file: Calls the linter for each file
- list_of_files: Call the linter with the list of files as argument
- project: Call the linter from the root of the project
list_of_files
SPELL_PROSELINT_FORWARD_EXCLUDED_DIRECTORIES In project CLI lint mode, forward excluded directories (EXCLUDED_DIRECTORIES + ADDITIONAL_EXCLUDED_DIRECTORIES, and .gitignored directories when IGNORE_GITIGNORED_FILES is true) to the linter through its native exclusion arguments or generated ignore/config files true
SPELL_PROSELINT_FILE_EXTENSIONS Allowed file extensions. "*" matches any extension, "" matches empty extension. Empty list excludes all files
Ex: [".py", ""]
[".md", ".txt"]
SPELL_PROSELINT_FILE_NAMES_REGEX File name regex filters. Regular expression list for filtering files by their base names using regex full match. Empty list includes all files
Ex: ["Dockerfile(-.+)?", "Jenkinsfile"]
Include every file
SPELL_PROSELINT_PRE_COMMANDS List of bash commands to run before the linter None
SPELL_PROSELINT_POST_COMMANDS List of bash commands to run after the linter None
SPELL_PROSELINT_UNSECURED_ENV_VARIABLES List of env variables explicitly not filtered before calling SPELL_PROSELINT and its pre/post commands None
SPELL_PROSELINT_CONFIG_FILE proselint configuration file name
Use LINTER_DEFAULT to let the linter find it
.proselintrc.json
SPELL_PROSELINT_RULES_PATH Path where to find linter configuration file Workspace folder, then MegaLinter default rules
SPELL_PROSELINT_DISABLE_ERRORS Run linter but consider errors as warnings false
SPELL_PROSELINT_DISABLE_ERRORS_IF_LESS_THAN Maximum number of errors allowed 0
SPELL_PROSELINT_TIMEOUT_SECONDS Maximum duration in seconds of the linter run, after which the linter process and its child processes are killed and reported as an error (exit code 124). Overrides LINTER_TIMEOUT_SECONDS. 0 disables the timeout 300
SPELL_PROSELINT_CLI_EXECUTABLE Override CLI executable ['proselint']

IDE Integration

Use proselint in your favorite IDE to catch errors before MegaLinter !

IDE Extension Name Install
IDEA Proselint
Sublime Text SublimeLinter-contrib-proselint Visit Web Site
Visual Studio Code VSCode Proselint Install in VSCode

MegaLinter Flavors

This linter is available in the following flavors

Flavor Description Embedded linters Info
all Default MegaLinter Flavor 135 Docker Image Size (tag) Docker Pulls
c_cpp Optimized for pure C/C++ projects 60 Docker Image Size (tag) Docker Pulls
documentation MegaLinter for documentation projects 53 Docker Image Size (tag) Docker Pulls
dotnet Optimized for C, C++, C# or VB based projects 67 Docker Image Size (tag) Docker Pulls
dotnetweb Optimized for C, C++, C# or VB based projects with JS/TS 82 Docker Image Size (tag) Docker Pulls
go Optimized for GO based projects 55 Docker Image Size (tag) Docker Pulls
java Optimized for JAVA based projects 58 Docker Image Size (tag) Docker Pulls
javascript Optimized for JAVASCRIPT or TYPESCRIPT based projects 69 Docker Image Size (tag) Docker Pulls
php Optimized for PHP based projects 58 Docker Image Size (tag) Docker Pulls
python Optimized for PYTHON based projects 71 Docker Image Size (tag) Docker Pulls
ruby Optimized for RUBY based projects 54 Docker Image Size (tag) Docker Pulls
rust Optimized for RUST based projects 54 Docker Image Size (tag) Docker Pulls
salesforce Optimized for Salesforce based projects 59 Docker Image Size (tag) Docker Pulls
swift Optimized for SWIFT based projects 54 Docker Image Size (tag) Docker Pulls
terraform Optimized for TERRAFORM based projects 58 Docker Image Size (tag) Docker Pulls

Behind the scenes

How are identified applicable files

  • Activated only if one of these files is found: .proselintrc.json, proselint/config.json
  • File extensions: .md, .txt

How the linting is performed

proselint is called once on the whole project directory (project CLI lint mode)

  • filtering can not be done using MegaLinter configuration variables,it must be done using proselint configuration or ignore file (if existing)
  • VALIDATE_ALL_CODEBASE: false doesn't make proselint analyze only updated files

Example calls

proselint check --config .proselintrc.json myfile.md myfile2.txt myfile3.rst

Help content

usage: proselint [options] <command>

proselint, a linter for prose.

options:
  -h, --help            show this help message and exit
  --config CONFIG       path to a configuration file (`.proselintrc.json`)
  --output-format, -o {full,json,compact}
                        the format to display results in
  --verbose, -v         enable verbose logging

commands:

    version             display the current version and exit
    check               run proselint against paths
    dump-config         display the loaded configuration and exit

Installation on mega-linter Docker image

  • Dockerfile commands :
    # renovate: datasource=pypi depName=proselint
    ARG PIP_PROSELINT_VERSION=0.16.0
    

Installation without Docker (native mode)

This linter can run without Docker, see native mode.

  • Install method: Python package (isolated virtual environment)
  • Requires the python runtime >=3.10
NATIVE_LINTERS: [SPELL_PROSELINT]
Platform Support
Linux (x86-64) ✅
Linux (ARM64) ✅
macOS (Intel) ✅
macOS (Apple Silicon) ✅
Windows (Git Bash) ✅
INSTALL_DIR="$HOME/.megalinter/linters/SPELL_PROSELINT"
uv venv "$INSTALL_DIR" --python ">=3.10"
uv pip install --python "$INSTALL_DIR/bin/python" --only-binary :all: "proselint==0.16.0"
export PATH="$INSTALL_DIR/bin:$PATH"
INSTALL_DIR="$HOME/.megalinter/linters/SPELL_PROSELINT"
uv venv "$INSTALL_DIR" --python ">=3.10"
uv pip install --python "$INSTALL_DIR/Scripts/python.exe" --only-binary :all: "proselint==0.16.0"
export PATH="$INSTALL_DIR/Scripts:$PATH"

Comments