Skip to content

viraja1/grammar-check

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published