Commit 763a7256 by Sartika Aritonang

Upload New File

parent 853c6f65
import re
class DisambiguatorPrefixRule6a(object):
"""Disambiguate Prefix Rule 6a
Rule 6a : terV -> ter-V
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 6a
Rule 6a : terV -> ter-V
"""
matches = re.match(r'^ter([aiueo].*)$', word)
if matches:
return matches.group(1)
class DisambiguatorPrefixRule6b(object):
"""Disambiguate Prefix Rule 6b
Rule 6b : terV -> te-rV
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 6b
Rule 6b : terV -> te-rV
"""
matches = re.match(r'^ter([aiueo].*)$', word)
if matches:
return 'r' + matches.group(1)
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