Z13239

{
    "Z1K1": "Z2",
    "Z2K1": {
        "Z1K1": "Z6",
        "Z6K1": "Z13239"
    },
    "Z2K2": {
        "Z1K1": "Z14",
        "Z14K1": "Z13238",
        "Z14K3": {
            "Z1K1": "Z16",
            "Z16K1": "Z610",
            "Z16K2": "def Z13238(Z13238K1):\r\n    import unicodedata\r\n    \r\n    # Sets of characters for each type\r\n    ghos_borno_set = set('গঘজঝডঢদধবভ')\r\n    alpopran_ghos_set = set('গজডদব')\r\n    mohapran_ghos_set = set('ঘঝঢধভ')\r\n    \r\n    oghos_borno_set = set('কখচছটঠতথপফ')\r\n    alpopran_oghos_set = set('কচটতপ')\r\n    mohapran_oghos_set = set('খছঠথফ')\r\n    \r\n    nasikya_borno_set = set('ঙঞনণম')\r\n    \r\n    # Ignore characters\r\n    ignore_characters = set('যরলশসহড়ঢ়য়অআইঈউঊঋএঐওঔৎংঃঁ')\r\n\r\n    for char in Z13238K1:\r\n        if char == ' ':\r\n            continue\r\n        if char in ignore_characters:\r\n            continue\r\n        if 'BENGALI' not in unicodedata.name(char, '') and char not in '০১২৩৪৫৬৭৮৯':\r\n            return \"Invalid input\"\r\n    \r\n    ghos_count = 0\r\n    alpopran_ghos_count = 0\r\n    mohapran_ghos_count = 0\r\n    \r\n    oghos_count = 0\r\n    alpopran_oghos_count = 0\r\n    mohapran_oghos_count = 0\r\n    \r\n    nasikya_count = 0\r\n    \r\n    for char in Z13238K1:\r\n        if char == ' ':\r\n            continue\r\n        if char in ignore_characters:\r\n            continue\r\n        if char in ghos_borno_set:\r\n            ghos_count += 1\r\n            if char in alpopran_ghos_set:\r\n                alpopran_ghos_count += 1\r\n            elif char in mohapran_ghos_set:\r\n                mohapran_ghos_count += 1\r\n        elif char in oghos_borno_set:\r\n            oghos_count += 1\r\n            if char in alpopran_oghos_set:\r\n                alpopran_oghos_count += 1\r\n            elif char in mohapran_oghos_set:\r\n                mohapran_oghos_count += 1\r\n        elif char in nasikya_borno_set:\r\n            nasikya_count += 1\r\n    \r\n    if ghos_count == 0 and oghos_count == 0 and nasikya_count == 0:\r\n        return \"Undefined letters\"\r\n    \r\n    output = \"\"\r\n    if ghos_count \u003E 0:\r\n        output += f'ঘোষ বর্ণ: {ghos_count} (অল্পপ্রাণ: {alpopran_ghos_count} ; মহাপ্রাণ: {mohapran_ghos_count}), '\r\n    if oghos_count \u003E 0:\r\n        output += f'অঘোষ বর্ণ: {oghos_count} (অল্পপ্রাণ: {alpopran_oghos_count} ; মহাপ্রাণ: {mohapran_oghos_count}), '\r\n    if nasikya_count \u003E 0:\r\n        output += f'নাসিক্যবর্ণ: {nasikya_count}, '\r\n    \r\n    return output.rstrip(', ')"
        }
    },
    "Z2K3": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "Bangla consonant type by pronunciation (python)"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1014",
                "Z11K2": "Ụdị mgbochiume Bangla site na mkpọpụta okwu (python)"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1430",
                "Z11K2": "bengalischer Konsonantentyp (Aussprache) in Python"
            }
        ]
    },
    "Z2K4": {
        "Z1K1": "Z32",
        "Z32K1": [
            "Z31"
        ]
    },
    "Z2K5": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11"
        ]
    }
}