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.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 603c030139cdbf4f21d3aa76405a28860053092bfc98591698c0a9c101861edc |
|
MD5 | a8a266367613925f98e9fe01dddf4bfa |
|
BLAKE2b-256 | 81b32657dd698efe549724c905bf8f7f0056a213ab10d2a7e85499506522fd17 |