Metadata-Version: 2.0
Name: grammar-check
Version: 1.3
Summary: Checks grammar using LanguageTool.
Home-page: https://github.com/viraja1/grammar-check
Author: Viraj
Author-email: UNKNOWN
License: UNKNOWN
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3

grammar-check
==============

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+ <https://www.python.org>`_ (or 2.7)
- `lib3to2 <https://bitbucket.org/amentajo/lib3to2>`_
  (if installing for Python 2)
- `LanguageTool <https://www.languagetool.org>`_ (Java 6.0+)

