Bug 422444 - Support for LanguageTool
Summary: Support for LanguageTool
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: Git
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-04 10:03 UTC by Erik Quaeghebeur
Modified: 2025-07-26 15:15 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:
4wy78uwh: performance-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2020-06-04 10:03:25 UTC
LanguageTool is a very nice open-source spelling and grammar checker <https://www.languagetool.org/>. It supports both on-line (text sent to their server) and off-line (sent to local installation) functioning <https://www.languagetool.org/compare>.
(I prefer not sending my text to a server, but I do not know how hard it is to support either.)

It would be nice to be able to use it from Kate (and therefore from Kwrite, Kile, etc.)

Bug 410068 prompted (on-line) LanguageTool support to be added to Lokalize.
Comment 1 Christoph Cullmann 2023-08-03 20:09:50 UTC
I don't see us supporting that. Sending text to some online service is not what we want and running that locally as server is out of scope for us.
Comment 2 Ilya Bizyaev 2023-08-04 11:35:08 UTC
Think of it as LSP for text: it's the same kind of service running locally and within Kate's scope.
Comment 3 Christoph Cullmann 2023-08-04 12:18:12 UTC
Then they can create a LSP server variant if they care, but for me that more looks like they focus on get your data or sell accounts. If they provide an LSP server it will work out of the box.
Comment 4 Ilya Bizyaev 2023-08-04 16:03:12 UTC
How would they get your data or sell accounts if you're running a server locally?

LanguageTool is a rather respected open source project, it's been around for years, so I don't understand your attitude towards it. This VSCode integration for it alone has over 200000 installs: https://marketplace.visualstudio.com/items?itemName=adamvoss.vscode-languagetool.

Of KDE projects, Lokalize provides LanguageTool integration.
Comment 5 Roke Julian Lockhart Beedell 2023-08-06 14:51:16 UTC
(In reply to Christoph Cullmann from comment #1)
> I don't see us supporting that. Sending text to some online service is not
> what we want and running that locally as server is out of scope for us.

What? That's like saying that NeoChat supporting Matrix would entail data to being sent online, whereas it's well-known that it's not whatsoever impossible to host a server locally.
Comment 6 Hannes H 2023-09-14 18:14:36 UTC
I would very much like to see this, as well. I have been running a local LanguageTool server for ages (just like I run LSP locally). There are plugins for Firefox, Thunderbird, LibreOffice, TexStudio... this is really a normal part of the ecosystem. Why would KDE be opposed to this?
Comment 7 Roke Julian Lockhart Beedell 2023-09-22 17:27:24 UTC
(In reply to Hannes H from comment #6)
> I would very much like to see this, as well. I have been running a local
> LanguageTool server for ages (just like I run LSP locally). There are
> plugins for Firefox, Thunderbird, LibreOffice, TexStudio... this is really a
> normal part of the ecosystem. Why would KDE be opposed to this?

bugzilla@soulrebel.in-berlin.de, read https://discuss.kde.org/t/is-network-connectivity-for-any-purpose-in-kate-problematic/5352/2?u=rokejulianlockhart. I'm not sure even what to say, honestly. Some of the responses seem like the kind of stuff I'd hear on Alex Jones' podcasts.
Comment 8 Ilya Bizyaev 2023-09-22 18:12:54 UTC
Don't tell them that KMail supports LanguageTool, or they'll freak out :)
https://docs.kde.org/stable5/en/kmail/kmail2/configure-plugins.html
Comment 9 Ilya Bizyaev 2023-12-02 19:38:58 UTC
Apparently, the implementation is already in KTextAddons, so Kate doesn't have to invent much here:
https://invent.kde.org/libraries/ktextaddons/-/tree/master/textgrammarcheck/languagetool
Comment 10 Matija Šuklje 2024-01-13 07:10:28 UTC
In addition, you can host LanguageTool on your own server (it’s FOSS!) or even locally on your PC/laptop.
Comment 11 Waqar Ahmed 2024-07-19 07:22:22 UTC
Quick google search and I found a few grammar lsps:

- https://github.com/valentjn/ltex-ls (Language Tool)
- https://github.com/emacs-grammarly/grammarly-language-server (Grammarly)
Comment 12 Roke Julian Lockhart Beedell 2024-07-19 13:42:18 UTC
(In reply to Waqar Ahmed from comment #11)
Grammarly is proprietary, and there's no guarantee that its API shall remain accessible. Much less for free. I'm not sure there would be much point adding Grammarly support too, when LT is, in my experience, equally as effective.
Comment 13 Mª Jesús M. G. 2025-04-12 20:19:18 UTC
Any progress with this in these five years?
KDE's autocorrect is a real PITA. Being able to use something decent -even AOSP's works better- would be a huge usability leap that would bring KDE a little closer to finally being a usable product for real office productivity.
Comment 14 Roke Julian Lockhart Beedell 2025-04-12 20:52:31 UTC
(In reply to Mª Jesús M. G. from comment #13)  
Considering you mention AOSP, I'll take this opportunity to ask why this issue is scoped to Kate, rather than the DE generally. Like in AOSP, where a keyboard can supplement or override the OS spell checker, Kate can certainly improve upon the default in Plasma, but why not have the default spell checker integrate with LT, rather than have specifically the Kate KPart reinvent the wheel?
Comment 15 Mª Jesús M. G. 2025-04-12 23:55:54 UTC
(In reply to Roke Julian Lockhart Beedell from comment #14)

You're absolutely right.
I can't speak for the reasons of the user who opened this bug report, but in my case, I responded to this report for not opening a new one, because it seemed to me that a new report would only increase the amount of work that the adminsitrators of this site have to do to eliminate duplicates and not disperse their little time and labour. But I completely agree with you: an effective and "intelligent" corrector -causes stupor to see how Hunspell, I think, is unable to recognize, for example, that the user has pressed the space bar on the wrong sites and «Hell, or how arey ou?» is «Hello, how are you?» instead of "correcting" every loose word to end up creating a dadaist phrase with no sense- is a huge advantage for the entire desktop which would benefit Kate but also Kmail, Kalendar, Marknote, etc.
My mention of the AOSP standard corrector is because being open source and operating on the local machine, it perhaps might inspire KDE developers if LanguageTool does not convince them.
I repeat that I fully endorse your arguments: KDE Plasma should have a powerful and competent spell and grammar checker desktop wide.

BTW, this text has been translated into english by LibreTranslate, and my english is quite scarce to correct the likely errors with solvency, so if something is not understood very well, i apologize to all those who could read it.
Comment 16 Roke Julian Lockhart Beedell 2025-04-15 13:43:41 UTC
(In reply to Mª Jesús M. G. from comment #15)  
Thank you. :) If this goes nowhere, I'll consider whether and how to request this DE-wide.
Comment 17 TraceyC 2025-07-25 16:00:23 UTC
This was brought up on Matrix. Since there's active interest in this, and KMail has implemented it, I think it's worth considering.
Comment 18 Christoph Cullmann 2025-07-26 15:15:29 UTC
I assume this lib https://invent.kde.org/libraries/ktextaddons provides the needed parts for KMail.

If somebody writes a plugin using that, that for sure is welcome.