Commit 67464d7f by Sartika Aritonang

Upload New File

parent 828e162b
import re
class DisambiguatorPrefixRule10(object):
"""Disambiguate Prefix Rule 10
Rule 10 : me{l|r|w|y}V -> me-{l|r|w|y}V
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 10
Rule 10 : me{l|r|w|y}V -> me-{l|r|w|y}V
"""
matches = re.match(r'^me([lrwy])([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