From 2c2551e88d91aff22286ea3ce783892837700bee Mon Sep 17 00:00:00 2001 From: Ben Cromwell Date: Mon, 9 Feb 2026 08:13:26 +0000 Subject: [PATCH 1/2] feat: update deps --- styles/alex/Suicide.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styles/alex/Suicide.yml b/styles/alex/Suicide.yml index 3dfd3e3..a85e07f 100644 --- a/styles/alex/Suicide.yml +++ b/styles/alex/Suicide.yml @@ -1,6 +1,6 @@ --- extends: substitution -message: When referring to a person, consider using '%s' instead of '%s'. +message: Consider using '%s' instead of '%s' (which may be insensitive). ignorecase: true level: warning action: From 9dc4b824278f0090438faf48bd74c09594d021e0 Mon Sep 17 00:00:00 2001 From: Ben Cromwell Date: Mon, 9 Feb 2026 08:13:36 +0000 Subject: [PATCH 2/2] feat: allow pluralised acronym variants --- styles/Krystal/Acronyms.yml | 7 ++++--- styles/Krystal/Spelling.yml | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/styles/Krystal/Acronyms.yml b/styles/Krystal/Acronyms.yml index be763c0..72c197b 100644 --- a/styles/Krystal/Acronyms.yml +++ b/styles/Krystal/Acronyms.yml @@ -1,11 +1,12 @@ extends: conditional message: "'%s' has no definition." -link: +link: level: suggestion ignorecase: false # Ensures that the existence of 'first' implies the existence of 'second'. -first: '\b([A-Z]{2,5}[s]?)\b' -second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{2,5}[s]?)\)' +first: '\b[A-Z]{2,5}(?=s?\b)' +# Match the definition, allowing the acronym inside the parens to be singular or plural +second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{2,5}s?)\)' # ... with the exception of these: exceptions: - API diff --git a/styles/Krystal/Spelling.yml b/styles/Krystal/Spelling.yml index a135a70..ea596e1 100644 --- a/styles/Krystal/Spelling.yml +++ b/styles/Krystal/Spelling.yml @@ -14,5 +14,8 @@ level: error dictionaries: - en_GB dicpath: config/dictionaries/ +filters: + # This rule allows for 2-5 character all uppercase acronyms: + - '\b[A-Z]{2,5}s?\b' ignore: - ignore/spelling-ignorelist.txt