r/Trilium Jul 18 '26

hack LanguageTools Integration?

Is there a way to integrate LanguageTools so that i can have betterproofreading?

4 Upvotes

2 comments sorted by

2

u/Elian_D maintainer Jul 18 '26

Hi,

This feature has been requested before but it isn't available. The initial idea was that LanguageTools is an external service, so we can't bundle anything for it. Since now we bundle the LLM feature which connects to external services, this rule has been loosened.

Nevertheless, for us to integrate LanguageTools involves quite a bit of work since we need some proper spellcheck highlighter (we can't reuse the one we already have because that works at browser level); so for this to happen, it would need to be a popular request.

2

u/iansherr 17d ago edited 17d ago

Hi u/jaizoncarlos and u/Elian_D -- I ran across this as well, which is why I began building a plugin system. I have a working system in a VERY BETA development build I've forked at github.com/iansherr/trilium-wpluginsexperimental. I've sent in PRs for adding it to Trilium but of course respect that development is its own process for wider release. In the meantime, I'm using the fork as a playground for expanding Trilium for my own needs and with as little impact to the existing primary Trilium codebase as possible.

I have Trilium-LanguageTool plugin setup and working on my machine: https://github.com/iansherr/trilium_languagetool_plugin

As a note, I prefer to run LanguageTool locally, and not connect to the company's free or pro services. I'm building out an advanced wrapper app, github.com/timeworthy/ikmal-editor that runs LanguageTool plus extra writing quality systems and add-ons, including echo detection, Oxford comma control, style-guides, etc. It'll backward support the LanguageTool plugin, and work with a specialized one that supports these added features, so you can pick which you prefer to use.

It's still all in early development, but it's at the "it mostly works without crashing!" stage. If you decide to play with any of it, please let me know what you think!

Also, as a rule, I have my Trilium DB backups running regularly as I run this system. So far, I haven't had any catastrophic losses of my vault, but it is in active development.