PySpelling

2.12.1 · active · verified Thu Apr 16

PySpelling is a powerful spell checker for various text formats, including Markdown, reStructuredText, HTML, and Python source code. It acts as a wrapper for external spell checkers like Aspell or Hunspell, providing a unified configuration and reporting interface. Currently at version 2.12.1, it typically releases new versions every few months, often incorporating new Python version support, minor features, and bug fixes.

Common errors

Warnings

Install

Imports

Quickstart

Create a `.pyspelling.yml` configuration file and then run `pyspelling` from your terminal. This example checks Markdown files using Aspell and a custom wordlist. Ensure you have Aspell or Hunspell installed on your system.

echo "sources:\n  - './*.md'\naspell:\n  lang: en\n  d: en_US\ndictionary:\n  wordlists:\n    - .pyspelling_wordlist.txt\n  encoding: utf-8\n" > .pyspelling.yml

echo "# My Document\n\nThis is a test with a mispelled word: misstake." > test.md

# Run spell check
pyspelling

# Expected output (simplified, actual output depends on Aspell/Hunspell installation):
# test.md:2: misstake

view raw JSON →