Question about rules
hpapagaj opened this issue · 3 comments
I have set up and running LanguageTool in Docker, it works great.
One thing I am not sure about, I found out that some rules are disabled by default, example. It is somehow possible to enable these rules, or they require premium subscription?
Hi @hpapagaj, your question seems unrelated to the Docker setup so the appropriate place to ask this would be in the official LanguageTool repository or it's forum.
Nevertheless I think the following is what you are looking for. You can enable that specific rule in your HTTP request by setting enabledRules
. You can simulate / try the request as follows:
- Go to https://languagetool.org/http-api/swagger-ui/#!/default/post_check
- Set the following request parameters:
--language
tosk
--enabledRules
toMUZSKY_ROD
(note that you can find this rule identifier on the rule page you referred to) - Press the
Try it out!
button - Inspect the
Response Body
to see if matches are returned related to the given rule.
Can you confirm that your question is not related to the Docker setup so I can close this issue?
I fixed it by login into Docker container as root and edit ./org/languagetools/rules/sk/grammar.xml and here remove default="off" from rules I want to enable.
Thank you for posting your solution!