From 267b969fc6738a27316d7c0bdc6156b8c2d5f3f6 Mon Sep 17 00:00:00 2001 From: Roger Hunwicks Date: Tue, 14 Oct 2025 23:13:53 -0400 Subject: [PATCH] =?UTF-8?q?Regex=20support=20for=20'personnes=20par=20m?= =?UTF-8?q?=C3=A8nage'=20labels=20-=20see=20HEA-572?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipelines/assets/livelihood_activity_regexes.json | 2 +- .../test_livelihood_activity_regexes.json | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pipelines/assets/livelihood_activity_regexes.json b/pipelines/assets/livelihood_activity_regexes.json index b84a6e5..8f6d615 100644 --- a/pipelines/assets/livelihood_activity_regexes.json +++ b/pipelines/assets/livelihood_activity_regexes.json @@ -296,7 +296,7 @@ "times_per_year" ], [ - "{nbr_pattern} (?:people per HH|personnes par ménage)", + "{nbr_pattern} (?:people per HH|personnes par ménage|personnes par mènage)", null, false, "people_per_household" diff --git a/pipelines_tests/test_assets/test_livelihood_activity_regexes.json b/pipelines_tests/test_assets/test_livelihood_activity_regexes.json index 26c992e..24dece0 100644 --- a/pipelines_tests/test_assets/test_livelihood_activity_regexes.json +++ b/pipelines_tests/test_assets/test_livelihood_activity_regexes.json @@ -278,9 +278,6 @@ "attribute": "quantity_produced", "unit_of_measure_id": "kg" }, - "no. people per HH": { - "attribute": "people_per_household" - }, "PRODUCTION ANIMALE:": {}, "nb d'animaux laitiers": { "attribute": "milking_animals" @@ -762,6 +759,15 @@ "quantité": { "attribute": "quantity_produced_or_purchased" }, + "no. people per HH": { + "attribute": "people_per_household" + }, + "nbr. personnes par ménage": { + "attribute": "people_per_household" + }, + "nbr. personnes par mènage": { + "attribute": "people_per_household" + }, "no. personnes par ménage": { "attribute": "people_per_household" },