Skip to main content

Checks grammar using LanguageTool.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grammar_check-1.3-py2-none-any.whl (57.0 MB view details)

Uploaded Python 2

File details

Details for the file grammar_check-1.3-py2-none-any.whl.

File metadata

File hashes

Hashes for grammar_check-1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 a27933a67064a3c3b305f7a171ce492ad85140702c7ab830f47cf3649a4de6fc
MD5 a23d20542ded1ae1ba2c41c10d8ce773
BLAKE2b-256 26cfade6ef2b26448afe5437a60dfd7a77dbf417492b49f2d65cff3b8ac0ef21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page