Commit 3da7f6a0 by Sartika Aritonang

Upload New File

parent cd06a95a
import re
class DisambiguatorPrefixRule14(object):
"""Disambiguate Prefix Rule 14
Rule 14 modified by Andy Librian : men{c|d|j|s|t|z} -> men-{c|d|j|s|t|z}
in order to stem mentaati
Rule 14 modified by ECS: men{c|d|j|s|z} -> men-{c|d|j|s|z}
in order to stem mensyaratkan, mensyukuri
Original CS Rule no 14 was : men{c|d|j|z} -> men-{c|d|j|z}
"""
def disambiguate(self, word):
"""Disambiguate Prefix Rule 14
Rule 14 modified by Andy Librian : men{c|d|j|s|t|z} -> men-{c|d|j|s|t|z}
in order to stem mentaati
Rule 14 modified by ECS: men{c|d|j|s|z} -> men-{c|d|j|s|z}
in order to stem mensyaratkan, mensyukuri
Original CS Rule no 14 was : men{c|d|j|z} -> men-{c|d|j|z}
"""
matches = re.match(r'^men([cdjstz])(.*)$', 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