Back to LanguageTool Homepage - Privacy - Imprint

Auto correct the grammar mistakes without human interaction

Hi all, I am using Language Tools in my java code to check for grammar errors in English text. What I want to do is this, after Language Tools identify the errors, I want the program to automatically fix the problems without human assistance. Thanx in advance

On Fr 07.12.2012, 19:16:15 you wrote:

Hi all, I am using Language Tools in my java code to check for grammar
errors in English text. What I want to do is this, after Language Tools
identify the errors, I want the program to automatically fix the
problems without human assistance. Thanx in advance

You can use Tools.correctText() from
http://www.languagetool.org/development/api/org/languagetool/tools/Tools.html

However, not all rules actually offer a correction, and some offer more than
one but only one of them might be correct.

Regards
Daniel

–
http://www.danielnaber.de

Thanx very much Daniel… :slight_smile: