I am using LanguageTool standalone 6.4 for Windows. I would like to get rid of the sample sentence that gets inserted on line 1 on startup, for all languages. For instance for English it states “This is a example input to to show you how LanguageTool works.”
I can’t find a toggle for it in the options … even though there really should be one.
You can start LT with a file like this (on the command line): java -jar languagetool.jar c:/empty.txt - you’ll get whatever is in empty.txt, which can also be empty.
Hello Daniel, thank you for the thread approval and for the fast reply.
I launch Languagetool through a windows shortcut to languagetool.jar. Therefore, passing arguments to it would have to be done in the Target field of the shortcut. What would be the syntax for pointing to a text file to open ? I can’t seem to find any documentation on this.
Alternatively, is there a way to actually actually get rid of these sample sentences ? I suppose they are part of language definitions, and could simply be edited out once and for all.
I don’t know enough about Windows, but your favorite AI chatbot might help with that. You could also unzip the languagetool.jar, search for the text string, modify it, and re-zip the file.
Unfortunately, a search within an uncompressed Languagetool.jar or within the Languagetool-6.4 folder itself returns no hit for “This is a example input to to show you”.
Assuming that these sample sentences are within the language definitions files, where are these files located ?
I now see it’s actually in libs/languagetool-core.jar, once uncompressed in org/languagetool/MessagesBundle_en.properties and org/languagetool/MessagesBundle.properties (for English).
Hello there again ! Indeed and I was initially looking for such a file next to the English ones, but it is actually somewhere else : LanguageTool-6.4\org\languagetool\MessagesBundle_fr.properties
And that fixes it ! Perfect, no more (somewhat) useless sample sentences anymore. Thank you for the help and suggestions
(FWIW and for future reference, Agent Ransack seems to be able to search for strings within .jar files)