Skip to main content

Python wrapper for LanguageTool.

This is a fork of https://github.com/myint/language-check

Example usage

>From the interpreter:

>>> import grammar_check
>>> tool = grammar_check.LanguageTool('en-GB')
>>> text = 'This are bad.'
>>> matches = tool.check(text)
>>> len(matches)
1

Automatically apply suggestions to the text:

>>> grammar_check.correct(text, matches)
'These are bad'

>From the command line:

$ echo 'This are bad.' > example.txt

$ grammar-check example.txt
example.txt:1:1: THIS_NNS[3]: Did you mean 'these'?

Installation

To install via pip:

$ pip install --user --upgrade grammar-check

Prerequisites

Release files for grammar-check 1.3.1

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

Built distribution (wheel)

Table of built distributions (wheels) for grammar-check 1.3.1
File Interpreter ABI Platform
grammar_check-1.3.1-py2-none-any.whl Python 2 none any Details

Release files / grammar_check-1.3.1-py2-none-any.whl

Download URL grammar_check-1.3.1-py2-none-any.whl
Size 57.0 MB
Tags Python 2
SHA-256 checksum
How to use checksums
3714e480b4754360b2a03906d3d8930155551565d8ecd8f6159967a6b9b02cee
BLAKE2b-256 checksum
How to use checksums
aa59bc6cc5894d695a393942f9c06803748a5fdaff28e9a7b470ebd123c06483
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.3.1 This release

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.7.2

1 release file

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