Commit a9bd2374 by Sartika Aritonang

Upload New File

parent dba8ddce
import re
class DisambiguatorPrefixRule20(object):
"""Disambiguate Prefix Rule 20
Rule 20 : pe{w|y}V -> pe-{w|y}V
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 20
Rule 20 : pe{w|y}V -> pe-{w|y}V
"""
matches = re.match(r'^pe([wy])([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