From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 557C8C4743D for ; Fri, 11 Jun 2021 08:03:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 32E31613BA for ; Fri, 11 Jun 2021 08:03:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231629AbhFKIFq (ORCPT ); Fri, 11 Jun 2021 04:05:46 -0400 Received: from mail-pf1-f174.google.com ([209.85.210.174]:38575 "EHLO mail-pf1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbhFKIFp (ORCPT ); Fri, 11 Jun 2021 04:05:45 -0400 Received: by mail-pf1-f174.google.com with SMTP id z26so3802600pfj.5 for ; Fri, 11 Jun 2021 01:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9LDgM09avav4+UDwSVPDUyVX9fC/xyLrUq2y0119ifY=; b=Of7RsDN1ourkXkFz28xwcBBwlV1LnGpowUbOypEnN88UW0qKKR/izCn53T5Pe2fsDt 8c6Xnc78l9U0gaY/5qiK4aoiUGpyIPSLL9ahzsOQZMy144kk72cbyH0h2Xds5JDgF9X7 Ka3K5cefyhEje5M3nc/A+oLjep3mUYCtUz4JSfWdisKkV/7eaN9Ayn6a8TY7JjG6JQDC NT/MdYiOFn3sg6RI5uz4Dk41OY1/UggyPTyJOmiXNBhyGyKLS9jAdPzVfevWDDHOTpc8 wL2BLLbyMGY+eDtyVp+V7MsfE80F8BXz6FD4/sI2Vk6t85m8Au7kQI+G1IxAMAI7uTpZ wMeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9LDgM09avav4+UDwSVPDUyVX9fC/xyLrUq2y0119ifY=; b=ZHXkRulex1Zrd98kZBKI/nNG/+/6+PTWBWtgU9i2XKnztnm+e8itM//0Cete4gbtFU WgRyMME+Ic+YTOEAOQpy7WtjvC94CEloobCLDSzXttKiYxUmTV+6ZcGW1/82Hb0UYJgm 7G3iub6iohK58TCs9wS+dH1um/3ZYoPUigz5rqE0Ggx9bHg22CUSGDH8NUeN3QsLKdbf OdcEI9XUodOHZv+nWYPVK2p9JiAhmegBaUv7VzWXE9lw4j5ejSGOeKE0hjEG8IC7qc/M CZHhryoXAzHf34AnWucRICats5j2sbFEsPuqgEFCrwhmB9pYr6EawI6jJAvoWZdr2QRY Gq/A== X-Gm-Message-State: AOAM531L7UDdqWTasTAXl2sbIuNEpQ3/2KQi2mg7fCkDmBAxdudS2RTb zKtoIPPLuQSWNtw3ywU/Sq9XBO2ouI0IP5Xxma8= X-Google-Smtp-Source: ABdhPJyAP1EOOe0XVRG3PTziDRyDgGTKy70ZbehSrcsxTYHwNjw2qfVgXaMG72JoOKjejU5VA1IL+YbsJONWGJNkQBs= X-Received: by 2002:a63:b00d:: with SMTP id h13mr216243pgf.74.1623398553804; Fri, 11 Jun 2021 01:02:33 -0700 (PDT) MIME-Version: 1.0 References: <20210611071241.16728-1-thunder.leizhen@huawei.com> In-Reply-To: <20210611071241.16728-1-thunder.leizhen@huawei.com> From: Andy Shevchenko Date: Fri, 11 Jun 2021 11:02:17 +0300 Message-ID: Subject: Re: [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder To: Zhen Lei Cc: Andrew Morton , Nicolas Dichtel , Joe Perches , Jason Baron , Stefani Seibold , Jacob Keller , Thomas Graf , Herbert Xu , Jens Axboe , Petr Mladek , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei wrote: > > Add spelling_sanitizer.sh and use it to reorder, then add some spelling > "mistake||correction" pairs. The sorting idea is good, but the order is not. What you really need is to use language corpus [1] instead. So in such case you will eliminate false positives (to some extent). [1]: https://en.wikipedia.org/wiki/Corpus_of_Contemporary_American_English -- With Best Regards, Andy Shevchenko