Commit a46d2946 by Sartika Aritonang

Upload New File

parent 41f09e91
import re
class DisambiguatorPrefixRule25(object):
"""Disambiguate Prefix Rule 25
Rule 25 : pem{b|f|v} -> pem-{b|f|v}
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 25
Rule 25 : pem{b|f|v} -> pem-{b|f|v}
"""
matches = re.match(r'^pem([bfv])(.*)$', 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