Add "Restart" to Languagetool.jar

Is it possible to add “Restart” to the File menu?
This would make my rule testing easier.

That’s not so easy. The better workflow is to prepare the rule with the online editor, then add it to the grammar.xml file locally and finally test them with testrules.sh (Linux) or testrules.bat (Windows).

Thanks but that doesn’t satisfy my purpose:
To see how the rule behaves: the marking, the suggestions, the replacement, etc.

Or perhaps the JAR can be made to reload the grammar rules.

This is all part of the examples in grammar.xml and will be tested when you run testrules.sh/testrules.bat.

I mean I want to see it in action to know how it works from the user’s PoV.

You can create a keyboard combination to restart the jar file on a Windows machine. Simply create a shortcut to the jar on your desktop (right click >> send to desktop), and then open properties from the context menu (right click on the shortcut icon >> properties) to create a shortcut key combo, like ctrl + shift + L. It will speed things up for you.

1 Like