Redact: catch soft dates (years, month+year, ranges, prepositions)

Adds Nordic-pack regex patterns for:
- DD.MM.YYYY / DD/MM/YYYY / YYYY-MM-DD
- Year ranges (2011/2012, 2018-2019)
- Month + year (Norwegian + English, with optional day)
- Year preceded by temporal preposition (i 2015, fra 2019, rundt 2018)

Also renames the entity toggle from "Dates of birth" to "Dates" (broader
scope) in all four languages, and expands the LLM prompt so soft date
references in free text are caught even when regex misses them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 01:58:35 +02:00
parent e156ed4553
commit f183678f35
3 changed files with 29 additions and 12 deletions
+4 -4
View File
@@ -25,7 +25,7 @@ const REDACT_I18N = {
redactEntityNames: 'Names',
redactEntityOrgs: 'Organisations',
redactEntityPlaces: 'Places',
redactEntityDob: 'Dates of birth',
redactEntityDob: 'Dates',
redactOfficials: 'Officials',
redactKeepOfficials: 'Keep official names (judges, experts)',
redactOfficialsHint: 'When checked, judges, expert witnesses and caseworkers keep their names in a labelled tag: [JUDGE: Andersen]. Uncheck to replace all names with generic role tags.',
@@ -79,7 +79,7 @@ const REDACT_I18N = {
redactEntityNames: 'Navn',
redactEntityOrgs: 'Organisasjoner',
redactEntityPlaces: 'Steder',
redactEntityDob: 'Fødselsdatoer',
redactEntityDob: 'Datoer',
redactOfficials: 'Offisielle',
redactKeepOfficials: 'Behold offisielle navn (dommere, sakkyndige)',
redactOfficialsHint: 'Når avkrysset beholder dommere, sakkyndige og saksbehandlere sine navn i en merket tagg: [DOMMER: Andersen]. Fjern haken for å erstatte alle navn med generiske rolletaggar.',
@@ -133,7 +133,7 @@ const REDACT_I18N = {
redactEntityNames: 'Імена',
redactEntityOrgs: 'Організації',
redactEntityPlaces: 'Місця',
redactEntityDob: 'Дати народження',
redactEntityDob: 'Дати',
redactOfficials: 'Офіційні особи',
redactKeepOfficials: 'Зберігати офіційні імена (судді, експерти)',
redactOfficialsHint: 'Якщо позначено, судді, експерти та соціальні працівники зберігають свої імена у позначеному тезі: [СУДДЯ: Andersen].',
@@ -187,7 +187,7 @@ const REDACT_I18N = {
redactEntityNames: 'Imiona',
redactEntityOrgs: 'Organizacje',
redactEntityPlaces: 'Miejsca',
redactEntityDob: 'Daty urodzenia',
redactEntityDob: 'Daty',
redactOfficials: 'Urzędnicy',
redactKeepOfficials: 'Zachowaj oficjalne nazwy (sędziowie, eksperci)',
redactOfficialsHint: 'Gdy zaznaczone, sędziowie, biegli i pracownicy socjalni zachowują swoje nazwiska w oznaczonym tagu: [SĘDZIA: Andersen].',