{
  "id": "iso639_2",
  "kind": "pattern",
  "status": "draft",
  "name": "ISO 639-2 language code (three letters)",
  "doc": "Three-letter code of a language from ISO 639-2, such as eng (English) or rus (Russian). About twenty languages have two codes: a bibliographic one based on the English name (ger, fre) and a terminology one based on the native name (deu, fra).",
  "semantic_type": "language",
  "is_pii": false,
  "categories": [
    "common"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^(?:[a-z]{3}|[A-Z]{3})$",
  "examples": [
    {
      "value": "eng",
      "description": "English",
      "valid": true
    },
    {
      "value": "rus",
      "description": "Russian",
      "valid": true
    },
    {
      "value": "deu",
      "description": "German, terminology code",
      "valid": true
    },
    {
      "value": "ger",
      "description": "German, bibliographic code",
      "valid": true
    },
    {
      "value": "en",
      "description": "a two-letter ISO 639-1 code",
      "valid": false
    }
  ],
  "mappings": {
    "fta": "LANGUAGE.ISO-639-2",
    "wikidata": "P219"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/ISO_639-2"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P219"
    },
    {
      "type": "other",
      "url": "https://github.com/tsegall/fta/blob/main/SemanticTypes.md"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код языка ISO 639-2"
    }
  },
  "detected_by": {
    "tools": [
      "fta",
      "greatexpectations",
      "talend"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/any/common/iso639_2.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/common/iso639_2.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/common/iso639_2.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/iso639_2",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/iso639_2.json"
  }
}