Z17656

{
    "Z1K1": "Z2",
    "Z2K1": {
        "Z1K1": "Z6",
        "Z6K1": "Z17656"
    },
    "Z2K2": {
        "Z1K1": "Z14",
        "Z14K1": "Z17654",
        "Z14K3": {
            "Z1K1": "Z16",
            "Z16K1": "Z610",
            "Z16K2": "def Z17654(Z17654K1):\n    country = Z17654K1\n    \n    exceptional = {\n        \"Antarctica\": \"Antarctic\",\n        \"Austria-Hungary\": \"Austro-Hungarian\",\n        \"Azerbaijan\": \"Azerbaijani\",\n        \"Bangladesh\": \"Bangladeshi\",\n        \"Bengal\": \"Bengali\",\n        \"Benin\": \"Beninese\",\n        \"Bharat\": \"Bharatiya\",\n        \"Bosnia and Herzegovina\": \"Bosnian\",\n        \"Britain\": \"British\",\n        \"Burkina Faso\": \"Burkinabe\",\n        \"Burma\": \"Burmese\",\n        \"Cameroon\": \"Cameroonian\",\n        \"Canada\": \"Canadian\",\n        \"Cayman Islands\": \"Caymanian\",\n        \"China\": \"Chinese\",\n        \"Confederate States\": \"Confederate\",\n        \"Confederate States of America\": \"Confederate\",\n        \"Congo\": \"Congolese\",\n        \"Cote d'Ivoire\": \"Ivorian\",\n        \"Côte d'Ivoire\": \"Ivorian\",\n        \"Curacao\": \"Curacaoan\",\n        \"Curaçao\": \"Curaçaoan\",\n        \"Cyprus\": \"Cypriot\",\n        \"Czechia\": \"Czech\",\n        \"Czechoslovakia\": \"Czechoslovak\",\n        \"Democratic Republic of the Congo\": \"Congolese (DR)\",\n        \"Denmark\": \"Dane\",\n        \"Dominican Republic\": \"Dominican (R)\",\n        \"East Germany\": \"East German\",\n        \"East Timor\": \"East Timorese\",\n        \"Ecuador\": \"Ecuadorian\",\n        \"El Salvador\": \"Salvadoran\",\n        \"England\": \"English\",\n        \"Faroe Islands\": \"Faroese\",\n        \"Federated States of Micronesia\": \"Micronesian (FS)\",\n        \"Finland\": \"Finn\",\n        \"France\": \"French\",\n        \"Gabon\": \"Gabonese\",\n        \"GB\": \"British\",\n        \"German Empire\": \"German\",\n        \"Germany\": \"German\",\n        \"Ghana\": \"Ghanian\",\n        \"Great Britain\": \"British\",\n        \"Greece\": \"Greek\",\n        \"Guyana\": \"Guyanese\",\n        \"Holy Roman Empire\": \"German\",\n        \"Iraq\": \"Iraqi\",\n        \"Ireland\": \"Irish\",\n        \"Isle of Man\": \"Manx\",\n        \"Israel\": \"Israeli\",\n        \"Ivory Coast\": \"Ivorian\",\n        \"Japan\": \"Japanese\",\n        \"Kosovo\": \"Kosovar\",\n        \"Kuwait\": \"Kuwaiti\",\n        \"Laos\": \"Lao\",\n        \"Lebanon\": \"Lebanese\",\n        \"Madagascar\": \"Malagasy\",\n        \"Malaysia\": \"Malay\",\n        \"Maldives\": \"Maldivian\",\n        \"Malta\": \"Maltese\",\n        \"Marshall Islands\": \"Marshallese\",\n        \"Myanmar\": \"Burmese\",\n        \"Nazi Germany\": \"Nazi German\",\n        \"Nepal\": \"Nepalese\",\n        \"Niger\": \"Nigerien\",\n        \"Northern Cyprus\": \"Northern Cypriot\",\n        \"Northern Ireland\": \"Northern Irish\",\n        \"Norway\": \"Norwegian\",\n        \"Oman\": \"Omani\",\n        \"Pakistan\": \"Pakistani\",\n        \"Panama\": \"Panamanian\",\n        \"Peru\": \"Peruvian\",\n        \"Philippines\": \"Filipino\",\n        \"Pitcairn Islands\": \"Pitcairnese\",\n        \"Poland\": \"Polish\",\n        \"Portugal\": \"Portuguese\",\n        \"Qatar\": \"Qatari\",\n        \"Republic of the Congo\": \"Congolese (R)\",\n        \"Reunion\": \"Reunionese\",\n        \"Réunion\": \"Reunionese\",\n        \"San Marino\": \"Sammarinese\",\n        \"Saudi Arabia\": \"Saudi\",\n        \"Scotland\": \"Scot\",\n        \"Senegal\": \"Sensgalese\",\n        \"Slovakia\": \"Slovak\",\n        \"Slovenia\": \"Slovene\",\n        \"Solomon Islands\": \"Solomonian\",\n        \"Somalia\": \"Somali\",\n        \"Spain\": \"Spaniard\",\n        \"South Sudan\": \"South Sudanese\",\n        \"Soviet Union\": \"Soviet\",\n        \"Sudan\": \"Sudanese\",\n        \"Sweden\": \"Swede\",\n        \"Switzerland\": \"Swiss\",\n        \"Taiwan\": \"Taiwanese\",\n        \"Thailand\": \"Thai\",\n        \"Tibet\": \"Tibetan\",\n        \"Timor-Leste\": \"East Timorese\",\n        \"Togo\": \"Togolese\",\n        \"UK\": \"British\",\n        \"United Arab Emirates\": \"Emirati\",\n        \"United Kingdom\": \"British\",\n        \"United States\": \"American\",\n        \"Unites States of America\": \"American\",\n        \"US\": \"American\",\n        \"USA\": \"American\",\n        \"USSR\": \"Soviet\",\n        \"Vatican City\": \"Vatican\",\n        \"Wales\": \"Welsh\",\n        \"West Germany\": \"West German\",\n        \"Yemen\": \"Yemeni\",\n        \"Yugoslvia\": \"Yugoslav\"\n    }\n    \n    if country in exceptional:\n        return exceptional[country]\n    \n    if country.endswith(\" Empire\"):\n        return country[:-7]\n    \n    if country.endswith(\" Republic\"):\n        return country[:-9]\n    \n    if country.endswith(\"a\"):\n        return (country + \"n\")\n    \n    if country.endswith(\"an\"):\n        return (country + \"ian\")\n    elif country.endswith(\"us\") or country.endswith(\"um\"):\n        return (country[:-2] + \"an\")\n    \n    if country.endswith(\"as\"):\n        return (country[:-1] + \"n\")\n    \n    if country.endswith(\"ay\"):\n        return (country + \"an\")\n    elif country.endswith(\"y\"):\n        return (country[:-1] + \"ian\")\n    \n    if country.endswith(\"ina\"):\n        return (country[:-1] + \"e\")\n    \n    if country.endswith(\"ine\"):\n        return (country[:-1] + \"ian\")\n    elif country.endswith(\"que\"):\n        return (country[:-3] + \"can\")\n    elif country.endswith(\"e\"):\n        return (country + \"an\")\n    \n    if country.endswith(\"istan\"):\n        return (country[:-5])\n    elif country.endswith(\"stan\"):\n        return (country[:-4])\n    \n    elif country.endswith(\"i\"):\n        return (country + \"an\")\n    \n    if country.endswith(\"land\"):\n        return (country + \"er\")\n    \n    if country.endswith(\"m\"):\n        return (country + \"ese\")\n    \n    if country.endswith(\"o\"):\n        return (country[:-1] +\"an\")\n    \n    if country.endswith(\"u\"):\n        return (country + \"an\")\n    \n    else:\n        return (country + \"ian\")"
        }
    },
    "Z2K3": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "English country demonym python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1004",
                "Z11K2": "démonyme d'un pays, en anglais, en Python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1430",
                "Z11K2": "Englisches Demonym in Python"
            }
        ]
    },
    "Z2K4": {
        "Z1K1": "Z32",
        "Z32K1": [
            "Z31"
        ]
    },
    "Z2K5": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11"
        ]
    }
}