Z13091: Unterschid zwische dr Versione
99of9 (Diskussion | Byträg) Keine Bearbeitungszusammenfassung |
Converting reference to programming language to use an ID |
||
(14 Versione derzwüsche vo öpper anderem isch nid azeigt) | |||
Zyle 10: | Zyle 10: | ||
"Z14K3": { |
"Z14K3": { |
||
"Z1K1": "Z16", |
"Z1K1": "Z16", |
||
"Z16K1": |
"Z16K1": "Z610", |
||
"Z16K2": "def Z13087(Z13087K1):\n\timport re\n\tlemma = Z13087K1.lower()\n\tform = lemma + 'ing'\n\tif re.search(r'[aeiou]c$', lemma):\n\t\tform = lemma + 'k' + 'ing'\n\tif re.search(r'[aeiou][bdfgkmnprstvz]$', lemma) \\\n\t\t\tand not re.search(r'[aeiou][aeiou][bdfgkmnprstvz]$', lemma):\n\t\tform = lemma + lemma[-1] + 'ing'\n\tif lemma.endswith('ie') :\n\t\tform = lemma[:-2] + 'ying' # Very few exceptions like \"boogieing\" \n\tif lemma.endswith('e') \\\n\t\t\tand not re.search(r'[éeioy]e$', lemma) \\\n\t\t\tand not re.search(r'[cg][cg]e$', lemma) \\\n\t\t\tand not re.search(r'[bcdfghjklmnpqrstvwxz][bdfjkmnpqrstvwxz]e$', lemma):\n\t\tform = lemma[:-1]+ 'ing'\n\treturn form" |
|||
⚫ | |||
⚫ | |||
⚫ | |||
"Z16K2": "def Z13087(Z13087K1):\n\timport re\n\tif Z13087K1.endswith('n') \\\n\t\t\tand not Z13087K1.endswith('nn') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]n$', Z13087K1):\n\t\treturn Z13087K1 + 'ning'\n\tif Z13087K1.endswith('t') \\\n\t\t\tand not Z13087K1.endswith('tt') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]t$', Z13087K1):\n\t\treturn Z13087K1 + 'ting'\n\tif Z13087K1.endswith('d') \\\n\t\t\tand not Z13087K1.endswith('dd') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]d$', Z13087K1):\n\t\treturn Z13087K1 + 'ding'\n\tif Z13087K1.endswith('g') \\\n\t\t\tand not Z13087K1.endswith('gg') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]g$', Z13087K1):\n\t\treturn Z13087K1 + 'ging'\n\tif Z13087K1.endswith('p') \\\n\t\t\tand not Z13087K1.endswith('pp') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]p$', Z13087K1):\n\t\treturn Z13087K1 + 'ping'\n\tif Z13087K1.endswith('b') \\\n\t\t\tand not Z13087K1.endswith('bb') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]b$', Z13087K1):\n\t\treturn Z13087K1 + 'bing'\n\treturn Z13087K1 + 'ing'" |
|||
} |
} |
||
}, |
}, |
||
Zyle 37: | Zyle 34: | ||
"Z1K1": "Z12", |
"Z1K1": "Z12", |
||
"Z12K1": [ |
"Z12K1": [ |
||
"Z11" |
"Z11", |
||
{ |
|||
⚫ | |||
⚫ | |||
"Z11K2": "Sometimes double some final consonants, drop final e (generally), mutate final ie to y, and add -ing" |
|||
⚫ | |||
] |
] |
||
} |
} |
Aktuälli Version vu 16:17, 22. Mei 2024
Diese Seite wird ohne JavaScript nur in eingeschränkter Weise angezeigt.