Skip to main content

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.

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. Language data is installed separately, one PyPI distribution per language:

pip install lingotweaker lingotweaker-data-en

lt_py then finds the data automatically for a matching language:

import lt_py

engine = lt_py.Engine("en-US")

Each lingotweaker-data-<lang> package exposes its directory as lingotweaker_data_<lang>.data_dir() if you prefer to pass it explicitly (lt_py.Engine(..., data_dir=data_dir())) or to set LT_DATA_DIR (which also accepts a single .pack/.pack.gz file). Per-language packs and archives are attached to each GitHub Release as well. See the repository README and data/README.md 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.

Release files for lingotweaker 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lingotweaker 0.2.0
File Size Uploaded
lingotweaker-0.2.0.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for lingotweaker 0.2.0
File Interpreter ABI Platform
lingotweaker-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details

Total release size: 7.1 MB

Release files / lingotweaker-0.2.0.tar.gz

Download URL lingotweaker-0.2.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
3a3fd9ad306073b5c63137c916847835d73285847a542208495e5a4209e198a0
BLAKE2b-256 checksum
How to use checksums
ffbc84fff68abf13b9990c8ac4740372ebadd3bda214853c039503b4418dfb5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / lingotweaker-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL lingotweaker-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 5.6 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
d6bb248d2fca00bb32abe31992e3b99e76c8238fb9cfc10f2a9a2e8dfb2d9131
BLAKE2b-256 checksum
How to use checksums
720b5f72a15a9dcfa7ba6c3f737132ea65f02b2e8919d102b80ba026d3e78c32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page