Commit 66debd2e by Sartika Aritonang

Upload New File

parent ec6de5ed
import re
class DisambiguatorPrefixRule32(object):
"""Disambiguate Prefix Rule 32
Rule 32 : pelV -> pe-lV except pelajar -> ajar
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 32
Rule 32 : pelV -> pe-lV except pelajar -> ajar
"""
if word == 'pelajar':
return 'ajar'
matches = re.match(r'^pe(l[aiueo])(.*)$', word)
if matches:
return 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