PillFall / languagetool.el

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

[Feature] Add support for personal dictionary? #24

Open edgar-vincent opened 3 months ago

edgar-vincent commented 3 months ago

Hi!

Thanks a lot for this lovely package.

I've been trying to find a way to add words to a personal dictionary in Languagetool, but I'm not very familiar with it and haven't had much success. I use a local server running as a system service, and I see that the API supports such a feature, but it requires the user to be authenticated - presumably for the SaaS version of the server?

Currently, ignored words are added on a per-file basis, in the file itself as a comment. I would like to be able not to modify the files themselves and have words ignored for one or all languages, all the time.

Do you have an idea of how this could be done? I'd gladly help with the elisp, but I don't know where to start.

Thanks again,

EV

PillFall commented 3 months ago

Hi @edgar-vincent,

Right now, the only way to use the online personal dictionary is buying a Proofreading API access from LT Premium.

https://languagetool.org/proofreading-api

One way we could achieve what you want is storing the ignored words in a custom variable in your .emacs or any file it loads.

I made the system ispell compatible, that's why the dict is on a comment. See #13.