Commit 16e5562a by Sartika Aritonang

Upload New File

parent 15142ea6
import re
class DisambiguatorPrefixRule1a(object):
"""Disambiguate Prefix Rule 1a
Rule 1a : berV -> ber-V
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 1a
Rule 1a : berV -> ber-V
"""
matches = re.match(r'^ber([aiueo].*)$', word)
if matches:
return matches.group(1)
class DisambiguatorPrefixRule1b(object):
"""Disambiguate Prefix Rule 1b
Rule 1b : berV -> be-rV
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 1b
Rule 1b : berV -> be-rV
"""
matches = re.match(r'^ber([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