LanguageTool

LanguageTool is an open-source grammar tool, also known as the spellchecker for OpenOffice. This library allows you to detect grammar errors and spelling mistakes through a Python script or through a command-line interface. We will work with the language_tool_pyton python package which can be installed with the pip install language-tool-python command. By default, language_tool_python will download a LanguageTool server .jar and run that in the background to detect grammar errors locally. However, LanguageTool also offers a Public HTTP Proofreading API that is supported as well but there is a restriction in the number of calls.

LanguageTool in Python

We will provide a practical example of how you can detect your grammar mistakes and also correct them. We will work with the following text:

“ _LanguageTool offers spell and grammar checking. Just paste your text here and click the ‘Check Text’ button. Click the colored phrases for details on potential errors. __or __use this text too see an few of of the problems that LanguageTool can detecd. What do you __thinks __of grammar checkers? Please __not __that they are not perfect. Style issues get a blue marker: It’s 5 __P.M. in the afternoon. __The weather was nice on _Thursday, 27 June 2017 “.

#languagetool #python #spelling #grammar-checker #nlp

LanguageTool: Grammar and Spell Checker in Python
12.25 GEEK