Hello
I am working on integrating LanguageTool into a small writing application and want to add a few domain-specific grammar rules.
Using the HTTP API works fine for standard checks but I couldn’t figure out how to extend it with my own grammar or style rules. ![]()
The documentation mentions XML-based rules and Java-based development but I am not sure how these custom rules can be exposed when using the HTTP server mode. ![]()
Is there a way to load or register new rules directly with the HTTP API setup, or do I need to modify and build LanguageTool from source in Java every time I want to add a custom grammar rule? ![]()
Ideally; I would like a workflow where I can keep the server running & just add new rules dynamically without restarting or recompiling the whole tool.
Checked LanguageTool API documentation guide related to this and found it quite informative. I also saw an example where someone connected LanguageTool with a ChatGPT Agent to enhance text suggestions; which made me wonder if a similar approach could be used for injecting custom grammar rules via the API. ![]()
If anyone has experience with this; I would really appreciate some guidance. A clear example of how to create a custom grammar rule & make it available through the HTTP API would be very useful for developers like me who want to extend LanguageTool for specialized use cases. ![]()
Thank you !! ![]()