Hi, currently, the LT rules written in XML are language-specific. Is there any reason for this limitation? There are some rules that could be used for all languages, e.g. misspellings of names, like "Linux Torvalds".
Here's an idea how we could implement that: -Create a new Maven project languagetool-language-modules/global that has a grammar.xml file where the language-independent rules are stored. Rules could look like this: <rule ...> <pattern> <token>Linux</token> <token>Torvalds</token> </pattern> <message>i18n:misspelled_name</message> <suggestion>Linus Torvalds</suggestion> ... </rule> 'misspelled_name' is a key in the existing translation file, so that the message can be translated at Transifex. Maybe if there's no translation, the rule shouldn't become active? -Change the dependencies so that every language depends on this new module -Adapt the Java code to load the rules from the new file, additionally to the existing rules Any ideas or comments? Regards Daniel ------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel