Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to disable categories from server query #326

Closed

Conversation

howlinghuffy
Copy link

This change allows you to use the "disabledCategories" parameter when quering the languagetool server to disable entire categories of rules for the check.

@danielnaber
Copy link
Member

Thanks, could you maybe also write a test case for this?

@howlinghuffy
Copy link
Author

For sure, I will do that.

Also, my modifications currently only apply for regular server checks, not for checks in the bitext mode. Should the command work for the bitext too?

I haven't implemented it as yet, as it would involve tinkering with some of the languagetool-core components rather than just the languagetool-server code.

@danielnaber
Copy link
Member

I must say I'm not familiar enough with the bitext mode. If turning off rules also works for bitext mode, I'd guess turning off categories should work as well?

@danielnaber
Copy link
Member

Implemented, including an enabledCategories parameter (useful with enabledOnly=yes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants