{
  "id": "language",
  "name": "Language",
  "status": "draft",
  "doc": "Human language written as a name, such as English, Deutsch or allemand (German in French), or as a code. Codes have their own patterns: iso639_1 (two letters) and iso639_2 (three letters). A language tag with region or script subtags, such as en-GB, is the datatype languagetag.",
  "categories": [
    {
      "id": "common",
      "name": "Common"
    }
  ],
  "langs": [
    {
      "id": "cs",
      "name": "Czech"
    },
    {
      "id": "da",
      "name": "Danish"
    },
    {
      "id": "de",
      "name": "German"
    },
    {
      "id": "en",
      "name": "English"
    },
    {
      "id": "es",
      "name": "Spanish"
    },
    {
      "id": "fi",
      "name": "Finnish"
    },
    {
      "id": "fr",
      "name": "French"
    },
    {
      "id": "it",
      "name": "Italian"
    },
    {
      "id": "ja",
      "name": "Japanese"
    },
    {
      "id": "nl",
      "name": "Dutch"
    },
    {
      "id": "pl",
      "name": "Polish"
    },
    {
      "id": "pt",
      "name": "Portuguese"
    },
    {
      "id": "ro",
      "name": "Romanian"
    },
    {
      "id": "ru",
      "name": "Russian"
    },
    {
      "id": "sv",
      "name": "Swedish"
    }
  ],
  "is_pii": false,
  "classification": "categorical",
  "examples": [
    {
      "value": "English"
    },
    {
      "value": "Deutsch",
      "description": "German, in German"
    },
    {
      "value": "allemand",
      "description": "German, in French"
    }
  ],
  "mappings": {
    "fta": [
      "LANGUAGE.TEXT_CS",
      "LANGUAGE.TEXT_DA",
      "LANGUAGE.TEXT_DE",
      "LANGUAGE.TEXT_EN",
      "LANGUAGE.TEXT_ES",
      "LANGUAGE.TEXT_FI",
      "LANGUAGE.TEXT_FR",
      "LANGUAGE.TEXT_IT",
      "LANGUAGE.TEXT_JA",
      "LANGUAGE.TEXT_NL",
      "LANGUAGE.TEXT_PL",
      "LANGUAGE.TEXT_PT",
      "LANGUAGE.TEXT_RO",
      "LANGUAGE.TEXT_RU",
      "LANGUAGE.TEXT_SV"
    ],
    "sherlock": "language"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/ISO_639"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Language"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Q34770"
    },
    {
      "type": "schema.org",
      "url": "https://schema.org/Language"
    },
    {
      "type": "other",
      "url": "https://github.com/tsegall/fta/blob/main/SemanticTypes.md"
    }
  ],
  "translations": {
    "ru": {
      "name": "Язык"
    }
  },
  "type": "datatype",
  "patterns": [
    {
      "id": "iso639_1",
      "name": "ISO 639-1 language code (two letters)",
      "status": "draft",
      "doc": "Two-letter code of a language from ISO 639-1, such as en (English), de (German) or ja (Japanese). About 180 languages have such a code. It is written in lowercase, but data sets often use uppercase.",
      "semantic_type": "language",
      "langs": [
        {
          "id": "common",
          "name": "Common to most languages"
        }
      ],
      "regexp": "^(?:[a-z]{2}|[A-Z]{2})$",
      "examples": [
        {
          "value": "en",
          "description": "English"
        },
        {
          "value": "de",
          "description": "German"
        },
        {
          "value": "JA",
          "description": "Japanese, in uppercase"
        },
        {
          "value": "eng",
          "valid": false,
          "description": "a three-letter ISO 639-2 code"
        }
      ],
      "mappings": {
        "wikidata": "P218",
        "fta": "LANGUAGE.ISO-639-1"
      },
      "links": [
        {
          "type": "wikipedia",
          "url": "https://en.wikipedia.org/wiki/ISO_639-1"
        },
        {
          "type": "wikidata",
          "url": "https://www.wikidata.org/wiki/Property:P218"
        },
        {
          "type": "other",
          "url": "https://github.com/tsegall/fta/blob/main/SemanticTypes.md"
        }
      ],
      "translations": {
        "ru": {
          "name": "Код языка ISO 639-1"
        }
      },
      "type": "pattern",
      "is_pii": false,
      "categories": [
        {
          "id": "common",
          "name": "Common"
        }
      ],
      "classification": "categorical",
      "wikidata_property": "P218"
    },
    {
      "id": "iso639_2",
      "name": "ISO 639-2 language code (three letters)",
      "status": "draft",
      "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",
      "langs": [
        {
          "id": "common",
          "name": "Common to most languages"
        }
      ],
      "regexp": "^(?:[a-z]{3}|[A-Z]{3})$",
      "examples": [
        {
          "value": "eng",
          "description": "English"
        },
        {
          "value": "rus",
          "description": "Russian"
        },
        {
          "value": "deu",
          "description": "German, terminology code"
        },
        {
          "value": "ger",
          "description": "German, bibliographic code"
        },
        {
          "value": "en",
          "valid": false,
          "description": "a two-letter ISO 639-1 code"
        }
      ],
      "mappings": {
        "wikidata": "P219",
        "fta": "LANGUAGE.ISO-639-2"
      },
      "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"
        }
      },
      "type": "pattern",
      "is_pii": false,
      "categories": [
        {
          "id": "common",
          "name": "Common"
        }
      ],
      "classification": "categorical",
      "wikidata_property": "P219"
    }
  ]
}