Metadata-Version: 2.4
Name: enchant-spellcheck
Version: 2026.11.5.1
Summary: Check text files against Enchant dictionaries, ignoring backtick spans.
Author-email: Adam Dangoor <adamdangoor@gmail.com>
License-Expression: MIT
Project-URL: Source, https://github.com/adamtheturtle/enchant-spellcheck
Keywords: cli,enchant,spellcheck,spelling
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Requires-Python: >=3.11
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: click<8.6.0,>=8.3.0
Requires-Dist: pyenchant>=3.3.0
Dynamic: license-file

enchant-spellcheck
==================

Check UTF-8 text files against an Enchant dictionary.
Unknown words fail the command, while text enclosed in matching backticks is ignored.

Installation
------------

Install `Enchant and a dictionary <https://pyenchant.github.io/pyenchant/install.html>`_, then:

.. code-block:: shell

   uv tool install enchant-spellcheck

Usage
-----

.. code-block:: shell

   enchant-spellcheck document.txt
   enchant-spellcheck --known-words words.txt document.txt other.txt
   enchant-spellcheck --language en_GB document.txt

The accepted-words file contains one word per line and matching is case sensitive.
Diagnostics include the filename, line, column, and misspelled word.
Exit status is 0 for valid text, 1 for misspellings, and 2 for usage or input errors.
Results depend on the installed dictionary.
