Commit 9df742fe by Sartika Aritonang

Upload New File

parent b9fc3349
import re
class DisambiguatorPrefixRule40a(object):
"""Disambiguate Prefix Rule 40a (CC infix rules)
Rule 40a : CinV -> CinV
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 40a (CC infix rules)
Rule 40a : CinV -> CinV
"""
matches = re.match(r'^([bcdfghjklmnpqrstvwxyz])(in[aiueo])(.*)$', word)
if matches:
return matches.group(1) + matches.group(2) + matches.group(3)
class DisambiguatorPrefixRule40b(object):
"""Disambiguate Prefix Rule 40b (CC infix rules)
Rule 40b : CinV -> CV
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 40b (CC infix rules)
Rule 40b : CinV -> CV
"""
matches = re.match(r'^([bcdfghjklmnpqrstvwxyz])in([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