Take the 2-minute tour ×

I need to check spells and grammars in texts so I started using LanguageTool API (Can be found here). Now, when I am writing the start-up code provided by them as follows-

JLanguageTool langTool = new JLanguageTool(Language.ENGLISH);
List<RuleMatch> matches = langTool.check("Eat I rice" +
    "every day and go school to good as a boy");
for (RuleMatch match : matches) {
  System.out.println("Potential error at line " +
      match.getEndLine() + ", column " +
      match.getColumn() + ": " + match.getMessage());
  System.out.println("Suggested correction: " +

I don't get any error. Sorry if I am wrong but is the sentence "Eat I rice every day and go school to good as a boy" a correct sentence (grammatically)? If so, or if not, then is there any way to detect such sentences (meaningless and or grammatically incorrect) with the tool?

share|improve this question
I have doubt about the tool's capability of understanding text and judge it is meaningless or not (semantic aspect). –  nhahtdh Oct 22 '12 at 17:22
Go to root of the website (remove /development) and try some sentences. It seems quite useless –  KevinDTimm Oct 22 '12 at 17:25
@nhahtdh, thanks. Any other Java tool to as suggestion? –  Rushdi Shams Oct 22 '12 at 17:25
No, I haven't worked with NLP before. –  nhahtdh Oct 22 '12 at 17:27
add comment


Your Answer



Browse other questions tagged or ask your own question.