From 7c52974d1b80900c6a6c9075159e47bc801672f6 Mon Sep 17 00:00:00 2001 From: gehrleib Date: Sat, 22 Feb 2025 19:13:43 -0500 Subject: [PATCH] tweak(regex): Improve `Colourisation` description --- regex_patterns/Colourisation.yml | 37 ++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/regex_patterns/Colourisation.yml b/regex_patterns/Colourisation.yml index 0e86f5b..5719f66 100644 --- a/regex_patterns/Colourisation.yml +++ b/regex_patterns/Colourisation.yml @@ -1,8 +1,17 @@ name: Colourisation pattern: \bcolou?r(i[sz]ed?|ed)?\b -description: '- Matches `colour`, `coloured`, `colourize`, `colourized`. +description: 'Colourisation (or colorization in American English) is the process of + adding colour to black-and-white, sepia, or other monochrome images. Matches variations + of `color` in both American and British spellings, including: - - Handles both American ("color") and British ("colour") spellings.' + + - **Base forms:** `color`, `colour` + + - **Past tense/adjective forms:** `colored`, `coloured` + + - **Verb forms:** `colorize`, `colourize`, `colorise`, `colourise` + + - **Past participles:** `colorized`, `coloured`, `colourized`, `colourised`' tags: - Colour Grade - Enhancement @@ -10,7 +19,7 @@ tests: - expected: true id: 1 input: colour - lastRun: '2025-02-13T13:29:13.301346' + lastRun: '2025-02-22T19:10:06.067266' matchSpan: end: 6 start: 0 @@ -21,7 +30,7 @@ tests: - expected: true id: 3 input: coloured - lastRun: '2025-02-13T13:29:13.301346' + lastRun: '2025-02-22T19:10:06.067266' matchSpan: end: 8 start: 0 @@ -31,30 +40,30 @@ tests: passes: true - expected: true id: 4 - input: colourize - lastRun: '2025-02-13T13:29:13.301346' + input: colourise + lastRun: '2025-02-22T19:10:06.067266' matchSpan: end: 9 start: 0 - matchedContent: colourize + matchedContent: colourise matchedGroups: - - ize + - ise passes: true - expected: true id: 7 - input: colourized - lastRun: '2025-02-13T13:29:13.301346' + input: colourised + lastRun: '2025-02-22T19:10:06.067266' matchSpan: end: 10 start: 0 - matchedContent: colourized + matchedContent: colourised matchedGroups: - - ized + - ised passes: true - expected: true id: 8 input: colored - lastRun: '2025-02-13T13:29:13.301346' + lastRun: '2025-02-22T19:10:06.067266' matchSpan: end: 7 start: 0 @@ -65,7 +74,7 @@ tests: - expected: false id: 9 input: discolor - lastRun: '2025-02-13T13:29:13.301346' + lastRun: '2025-02-22T19:10:06.067266' matchSpan: null matchedContent: null matchedGroups: []