AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Writing › language_tool_python
✦ Free & open sourceWriting

language_tool_python

Python wrapper for LanguageTool to detect and fix grammar and style errors.

Python wrapper for LanguageTool grammar checking

Integrate rule-based grammar, style, and spell checking directly into your Python scripts and CLI.

Free forever · open source · GPL-3.0
✓ Light setup✓ Browser-based✓ Real-time collaboration
7.5
ZEKAI
Reliable Python grammar wrapper
Free & open source · Writing
Ease of setup6
Usefulness8
Maintenance9.5
Community6.5
★ 533
GITHUB
Oct 2026
UPDATED
GPL-3.0
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

This tool acts as a bridge between Python applications and the LanguageTool grammar checker engine. It is ideal for developers who need programmatic text analysis without relying on LLM-based AI.

Runs on
Cross-platform
Hosting
Self-host
Languages
Python
License
GPL-3.0

What it is

It lets you check text for errors using a local Java server, the public LanguageTool API, or a custom remote server. You can retrieve detailed error messages, character offsets, and automated correction replacements.

Who it's for

It suits developers building custom text pipelines or automation scripts in Python. It does not suit those looking for an out-of-the-box desktop application or GUI editor plugin.

Key features

Multiple Server Backends

Connect to a local Java server, the public API, or your own remote server.

CLI Integration

Run grammar and spell checks directly from the command line using pipes or files.

Detailed Error Metadata

Access specific error messages, character offsets, and arrays of suggested replacements.

Context Manager Support

Manage local Java server lifecycles cleanly using Python's with-statement context managers.

How to start

Up and running in 3 steps

1
Install the package using pip install --upgrade language_tool_python
2
Ensure you have Java 17 or higher installed if you plan to run a local server
3
Import language_tool_python in your script and instantiate a LanguageTool client
Real talk

Our honest verdict

What's great

  • Supports checking text against local, public, or custom remote LanguageTool servers
  • Includes a command-line interface for pipe-based text processing and file correction
  • Provides structured Python objects containing error offsets and correction suggestions
  • Operates as a non-AI rule-based checker avoiding unpredictable generative outputs

Where it falls short

  • Running a local server requires managing Java runtime dependencies alongside Python
  • Relying on the public API is subject to external rate limits and availability
  • The package requires a specific Python version range from 3.10 up to 3.15
Cost

Pricing & license

The package is free under the GPL-3.0-only licence, and the only other cost is running your own Java server hardware or handling public API usage.

Paid work

Open remote AI-training roles

767 open remote AI-training roles, updated November 14, 2026; most pay $20–$175 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

🎁 Free & open-source alternatives

These reviewed AI tools do the same job instantly — from our scored directory.

Get more

Use it, or have us set it up

📄 Free PDF: language_tool_python for Writing
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure language_tool_python for you — and train your team.
Get it done for you ↗
Questions

FAQ

Does this tool require an internet connection?

Not if you run a local Java server instance, though the public API option does require network access.

Can I automatically apply corrections?

Yes, the tool provides a correct method to automatically substitute suggested fixes into the text.

What Java version is needed for local execution?

You need Java 17 or higher to run the default local LanguageTool server.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Writing — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google