Commit 6a037190 by Sartika Aritonang

Upload New File

parent be2304df
import re
class DisambiguatorPrefixRule28a(object):
"""Disambiguate Prefix Rule 28a
Rule 28a : pen{V} -> pe-n{V}
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 28a
Rule 28a : pen{V} -> pe-n{V}
"""
matches = re.match(r'^pen([aiueo])(.*)$', word)
if matches:
return 'n' + matches.group(1) + matches.group(2)
class DisambiguatorPrefixRule28b(object):
"""Disambiguate Prefix Rule 28b
Rule 28b : pen{V} -> pe-t{V}
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 28b
Rule 28b : pen{V} -> pe-t{V}
"""
matches = re.match(r'^pen([aiueo])(.*)$', word)
if matches:
return 't' + matches.group(1) + matches.group(2)
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