For the language tool

dears,

Are all the rules for a language in xml format file ? How can I parse the xml file and how to use the xms? what is the tool’s accuracy? thank you very much !

On Sa 06.04.2013, 18:38:55 you wrote:

Hi,

Are all the rules for a language in xml format file ?

no, there’s a file .java (e.g. English.java) for each language
with a method getRelevantRules() that returns all the Java-based rules for
that language.

How can I
parse the xml file and how to use the xms?

What exactly are you trying to do? There’s a class PatternRuleLoader that
will load the rules.

Description of the rule syntax is at
http://www.languagetool.org/development/
and, formally, at

what is the tool’s accuracy

That depends on the language. Also, we’d need an error corpus against
which we can measure and we don’t have that for most languages.

Regards
Daniel


http://www.danielnaber.de

the rules in language tool is not very comprehensive for us. We want to evaluate the quality of Spanish products information on Alibaba’s webpage to see whether they are good enough, so we need the grammar-rule && spelling checker database, how can we do to obtain it? How much if they can be purchased ? Thank you very much !

On So 07.04.2013, 20:47:56 you wrote:

to see whether they are good enough, so we need the grammar-rule &&
spelling checker database, how can we do to obtain it?

The Spanish style and grammar rules are in es/grammar.xml (in the *.zip file
you can download at www.languagetool.org). The spelling list is in
es_ES.dic.

Regards
Daniel


http://www.danielnaber.de