-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up a local LanguageTool server for Windows
Markus Hastreiter edited this page Nov 27, 2018
·
1 revision
If YouShouldSpellcheck.Analyzer should use LanguageTool for the analysis, it should always be executed against a local installation of the LanguageTool server, so that traffic on https://languagetool.org is avoided!
LanguageTool gives a quick overview how it can be run as an HTTP server. But ideally, it should run as a service, so that it doesn't need a logged-on user and is automatically started after a restart of the machine.
To run LanguageTool as a Windows Service, winsw: Windows service wrapper can be used. It's README.md provides a nice and short Usage section. The XML configuration file could look something like this (it's just a suggestion of course):
<!--
<configuration>
<!-- ID of the service. It should be unique accross the Windows system-->
<id>languagetool</id>
<!-- Display name of the service -->
<name>LanguageTool (powered by WinSW)</name>
<!-- Service description -->
<description>Local LanguageTool proofreading service</description>
<!-- Path to the executable, which should be started -->
<executable>C:\tools\LanguageTool-4.1\run.bat</executable>
<!--
OPTION: serviceaccount
Defines account, under which the service should run.
-->
<serviceaccount>
<domain>domainname</domain>
<user>username</user>
<password>secretpassword</password>
<allowservicelogon>true</allowservicelogon>
</serviceaccount>
</configuration>