PillFall / languagetool.el

LanguageTool suggestions integrated within Emacs
GNU General Public License v3.0
98 stars 8 forks source link

[question] using languagetool.org #25

Open mms-pl opened 1 month ago

mms-pl commented 1 month ago

hey

Is it possible to use this package with languagetool.org, without any local instance? I don't want to run in server-mode, as my files are rather large, so I just check region.

Michal

PillFall commented 1 month ago

Hi @mms-zen,

It is possible to use this package with any LanguageTool server (at least those with v2 API, probably need to fix that in the future). As I mention in the Read Me file:

If you are going to use a server with another configuration, like servers not located in your localhost, you must set languagetool-server-host and languagetool-server-port to whatever adjust your needs. These variables play in the communication to the LanguageTool HTTP API.

In this case, you should use a config like

(setq languagetool-server-host "https://api.languagetool.org"
      languagetool-server-port 443)

languagetool-server-mode do NOT start any server, but check if it can connect to a server given by those two variables.

See #5 and #11