|
From: <fri...@us...> - 2008-12-26 10:33:15
|
Revision: 9645
http://zaf.svn.sourceforge.net/zaf/?rev=9645&view=rev
Author: friedelwolff
Date: 2008-12-26 10:33:08 +0000 (Fri, 26 Dec 2008)
Log Message:
-----------
Only apply verb rules specially if it is necessary (if the prefix ends on a vowel). This ensures proper handling of class 1 object morphemes with vowel verbs, such as 'ngimosa'.
Modified Paths:
--------------
trunk/dict/zu/hunspell/zu_aff.py
Modified: trunk/dict/zu/hunspell/zu_aff.py
===================================================================
--- trunk/dict/zu/hunspell/zu_aff.py 2008-12-26 10:31:29 UTC (rev 9644)
+++ trunk/dict/zu/hunspell/zu_aff.py 2008-12-26 10:33:08 UTC (rev 9645)
@@ -155,6 +155,11 @@
group = AffixGroup(flag="tmp", suffix=False)
else:
prefix = kwargs.pop('affix')
+ #The verb rules are only really necessary if the prefix ends on a vowel
+ if not prefix[-1] in "aeiou":
+ group.add_rule(affix=prefix, **kwargs)
+ return group.rules
+
#normal verb starting on consonant:
group.add_rule(affix=prefix, condition="[^aeiou]", **kwargs)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|