[PATCH] scripts/spelling.txt: keep British spelling for "initalise"

Hemanth Selam posted 1 patch 2 weeks, 4 days ago
scripts/spelling.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] scripts/spelling.txt: keep British spelling for "initalise"
Posted by Hemanth Selam 2 weeks, 4 days ago
These are the only two entries in the file that map a British spelling
to an American one:

  initalised||initialized
  initalise||initialize

doc-guide/checkpatch.rst asks that British and American spellings be
left alone, so correcting the missing "i" should not also change the
variety of English.  Following checkpatch here silently rewrites
"initalised" to "initialized" in files that otherwise use British
forms; arch/arm64 alone has 58 uses of "initialised" against 132 of
"initialized", so both are clearly in use.

Map them to the British forms instead, so the misspelling is still
caught while the spelling variety is left to the author.

Suggested-by: Randy Dunlap <rdunlap@infradead.org>
Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 scripts/spelling.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/spelling.txt b/scripts/spelling.txt
index 3372873cd7bb..9ec2529bc584 100644
--- a/scripts/spelling.txt
+++ b/scripts/spelling.txt
@@ -872,8 +872,8 @@ infromation||information
 ingore||ignore
 inheritence||inheritance
 inital||initial
-initalised||initialized
-initalise||initialize
+initalised||initialised
+initalise||initialise
 initalized||initialized
 initalize||initialize
 initation||initiation
Re: [PATCH] scripts/spelling.txt: keep British spelling for "initalise"
Posted by Randy Dunlap 2 weeks, 4 days ago

On 9/7/26 2:13 AM, Hemanth Selam wrote:
> These are the only two entries in the file that map a British spelling
> to an American one:
> 
>   initalised||initialized
>   initalise||initialize
> 
> doc-guide/checkpatch.rst asks that British and American spellings be
> left alone, so correcting the missing "i" should not also change the
> variety of English.  Following checkpatch here silently rewrites
> "initalised" to "initialized" in files that otherwise use British
> forms; arch/arm64 alone has 58 uses of "initialised" against 132 of
> "initialized", so both are clearly in use.
> 
> Map them to the British forms instead, so the misspelling is still
> caught while the spelling variety is left to the author.
> 
> Suggested-by: Randy Dunlap <rdunlap@infradead.org>
> Assisted-by: Cursor:claude-opus-5
> Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>

Acked-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.

> ---
>  scripts/spelling.txt | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/scripts/spelling.txt b/scripts/spelling.txt
> index 3372873cd7bb..9ec2529bc584 100644
> --- a/scripts/spelling.txt
> +++ b/scripts/spelling.txt
> @@ -872,8 +872,8 @@ infromation||information
>  ingore||ignore
>  inheritence||inheritance
>  inital||initial
> -initalised||initialized
> -initalise||initialize
> +initalised||initialised
> +initalise||initialise
>  initalized||initialized
>  initalize||initialize
>  initation||initiation

-- 
~Randy