Loading

Regular Verb မွ Simple Past ေျပာင္းပံုေျပာင္းနည္း (Python)

Original Article here.
http://web2.uvcs.uvic.ca/elc/StudyZone/330/grammar/pasted.htm (thx to Ma TTA)

rule 1
live, date ​တို့​လို e ​နဲ့​ဆံုး​တာ​ေ​တြ​ကို "d" ​ပဲ​ေ​ပါ​င္း​ေ​ပး lived, dated
>>> if word[-1]=="e":word+"d"

rule 2
try, cry ​တို့​လို y ​နဲ့​ဆံုး​တာ​ေ​တြ​ကို ied ​ေျ​ပာ​င္း tried, cried
>>> if word[-1]=="y":word[:-1]+"ied"

rule 3 (​နဲ​နဲ​ရွု​ပ္​တ​ယ္)
tap, commit ​တို့​လို့​စာ​လံုး​ေ​တြ​ကို ​က်​ေ​တာ့ ​ေ​နာ​က္​ဆံုး​စာ​လံုး​ကို ၂​လံုး​လု​ပ္
​ေ​နာ​က္​ဆံုး​က​ေ​န ​သံုး​လံုး​မွာ ​ဗ်​ည္း၊ ​သ​ရ၊ ​ဗ်​ည္း​ဆိုျ​ပီး ​သြား​ေ​န​ရ​င္ rule 3 ​နဲ့ ​ညိ​တ​ယ္​လို့ ​ယူ​ဆ​ပါ​တ​ယ္။
>>> if word[-3] not in "aeiuo" and word[-2] in "aeiuo" and word[-1] not in "aeiuowy": word+word[-1]+"ed"

rule 4
​အ​ထ​က္​က​ဟာ​ေ​တြ ​နဲ့​မ​ညိ​တာ​ေ​တြ ​အား​လံုး​ကို ed ​ေ​ပါ​င္း​ေ​ပး
>>> word+"ed"

cheers,
Soe Min

No comments:

က်ေနာ္ဖတ္ေသာ အျခား ဘေလာ့ / ဆိုဒ္မ်ား