Z13724

{
    "Z1K1": "Z2",
    "Z2K1": {
        "Z1K1": "Z6",
        "Z6K1": "Z13724"
    },
    "Z2K2": {
        "Z1K1": "Z14",
        "Z14K1": "Z13617",
        "Z14K3": {
            "Z1K1": "Z16",
            "Z16K1": "Z610",
            "Z16K2": "def Z13617(Z13617K1):\n\t# TODO: Add a way to apply consonant gradiation (or make a new function that does this?)\n\t# See https://uusikielemme.fi/finnish-grammar/consonant-gradation/wordtype-a-consonant-gradation-sanatyyppi-astevaihtelu\n\t\n\tif Z13617K1[len(Z13617K1) - 3:] == \"nen\":\n\t\treturn Z13617K1[:-3] + \"selle\"\n\telif Z13617K1[len(Z13617K1) - 3:] == \"tar\":\n\t\treturn Z13617K1[:-3] + \"ttarelle\"\n\telif Z13617K1[len(Z13617K1) - 3:] == \"tär\":\n\t\treturn Z13617K1[:-3] + \"ttärelle\"\n\telif Z13617K1[len(Z13617K1) - 3:] == \"ton\":\n\t\treturn Z13617K1[:-3] + \"ttomalle\"\n\telif Z13617K1[len(Z13617K1) - 3:] == \"tön\":\n\t\treturn Z13617K1[:-3] + \"ttömalle\"\n\telif Z13617K1[len(Z13617K1) - 2:] == \"as\":\n\t\treturn Z13617K1[:-2] + \"aalle\"\n\telif Z13617K1[len(Z13617K1) - 2:] == \"äs\":\n\t\treturn Z13617K1[:-2] + \"äälle\"\n\telif Z13617K1[len(Z13617K1) - 2:] == \"os\":\n\t\treturn Z13617K1[:-2] + \"okselle\"\n\telif Z13617K1[len(Z13617K1) - 2:] == \"ös\":\n\t\treturn Z13617K1[:-2] + \"ökselle\"\n\telif Z13617K1[len(Z13617K1) - 2:] == \"ut\":\n\t\t#TODO: Add -elle instead if the word is not in active past participle (-eelle is more common, so its used here)\n\t\t# See https://uusikielemme.fi/finnish-grammar/syntax/constructions/the-active-past-participle-nut-partisiippi\n\t\treturn Z13617K1[:-2] + \"eelle\"\n\telif Z13617K1[len(Z13617K1) - 2:] == \"yt\":\n\t\t#TODO: Same thing as above in the -ut part\n\t\treturn Z13617K1[:-2] + \"eelle\"\n\telif Z13617K1[len(Z13617K1) - 2:] == \"in\":\n\t\treturn Z13617K1[:-2] + \"imelle\"\n\telif Z13617K1[len(Z13617K1) - 2:] == \"is\":\n\t\t#TODO: Words that end in -is are transformed to either -iille or -ikselle\n\t\t# See https://uusikielemme.fi/finnish-vocabulary/words-ending-in/words-ending-in-is-kallis-kaunis-futis-roskis-kasvis\n\t\treturn Z13617K1[:-2] + \"ikselle\"\n\telif Z13617K1[len(Z13617K1) - 1:] == \"i\":\n\t\t#TODO: How words that end in -i are transformed depends on if the word is \"new\" or \"old\"\n\t\t# If it's new, like a loanword (banaani, pankki, taksi), add -lle at the end\n\t\t# If it's old, like nature-related (ovi, veri, suomi), replace -i with -elle at the end\n\t\t# If it's old and ends in -si (vesi, käsi, vuosi), replace -si with -delle at the end\n\t\treturn Z13617K1\n\telif Z13617K1[len(Z13617K1) - 1:] == \"e\":\n\t\treturn Z13617K1 + \"elle\"\n\telse:\n\t\treturn Z13617K1 + \"lle\""
        }
    },
    "Z2K3": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "Finnish allative case singular, python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1430",
                "Z11K2": "finnischer Allativ in Python"
            }
        ]
    },
    "Z2K4": {
        "Z1K1": "Z32",
        "Z32K1": [
            "Z31"
        ]
    },
    "Z2K5": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11"
        ]
    }
}