From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uClGMmychWCWOQEAgWs5BA (envelope-from ) for ; Sun, 25 Apr 2021 18:44:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4KDTLWychWAxIQAAbx9fmQ (envelope-from ) for ; Sun, 25 Apr 2021 16:44:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4AB6621C3E for ; Sun, 25 Apr 2021 18:44:28 +0200 (CEST) Received: from localhost ([::1]:37458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lahrv-0005je-3l for larch@yhetil.org; Sun, 25 Apr 2021 12:44:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lahrW-0005j9-NH for bug-guix@gnu.org; Sun, 25 Apr 2021 12:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lahrW-00043j-Gb for bug-guix@gnu.org; Sun, 25 Apr 2021 12:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lahrW-0007Xl-Ex for bug-guix@gnu.org; Sun, 25 Apr 2021 12:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44675: guix lint: support for spellchecker or basic grammar Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Apr 2021 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44675 X-GNU-PR-Package: guix X-GNU-PR-Keywords: easy To: Efraim Flashner Received: via spool by 44675-submit@debbugs.gnu.org id=B44675.161936901228951 (code B ref 44675); Sun, 25 Apr 2021 16:44:02 +0000 Received: (at 44675) by debbugs.gnu.org; 25 Apr 2021 16:43:32 +0000 Received: from localhost ([127.0.0.1]:43606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lahr2-0007Wt-8H for submit@debbugs.gnu.org; Sun, 25 Apr 2021 12:43:32 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:53042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lahr0-0007Wf-1u for 44675@debbugs.gnu.org; Sun, 25 Apr 2021 12:43:30 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 43D1C1AF0F; Sun, 25 Apr 2021 09:43:23 -0700 (PDT) From: Vagrant Cascadian In-Reply-To: References: <87ima6rrri.fsf@yucca> <87tunznsi7.fsf@yucca> Date: Sun, 25 Apr 2021 09:43:17 -0700 Message-ID: <87eeeynwm2.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 44675@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619369068; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=yqd0bziaHmSw3NpNpH9qbbvDwGMwMkbKIRpEwJwpFxk=; b=PJ5UUa35uOpRbHSPeTDxQ0JyLrxZP1P1JkjjM5eKti6jDy5myDr7oWp83dXW30ahLQjVt8 3Eaxa9S8PuiuWdYRIOG6jVekRc7q/71hsrPsWXCHS9GVcG0XuFULA+fnaa3R4eLcLgXHsB Kx98LXJfVEClPYr3VVmB280tA6ePr29JyAc8phuOQU4BK6yqoePI0SHuHBue1T8wGFYHiy CtOwv06uYGy0S72sRCvPU8fR2C0zXztVGYYiVa1ldwItjYazR6Hu1N8wTEtgYZM5+U6xKO wD+VWuAaj1NHChJI+ARTXWxLDk8lXkqNuOLUpDW4og/cSkVVQQ2Xb4mhWaancQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619369068; a=rsa-sha256; cv=none; b=YDzp/mVm2SOT+K9gX8zxpntpJFpSeYUJrN6+OYwVTpfp+Yodc1bLz5rKkH8yiRHlxebLwB MffSA5RcsW8BkaaveMZgtTFaNnNeuj7E521Ub1nhQPzoav7zgVqdR1AGAt+E9LGccxxdp7 u0wsKNnTO9auL9icUBffUg9Tot8YoN893/OsdBwfc8jvcJC4N1+md/zoulQzGdnqlLMLnz sfhlo4bE6KZFVYD40/uxhFMFdScT/qSXHFFFZDAGW4kzuPEX+BA8ufkYfZEZxHKMpaLuyT C4dv84OYZA6Ny66p2XOwJem9KrcnPOUL9dQnSUJ8iCr+y6BnmUebKxqRRnE8pQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.55 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 4AB6621C3E X-Spam-Score: -1.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7lcCrR9Al1QR --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2021-04-25, Efraim Flashner wrote: > On Wed, Apr 21, 2021 at 04:10:40PM -0700, Vagrant Cascadian wrote: >> Control: tags 44675 +patch >>=20 >> On 2020-11-15, Vagrant Cascadian wrote: >> > Please consider a guix lint description/synopsis check for basic >> > spelling, typo and rudimentary grammar issues. >> ... >> > Many of these are likely to be caught by most spell checking routines; >> > I'm not sure if there is anything that would be implementable in pure >> > guile, or it if would make sense to call out to an external >> > spellchecker. >> > >> > Some of them might be harder, and obviously we do not want too many >> > false positives, but no need to get perfectionist on solving this; even >> > just checking for "This packages" would haved detected many of these >> > issues! >>=20 >> In the attached patch, I've implemented a simple lint check for "This >> packages", which has been fixed in ... 42 packages so far in the git >> repository, so maybe this could help catch future ones! >>=20 >> I haven't implemented a more complicated spellchecker or grammar checker >> or anything, but at least this is a start. >>=20 >> I think it is also within my skills to address "allows to" and "permits >> to", if I'm not heading down the wrong path here... >>=20 >>=20 >> live well, >> vagrant > > It might make more sense to name it something more like > 'catch-common-typos' and to search for 'This packages', 'allows to', > 'permits to', 'file-name' and then print out the different mistakes in > the description. Then we can add more as we find them, rather than one > check per mistake. That makes sense, though 'This packages' is very straightforward and has a simple recommendation to fix it, whereas 'allows to' requires more complicated english skills to come up with the correct solution... it could just simply flag those cases as "wrong" without a solution. Basically, I already stretched my cargo-culting, er, guile skills just to get something obvious fixed that I keep seeing over and over again. It would be a good excercise for me to better learn guile to extend to further typos, though ... limited time. Playing whack-a-mole with typos does get tiring :) live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYIWcJQAKCRDcUY/If5cW qnAFAP4qgz82H73sev7l5ghpUl6hb+G9KLOH/HtdY5XPVUxVIAD+J1bPekfF9yJq J4kM0wW5WF7HTJN2ZbE2X2ITOCgMsgk= =7Ckg -----END PGP SIGNATURE----- --=-=-=--