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
Python 3.2+ (or 2.7)
lib3to2 (if installing for Python 2)
LanguageTool (Java 6.0+)
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
Close
Hashes for grammar_check-1.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a27933a67064a3c3b305f7a171ce492ad85140702c7ab830f47cf3649a4de6fc |
|
MD5 | a23d20542ded1ae1ba2c41c10d8ce773 |
|
BLAKE2b-256 | 26cfade6ef2b26448afe5437a60dfd7a77dbf417492b49f2d65cff3b8ac0ef21 |