{
  "format": "chat-masque-rules",
  "version": 1,
  "catalogue": {
    "id": "us",
    "title": {
      "fr": "États-Unis : santé, banque, justice, permis",
      "en": "United States: healthcare, banking, courts, licences"
    },
    "summary": {
      "fr": "Numéros Medicare (MBI), NPI et DEA des soignants, dossiers médicaux, numéros d’assuré, numéros de routage (ABA) et de compte, dossiers des tribunaux fédéraux (1:23-cv-01234), permis de conduire, numéros d’employé et VIN, avec des mots d’annonce en anglais. Les SSN, ITIN, EIN et téléphones sont déjà masqués par l’extension.",
      "en": "Medicare numbers (MBI), clinicians’ NPI and DEA numbers, medical records, member IDs, routing (ABA) and account numbers, federal court case numbers (1:23-cv-01234), driver’s licences, employee IDs and VINs, with English trigger words. SSNs, ITINs, EINs and phone numbers are already masked by the extension."
    },
    "countries": ["US"],
    "sectors": ["administration", "sante", "banque", "juridique", "rh"],
    "documentLanguage": "en",
    "version": "1.0",
    "updated": "2026-11-12",
    "examples": [
      { "text": "Medicare number 1EG4-TE5-MK73, Part B.", "masked": ["MBI:1EG4-TE5-MK73"] },
      { "text": "Referring physician NPI 1234567893.", "masked": ["NPI_US:1234567893"] },
      { "text": "Prescriber DEA number AB1234563.", "masked": ["DEA_US:AB1234563"] },
      { "text": "Patient MRN 4587120, cardiology ward.", "masked": ["MRN_US:4587120"] },
      { "text": "Member ID XYZ123456789, group 0045.", "masked": ["MEMBER_ID_US:XYZ123456789"] },
      { "text": "Routing number 123456780 for the wire.", "masked": ["ROUTING_US:123456780"] },
      { "text": "Checking account 4587120365 at the branch.", "masked": ["ACCOUNT_US:4587120365"] },
      { "text": "Case No. 1:23-cv-01234-ABC was filed in May.", "masked": ["CASE_US:1:23-cv-01234-ABC"] },
      { "text": "Driver’s license D1234567, California.", "masked": ["DRIVER_LICENSE_US:D1234567"] },
      { "text": "Employee ID E-20457, payroll department.", "masked": ["EMPLOYEE_ID_US:E-20457"] },
      { "text": "Vehicle VIN 1HGCM82633A004352 was towed.", "masked": ["VIN:1HGCM82633A004352"] },
      { "text": "The clinic saw 1250 patients in 2024, up 12 percent.", "masked": [] }
    ]
  },
  "entities": [
    {
      "type": "MBI",
      "description": "Medicare Beneficiary Identifier (11 characters, e.g. 1EG4-TE5-MK73)",
      "enabled": true,
      "context": ["medicare", "mbi", "beneficiary"],
      "patterns": [
        {
          "name": "mbi",
          "regex": "\\b[1-9][AC-HJKMNP-RT-Y][AC-HJKMNP-RT-Y0-9]\\d-?[AC-HJKMNP-RT-Y][AC-HJKMNP-RT-Y0-9]\\d-?[AC-HJKMNP-RT-Y]{2}\\d{2}\\b",
          "score": 0.8
        }
      ]
    },
    {
      "type": "NPI_US",
      "description": "National Provider Identifier of a clinician (10 digits), near “NPI”",
      "enabled": true,
      "context": ["npi", "national provider identifier", "provider id"],
      "patterns": [{ "name": "npi", "regex": "\\b[12]\\d{9}\\b", "score": 0.35 }]
    },
    {
      "type": "DEA_US",
      "description": "DEA registration number of a prescriber (2 letters, 7 digits)",
      "enabled": true,
      "context": ["dea", "dea number", "dea no", "dea #"],
      "patterns": [{ "name": "dea", "regex": "\\b[ABCDEFGHJKLMPRSTUX][A-Z9]\\d{7}\\b", "score": 0.4 }]
    },
    {
      "type": "MRN_US",
      "description": "Medical record number or patient ID",
      "enabled": true,
      "context": ["mrn", "medical record number", "medical record no", "patient id", "chart number", "chart #"],
      "patterns": [{ "name": "mrn", "regex": "\\b[A-Z]{0,3}\\d{5,12}\\b", "score": 0.35 }]
    },
    {
      "type": "MEMBER_ID_US",
      "description": "Health insurance member, subscriber or policy ID",
      "enabled": true,
      "context": ["member id", "member number", "subscriber id", "subscriber number", "policy number", "policy no"],
      "patterns": [{ "name": "member", "regex": "\\b[A-Z]{0,4}\\d{6,14}\\b", "score": 0.35 }]
    },
    {
      "type": "ROUTING_US",
      "description": "Bank routing number (ABA, 9 digits), near “routing” or “ABA”",
      "enabled": true,
      "context": ["routing number", "routing no", "routing #", "aba", "rtn"],
      "patterns": [{ "name": "aba", "regex": "\\b\\d{9}\\b", "score": 0.35 }]
    },
    {
      "type": "ACCOUNT_US",
      "description": "Bank account number, near “account”",
      "enabled": true,
      "context": ["account number", "account no", "account #", "acct", "checking account", "savings account"],
      "patterns": [{ "name": "account", "regex": "\\b\\d{6,17}\\b", "score": 0.35 }]
    },
    {
      "type": "CASE_US",
      "description": "Federal court case number (1:23-cv-01234, with optional judge initials)",
      "enabled": true,
      "context": ["case no", "case number", "docket", "civil action"],
      "patterns": [{ "name": "case", "regex": "\\b\\d:\\d{2}-[a-z]{2,3}-\\d{3,6}(?:-[A-Z]{2,4})*\\b", "flags": "i", "score": 0.85 }]
    },
    {
      "type": "DRIVER_LICENSE_US",
      "description": "Driver’s license number (formats vary by state), near “driver’s license” or “DL”",
      "enabled": true,
      "context": [
        "driver license",
        "driver's license",
        "driver’s license",
        "drivers license",
        "dl#",
        "dl no",
        "license no",
        "license number"
      ],
      "patterns": [{ "name": "license", "regex": "\\b[A-Z]{0,2}\\d{5,13}\\b", "score": 0.35 }]
    },
    {
      "type": "EMPLOYEE_ID_US",
      "description": "Employee, staff or badge ID",
      "enabled": true,
      "context": ["employee id", "employee number", "emp id", "staff id", "badge number", "badge #"],
      "patterns": [{ "name": "employee", "regex": "\\b[A-Z]{0,3}-?\\d{3,9}\\b", "score": 0.3 }]
    },
    {
      "type": "VIN",
      "description": "Vehicle identification number (17 characters, no I, O or Q)",
      "enabled": true,
      "context": ["vin", "vehicle identification", "chassis"],
      "patterns": [
        {
          "name": "vin",
          "regex": "\\b(?=[A-HJ-NPR-Z0-9]{0,16}[A-HJ-NPR-Z])(?=[A-HJ-NPR-Z]{0,16}\\d)[A-HJ-NPR-Z0-9]{17}\\b",
          "score": 0.45
        }
      ]
    }
  ]
}
