सामग्रीमा जानुहोस्

Z11591: संशोधनहरू बीचको भिन्नता

Wikifunctionsबाट
Converting reference to programming language to use an ID
better dealing with adjective ending in -et
पङ्क्ति ११: पङ्क्ति ११:
"Z1K1": "Z16",
"Z1K1": "Z16",
"Z16K1": "Z610",
"Z16K1": "Z610",
"Z16K2": "def Z11590(Z11590K1):\n\tif(Z11590K1.endswith('f')):\n\t return Z11590K1[:-1] + 've';\n\tif(Z11590K1.endswith('teur')):\n\t\treturn Z11590K1[:-4] + 'trice';\n\tif(Z11590K1.endswith('er')):\n\t\treturn Z11590K1[:-2] + 'ère';\n\tif(Z11590K1.endswith('eux') or Z11590K1.endswith('eur')):\n\t return Z11590K1[:-1] + 'se';\n\tif(Z11590K1.endswith('et')):\n\t\treturn Z11590K1[:-2] + 'ète';\n\tif(Z11590K1.endswith('e')):\n\t\treturn Z11590K1;\n\tif(Z11590K1.endswith('gu')):\n\t\treturn Z11590K1 + 'ë';\n\tif(Z11590K1.endswith('el') or Z11590K1.endswith('en') or Z11590K1.endswith('on') or Z11590K1.endswith('eil') or Z11590K1.endswith('ul')):\n\t\treturn Z11590K1 + Z11590K1[-1] + 'e';\n\telse:\n\t return Z11590K1 + 'e';"
"Z16K2": "def Z11590(Z11590K1):\n\tif(Z11590K1.endswith('f')):\n\t return Z11590K1[:-1] + 've';\n\tif(Z11590K1.endswith('teur')):\n\t\treturn Z11590K1[:-4] + 'trice';\n\tif(Z11590K1.endswith('er')):\n\t\treturn Z11590K1[:-2] + 'ère';\n\tif(Z11590K1.endswith('eux') or Z11590K1.endswith('eur')):\n\t return Z11590K1[:-1] + 'se';\n\tif(Z11590K1.endswith('et')):\n\t\tif (Z11590K1.endswith( ('inquiet', 'complet', 'cret'))):\n\t\t\treturn Z11590K1[:-2] + 'ète';\n\t\telse:\n\t\t\treturn Z11590K1 + 'te';\n\tif(Z11590K1.endswith('e')):\n\t\treturn Z11590K1;\n\tif(Z11590K1.endswith('gu')):\n\t\treturn Z11590K1 + 'ë';\n\tif(Z11590K1.endswith('el') or Z11590K1.endswith('en') or Z11590K1.endswith('on') or Z11590K1.endswith('eil') or Z11590K1.endswith('ul')):\n\t\treturn Z11590K1 + Z11590K1[-1] + 'e';\n\telse:\n\t return Z11590K1 + 'e';"
}
}
},
},

१३:०५, १ जुन २०२४ जस्तै गरी पुनरावलोकन

This page displays in a limited way without JavaScript.