Conversation
Co-authored-by: sunderme <[email protected]>
Copilot
AI
changed the title
[WIP] can you implement feature request #4134
Add support for additional URL parameters in LanguageTool configuration
Aug 19, 2025
sunderme
reviewed
Aug 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements feature request #4134 by adding the ability to specify custom URL parameters for LanguageTool requests.
Problem
Previously, users could only configure the LanguageTool server URL but had no way to pass additional parameters like
level=pickyfor stricter grammar checking,motherTongue=esfor better suggestions, or custom rule configurations. This limited the ability to take advantage of LanguageTool's advanced features.Solution
This PR adds a new "URL Parameters" field in the LanguageTool configuration section that allows users to specify any additional parameters to be sent with grammar check requests.
Key Changes
languageToolURLParamsfield toGrammarCheckerConfigstructUsage Examples
Users can now enter parameters like:
level=picky- Enable stricter grammar checkingmotherTongue=es&level=picky- Combine multiple parametersdisabledRules=WHITESPACE_RULE,COMMA_RULE- Disable specific rulesenabledRules=CUSTOM_RULE- Enable specific custom rulesTechnical Implementation
The implementation automatically handles parameter formatting:
Before (existing behavior):
After (with parameters):
The feature includes smart parameter handling that automatically adds the "&" prefix if not present, ensuring proper URL parameter formatting regardless of how users enter the parameters.
Backward Compatibility
This enhancement enables users to fully customize their LanguageTool experience while maintaining the simplicity of the existing configuration interface.
Fixes #4134
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.