On 2016-04-13 12:48, Mike Unwalla wrote: > The Java code style is to indent by 2 spaces > (http://wiki.languagetool.org/code-style). I did not find a style for > XML grammar rules. For some languages, the grammar rules use an indent > of 4 spaces, some use 2 spaces, some use tabs, and some have a > combination of these. Is there a preferred indentation? For EN, should > I continue to indent by 4 spaces?
There's no standard, so you can continue with what is there. The only rule is that indentation should be consistent per file (which isn't always the case). If you make it consistent, please use a "cleanup" commit that only does the cleanup and no other changes. > What are the naming conventions for grammar rules? Names: consistent with what we already have IDs: All-uppercase, unique per language, no special characters, underscore instead of spaces. Ids should not change unless the rule changes a lot, as they are used in configuration files. > As you can see from the commented examples, the rule will always > either give false warnings or will not find errors. For practical > purposes, how accurate must a rule be? It's your task as a maintainer to find a compromise. If you manage to find a proper definition that's great, I think it's almost impossible as any definition would always refer to a corpus. But texts and errors by native speakers are totally different from those of language learners, novels are different from technical texts etc, so it's unclear what the corpus should contain. General direction seems to be that false alarms are annoying users, so they should be avoided. > Suggestion: put the answers on 'Tasks For Language Maintainers > (http://wiki.languagetool.org/tasks-for-language-maintainers)'. (I can > do that when I know what the answers are.) I think these topics are quite advanced, they probably fit better at http://wiki.languagetool.org/development-overview Regards Daniel ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel