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-0.7.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79d4d17224c73bc2fd520cf3e4de1d1e7b7f474fccdae448c49fb3e66b10293a |
|
MD5 | c6fe293bb0d484f62b0c71f4c8a4cb74 |
|
BLAKE2b-256 | fe7f7f136f08507a632edd19036c9030be4ffd8adde2d19f475696fa64dfb74c |