{
  "id": "fr_nafa",
  "kind": "datatype",
  "status": "draft",
  "name": "French crafts activity code (NAFA)",
  "doc": "Code of the Nomenclature d'activités française du secteur des métiers de l'artisanat (NAFA), which refines NAF rév. 2 for establishments registered in the Répertoire des métiers. Sirene gives it as activitePrincipaleRegistreMetiersEtablissement for crafts establishments only: six characters, the NAF subclass without its dot (four digits and a letter) and a letter of the NAFA.",
  "is_pii": false,
  "categories": [
    "industry",
    "companies"
  ],
  "country": [
    "FR"
  ],
  "langs": [
    "fr"
  ],
  "classification": "categorical",
  "regexp": "^\\d{4}[A-Z]{2}$",
  "examples": [
    {
      "value": "8121ZZ",
      "description": "NAF 81.21Z, general cleaning of buildings",
      "valid": true
    },
    {
      "value": "4321AB",
      "description": "NAF 43.21A, electrical installation",
      "valid": true
    },
    {
      "value": "5610CQ",
      "description": "NAF 56.10C, fast food",
      "valid": true
    },
    {
      "value": "81.21Z",
      "description": "a NAF subclass, not a NAFA code",
      "valid": false
    },
    {
      "value": "8121Z",
      "description": "one letter",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.insee.fr/fr/metadonnees/definition/c1580"
    }
  ],
  "translations": {
    "fr": {
      "name": "Code NAFA"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "frnafabyname",
        "type": "field",
        "match": "regex",
        "file": "fr/fr_companies.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/FR/industry/fr_nafa.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/FR/industry/fr_nafa.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/industry/fr_nafa.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/fr_nafa",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/fr_nafa.json"
  }
}