Loading

-ize, -ise

acclimatize -ise
authorize ,-ise
amortization , -ise
agonizing,-ise
aggrandizement -ise

>>> r="(\w+iz\w*)\s*,?\s*\-(is\w*)"
>>> [re.sub(r,"\\1",INPUT),re.sub(r,lambda x:x.group(1).replace("iz","is"),INPUT]

[acclimatize,acclimatise]
[authorize,authorise]
[amortization,amortisation]
[agonizing,agonising]
[aggrandizement,aggrandisement]

I am writing dictionary parser from HTML files lately, for few weeks.

Cheers,
Soe Min

2 comments:

khin oo may said...

​လာ​ဖ​တ္​ေ​န​တံုး​ဘဲ။

​မ​သ​က္​ဇ​င္ said...

​ေ​လ့​လာ​သြား​ပါ​သ​ည္--
​ေ​ကာ​င္း​တ​ယ္--

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