>>> import language_tool_python
>>> tool = language_tool_python.LanguageTool('en-US')
>>> text = 'A sentence with a error in the Hitchhiker’s Guide tot he Galaxy'
>>> matches = tool.check(text)
>>> len(matches)
...
>>> tool.close() # Call `close()` to shut off the server when you're done.
リンク
https://github.com/jxmorris12/language_tool_python
使い方例