Hi,

I've added new options to the command-line LT so users can turn on/off 
categories (--enablecategories, --disablecategories). For this, I've 
introduced an 'id' attribute to <category>s, just like for <rule>s. If 
you maintain a language, please add id="..." to all categories, e.g. 
like this:

   <category id="MISC" name="Sonstiges">

There's no static set of categories, but I still suggest you try to use 
these and only come up with your own in case these don't cover your 
categories: 
https://github.com/languagetool-org/languagetool/blob/master/languagetool-core/src/main/java/org/languagetool/rules/CategoryIds.java#L27-L44

I suggest we use all uppercase names and no special characters, just 
like for the rule ids. Currently, these ids are optional, but I'd like 
to make them non-optional to avoid confusion. Also, please add category 
ids for your Java rules. The code in the constructor changes like this:

super.setCategory(new Category(messages.getString("category_grammar")));
=>
super.setCategory(new Category(Categories.MISC, 
messages.getString("category_grammar")));

Regards
  Daniel



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to