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
File details
Details for the file grammar_check-1.3.1-py2-none-any.whl
.
File metadata
- Download URL: grammar_check-1.3.1-py2-none-any.whl
- Upload date:
- Size: 57.0 MB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3714e480b4754360b2a03906d3d8930155551565d8ecd8f6159967a6b9b02cee
|
|
MD5 |
cd0fb881a095f5d05701c65c8a6b9996
|
|
BLAKE2b-256 |
aa59bc6cc5894d695a393942f9c06803748a5fdaff28e9a7b470ebd123c06483
|