From 0728f3f969c0d4083fc4b3d1c43772dd93dbf26b Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Sun, 13 Sep 2026 16:29:23 +0200 Subject: [PATCH] chore(scripts): teach the normaliser the brand inside a CamelCase identifier The fork's profile-preview line names a Readiness state NotYetOnCurare, and the normaliser's \bCurare\b rule cannot see a brand that has no word boundary in front of it: the first rewrite of the eleven new commits left seventeen occurrences of it in code, tests and the note. One rule, for a brand preceded by a lower-case letter or digit and followed by an upper case letter or the end of the word, maps it to NotYetOnMantra. Only the Curare generation gets the rule: "Curated" is product vocabulary at the tip (CuratedSchemaEvent) and a CamelCase-embedded Curated is therefore not a brand. Co-Authored-By: Claude Opus 5 --- docs/scripts/curated-unbrand.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/scripts/curated-unbrand.py b/docs/scripts/curated-unbrand.py index a415e543..01853f66 100755 --- a/docs/scripts/curated-unbrand.py +++ b/docs/scripts/curated-unbrand.py @@ -85,6 +85,9 @@ _RULES = [ (r'(? `NotYetOnMantra` + (r'(?<=[a-z0-9])Curare(?=[A-Z]|\b)', 'Mantra'), # the brand word itself, in comments, string values and docs (r'\bCurare\b', 'Mantra'), (r'\bcurare\b', 'mantra'),