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.

Files for grammar-check, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size grammar_check-1.2-py2-none-any.whl (57.0 MB) File type Wheel Python version py2 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page