From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Grammar checking in Emacs Date: Sun, 14 Nov 2021 21:46:19 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30691"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Daniel =?windows-1252?Q?Mart=EDn?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 15 03:47:28 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmS1n-0007op-K1 for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Nov 2021 03:47:27 +0100 Original-Received: from localhost ([::1]:59142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmS1m-00033E-94 for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Nov 2021 21:47:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmS0p-0002Gx-Tc for emacs-devel@gnu.org; Sun, 14 Nov 2021 21:46:27 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:33800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmS0m-00024C-EZ for emacs-devel@gnu.org; Sun, 14 Nov 2021 21:46:26 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id BFD9A440AD7; Sun, 14 Nov 2021 21:46:22 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 17A1E440FF2; Sun, 14 Nov 2021 21:46:21 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1636944381; bh=z1jM+z2wSs/IkXeY6jiw7TgHgsQmjUX1uOrSryCOkTE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=WO0O/Xl9PsY+EpqnuvB+e741H9ssCfZHiDOjwHcMaT3PuVSXMNV6qJmuIY8YLL5Y+ PpaPBRligk8Fb7r2oGJu6VkUkb+MyZS1lzARXpToqoH9HQzBNE74bSQRDyVmF85g88 RPeTm/Ec39+Del01Pe5VHAA08D2qGRJvCfcFwDrza+PLPIYrdHR+pWkKSKqZX7mq9b UNbF2tfdpWTHDr+hwOtcx2cqXS41+P0tO+MVYS0MPEruwOglO5r4hU6WgLBOXrIl5A bAhoeMgyz9Opu9jqeXYv/XQwqDQajc+XxOEe6r+cl9/VEiZsBdnMJLrvkrTYDJtJEp qKrigEg7NsTsQ== Original-Received: from ceviche (unknown [45.72.128.33]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D437712049B; Sun, 14 Nov 2021 21:46:20 -0500 (EST) In-Reply-To: ("Daniel =?windows-1252?Q?Mart=EDn?= =?windows-1252?Q?=22's?= message of "Mon, 15 Nov 2021 01:12:44 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:279455 Archived-At: > The question is if those feelings about grammar checking still hold > true. I think one of the most popular free programs to do grammar > checking is LanguageTool (https://languagetool.org). I've quickly > tested it and it detected some non-trivial grammar mistakes, in English > and Spanish at least. I didn't see false positives, which is a good > thing in this kind of tools. You can try the tool from its website > without installing it on your computer. IIUC (after looking at https://github.com/languagetool-org/languagetool) this is structured as a grammar-checking server (written in Java) that can run on a remote host and then client applications connect to it and presumably send their text to it a bit like they'd do with an LSP server, except the clients aren't expected to launch the server. Sadly it's not packaged for Debian (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403619 suggests for the details). I can't see any info about using it on Fedora either. AFAICT the most popular way to install it is as a "snap" package, which I consider to be a euphemism for a blob :-( > Is there interest in having this feature in Emacs? Perhaps as an ELPA > package, if the technology is not mature enough to have it in Core? I think it would be nice to provide a package for such grammar checking, yes. We should be careful not to encourage users to just connect to someone else's LaguageTool server, since that would be SaaSS, but other than that I see no reason not to have such a package in GNU ELPA. I don't expect many users to have such a server, so it's probably not widespread enough to justify having it in core, currently. Stefan