Commit 9c34e17c by Sartika Aritonang

Upload New File

parent 8df9fb94
import re
class DisambiguatorPrefixRule37a(object):
"""Disambiguate Prefix Rule 37a (CC infix rules)
Rule 37a : CerV -> CerV
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 37a (CC infix rules)
Rule 37a : CerV -> CerV
"""
matches = re.match(r'^([bcdfghjklmnpqrstvwxyz])(er[aiueo])(.*)$', word)
if matches:
return matches.group(1) + matches.group(2) + matches.group(3)
class DisambiguatorPrefixRule37b(object):
"""Disambiguate Prefix Rule 37b (CC infix rules)
Rule 37b : CerV -> CV
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 37b (CC infix rules)
Rule 37b : CerV -> CV
"""
matches = re.match(r'^([bcdfghjklmnpqrstvwxyz])er([aiueo])(.*)$', word)
if matches:
return matches.group(1) + matches.group(2) + matches.group(3)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment