Metadata-Version: 2.4
Name: lingotweaker
Version: 0.1.0a1
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Text Processing :: Linguistic
Summary: Proofreading engine for many languages: Rust core with Python bindings
Keywords: proofreading,grammar,spellcheck,nlp,language
License: LGPL-2.1-or-later
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/fiduswriter/LingoTweaker/releases
Project-URL: Homepage, https://fiduswriter.github.io/LingoTweaker/
Project-URL: Repository, https://github.com/fiduswriter/LingoTweaker

# LingoTweaker (Python)

Python bindings for the LingoTweaker proofreading engine (Rust core, PyO3).
The extension module is imported as `lt_py`; the distribution is named
`lingotweaker`.

```python
import lt_py

engine = lt_py.Engine("en-US")
for match in engine.check("I can heard you."):
    print(match["rule_id"], match["suggestions"])
```

This wheel ships **code only**. The engine loads its language data from a data
directory at runtime:

- set the `LT_DATA_DIR` environment variable to the directory that holds the
  vendored `data/` tree, or
- point `Engine` at it explicitly if the binding exposes a data-dir option.

Without data the engine cannot build a pipeline; see the repository README for
how the data tree is produced.

LingoTweaker is an independent project and includes a port of the legacy
LanguageTool proofreading engine and its rule data. Upstream references and
licenses are kept; see `THIRD_PARTY_NOTICES.md` in the repository.

License: LGPL-2.1-or-later.
