Q:

How to quickly check and count English grammar errors in Python?

I'm looking for a fast way to count grammar errors in Python. For example, I need something along these lines:
matches = grammar_checker.check('You is awesome!')
assert len(matches) == 1

Speed is much more an issue than accuracy. I could live with a few false positives or negatives as a trade-off for fast checks. I am talking here about problem sizes on the order of 100k documents (with roughly 5-10k characters) in only a few minutes. 
I came across LanguageTool  in Java and its Python wrapper language_check. However, these are unfortunately too slow for my purposes. Any other suggestions or ideas? Thanks!

A:

You should look How to check whether a sentence is correct (simple grammar check in Python)?
Also, you should use "grammar-check 1.3.1" module and works fast.
For more information, check out https://pypi.python.org/pypi/grammar-check/1.3.1
import grammar_check
tool = grammar_check.LanguageTool('en-GB')
text = 'This are bad.'
matches = tool.check(text)
len(matches)
>>>1

grammar_check.correct(text, matches)
>>>'These are bad'

