From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Grammar checking Date: Fri, 31 Mar 2023 12:55:45 +0000 Message-ID: <87y1nd9j1q.fsf@localhost> References: <87355lqs4v.fsf@gmail.com> <838rfd2mmf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37013"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Payas Relekar , gregory@heytings.org, rms@gnu.org, m.eliachevitch@posteo.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 31 14:54:45 2023 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 1piEHE-0009Mr-Gm for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Mar 2023 14:54:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piEGT-00015g-Pw; Fri, 31 Mar 2023 08:53:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piEGS-00015H-M4 for emacs-devel@gnu.org; Fri, 31 Mar 2023 08:53:56 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piEGQ-0006RF-Ag for emacs-devel@gnu.org; Fri, 31 Mar 2023 08:53:56 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 374E024027A for ; Fri, 31 Mar 2023 14:53:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1680267231; bh=J6GEDTb8Azhw9uWXj+fiaJARIRO0M/QjXeKXeWWWA7I=; h=From:To:Cc:Subject:Date:From; b=ZET4863rmrkH/1TORlOm7aqH9SGSbmL+RpGJQk03tRVlOi4niFPSDoUmHdI9UqNrU 5bZsuW7NRdx40VfAwaeers7Dbm0fnbNwSi7id4jI95mZuemG17DUTHaMmZdObC7W02 CK3ksb281fMiMFdu5+6ErykUem2NtL3ujXcSoWO5A2TayybEZ9VhtAWLoEBCS5dbhG 7ePxjOZjcAOcjGRni/7ykAzdmCS87sYiHW6y2VAciD92kRhGzB6+FAmxFOrMVk48ki 2A/QMcIUuuEzhXOaFMIGmbASbuyFSs5EHk7rz2ZjlkmEkgJH6mcmi2IfVAALJUBrzj /BAB/FsdyztPw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pp0bH2DS5z9rxK; Fri, 31 Mar 2023 14:53:46 +0200 (CEST) In-Reply-To: <838rfd2mmf.fsf@gnu.org> Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304916 Archived-At: Eli Zaretskii writes: >> There is this: https://github.com/mhayashi1120/Emacs-langtool >> Demo: https://www.youtube.com/watch?v=QcFOqkLm00o > > Is the tool any good in practical use (as opposed to marketing-like > presentations)? Did someone try to use it in real use cases, like > when writing significant amounts of prose, and if so, could those who > did try that please share their experience and impressions? I am using it in real-life scenarios for authoring. LanguageTool the most sophisticated Libre grammar checker around, AFAIK. It is not ideal and certainly miss various mistakes in comparison with proprietary tools like Grammarly, but still much, much better than ispell and other Libre grammar/style checkers I tried. > We need in Emacs a free grammar checker that really is up to the job, > not just any free program. The result should be Emacs features that > we can be proud of. I am not 100% sure if LanguageTool is going to be useful universally. While it is quite good and even allow extending itself with neural network models, the performance is not great - even for smaller texts it is taking a lot of CPU and requires 5-15s of seconds to check the amount of text constituting my emails (mostly due to slow loading time though). For larger texts, time scales up to 10s of seconds - minutes. I usually use it similar to M-x ispell-buffer - for checking the complete write-ups. Also, extending LanguageTool may not be easy, unless using development version. It has some strange design decisions - users cannot easily supply custom local rules, AFAIK. (Or my google fu is not good enough) That said, I had some success feeding buffer text to LanguageTool asynchronously - paragraph by paragraph. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at