languagetool-org / languagetool

Style and Grammar Checker for 25+ Languages
https://languagetool.org
GNU Lesser General Public License v2.1
12.42k stars 1.39k forks source link

Allow unification in community.languagetool.org #6347

Open milekpl opened 2 years ago

milekpl commented 2 years ago

Right now, developing unification-based rules is made more difficult because the web interface does not support unification (although for many languages unification features are predefined). One cannot also provide definitions of unification features because the online editor assumes that the code in the editor is just one <rule> element.

The fix should be fairly trivial: just add parts of the XML file that include unification features to the normal template of XML rules (which need to be generated from a template anyway to make them valid).

Why is this relevant? Because some unification rules (for disagreement) are likely to cause tons of false alarms in their early versions.

milekpl commented 2 years ago

Not an easy fix (as it seems) because the website seems to use the Lucene index, and some unification code is not easily translatable to Lucene…