Back to LanguageTool Homepage - Privacy - Imprint

Minimum set of files to use LanguageTool?


(BrianR) #1

Hi,

I'm looking at integrating LanguageTool 1.8 into a Java application that I work on for handling emails.

I already have a spell checker, I'm looking at only using LanguageTool for grammar checking. Would it be possible to somehow integrate our current spellchecker with LanguageTool?

What is the minimum set of files that I would need to include to use LanguageTool from within the Java application?

Thanks.


(Daniel Naber) #2

Am Mi 12.09.2012, 14:20:32 schrieben Sie:

I already have a spell checker, I'm looking at only using LanguageTool
for grammar checking. Would it be possible to somehow integrate our
current spellchecker with LanguageTool?

You can disable the spell checker rule on LT side with the disableRule()
call. For example, call languageTool.disableRule("MORFOLOGIK_RULE_EN_US")
to disable the American English spell checker.

http://www.languagetool.org/development/api/org/languagetool/JLanguageTool.html#disableRule%28java.lang.String%29

What is the minimum set of files that I would need to include to use
LanguageTool from within the Java application?

You can remove the sub directories from "rules" and "resources" for those
languages you don't need, plus the "hunspell" sub directory which is only
needed for spell checking.

We're currently working on a Maven artifact to make integration easier.
That will not contain the minimal set of files though (at least not in the
first step).

Regards
Daniel

--
http://www.danielnaber.de