Re: [PATCH] scripts/spelling.txt: increase error-prone spell checking

From: Joe Perches
Date: Thu Jan 21 2021 - 04:38:17 EST


On Thu, 2021-01-21 at 18:14 +0900, Naoki Hayama wrote:
> On 2021/01/21 17:41, Luca Ceresoli wrote:
> > On 21/01/21 04:21, Chunyou Tang wrote:
> > > On Wed, 20 Jan 2021 19:09:05 -0800 Joe Perches <joe@xxxxxxxxxxx> wrote:
> > > > On Wed, 2021-01-20 at 19:02 -0800, Randy Dunlap wrote:
> > > > > On 1/20/21 6:07 PM, ChunyouTang wrote:
> > > > > > From: tangchunyou <tangchunyou@xxxxxxxxxx>
[]
> > > > > > diff --git a/scripts/spelling.txt b/scripts/spelling.txt
> > > > []
> > > > > > @@ -875,6 +875,7 @@ manger||manager
> > > > > >  manoeuvering||maneuvering
> > > > > >  manufaucturing||manufacturing
> > > > > >  mappping||mapping
> > > > > > +maping||mapping
> > > > > >  matchs||matches
> > > > > >  mathimatical||mathematical
> > > > > >  mathimatic||mathematic
[]
> Rules in scripts/spelling.txt are sorted
> alphabetically by leftside words. It would
> be better that you insert "maping||mapping"
> rule between:
>
> "manufaucturing||manufacturing"
> and
> "mappping||mapping" .

That's not really true. Try a diff of $ sort < scripts/spelling.txt

The general rule of thumb, and it's only a rule of thumb and it is
not strictly enforced, is that similar misspellings are grouped
together.