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

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

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for grammar_check-1.3.1-py2-none-any.whl
Algorithm Hash digest
SHA256 3714e480b4754360b2a03906d3d8930155551565d8ecd8f6159967a6b9b02cee
MD5 cd0fb881a095f5d05701c65c8a6b9996
BLAKE2b-256 aa59bc6cc5894d695a393942f9c06803748a5fdaff28e9a7b470ebd123c06483

See more details on using hashes here.

Supported by

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