Commit 19d8bab9 by Sartika Aritonang

Upload New File

parent 67464d7f
import re
class DisambiguatorPrefixRule11(object):
"""Disambiguate Prefix Rule 11
Rule 11 : mem{b|f|v} -> mem-{b|f|v}
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 11
Rule 11 : mem{b|f|v} -> mem-{b|f|v}
"""
matches = re.match(r'^mem([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