{
  "format": "chat-masque-rules",
  "version": 1,
  "catalogue": {
    "id": "bf",
    "title": { "fr": "Burkina Faso : IFU, CNIB, téléphones", "en": "Burkina Faso: IFU, CNIB, phone numbers" },
    "summary": {
      "fr": "Identifiant financier unique (IFU, 8 chiffres et une lettre), numéro de carte nationale d’identité burkinabè (CNIB) près du mot « CNIB », et numéros de téléphone à 8 chiffres écrits sans l’indicatif +226.",
      "en": "Single financial identifier (IFU, 8 digits and a letter), Burkinabe national ID card number (CNIB) near the word “CNIB”, and 8-digit phone numbers written without the +226 prefix."
    },
    "countries": ["BF"],
    "sectors": ["administration"],
    "documentLanguage": "fr",
    "version": "1.0",
    "updated": "2026-11-11",
    "examples": [
      { "text": "IFU 00012345X, centre des impôts de Ouaga I.", "masked": ["IFU_BF:00012345X"] },
      { "text": "CNIB n° B1234567 délivrée à Bobo-Dioulasso.", "masked": ["CNIB_BF:B1234567"] },
      { "text": "Contact : 70 12 34 56.", "masked": ["TEL_BF:70 12 34 56"] },
      { "text": "Score final : 70 à 56, match du 12 mai.", "masked": [] }
    ]
  },
  "entities": [
    {
      "type": "IFU_BF",
      "description": "Identifiant financier unique (8 chiffres et une lettre)",
      "enabled": true,
      "context": ["ifu", "identifiant financier unique", "identifiant fiscal"],
      "patterns": [{ "name": "ifu", "regex": "\\b\\d{8}\\s?[A-Z]\\b", "score": 0.2 }]
    },
    {
      "type": "CNIB_BF",
      "description": "Numéro de carte nationale d’identité burkinabè, près du mot « CNIB »",
      "enabled": true,
      "context": ["cnib", "carte nationale d’identité burkinabè", "carte nationale d'identité burkinabè"],
      "patterns": [{ "name": "cnib", "regex": "\\b[A-Z]?\\d{7,9}\\b", "score": 0.2 }]
    },
    {
      "type": "TEL_BF",
      "description": "Numéro de téléphone burkinabè à 8 chiffres, près d’un mot comme « tél. » ou « contact »",
      "enabled": true,
      "context": ["tél", "tel", "téléphone", "telephone", "mobile", "portable", "contact", "whatsapp", "appelez"],
      "patterns": [{ "name": "numero", "regex": "(?<![\\d+])(?:0[1-35-7]|2[045]|5[0-8]|6\\d|7\\d)(?:[ .]?\\d{2}){3}\\b", "score": 0.2 }]
    }
  ]
}
