|
From: <fri...@us...> - 2009-05-25 17:02:22
|
Revision: 9764
http://zaf.svn.sourceforge.net/zaf/?rev=9764&view=rev
Author: friedelwolff
Date: 2009-05-25 17:02:16 +0000 (Mon, 25 May 2009)
Log Message:
-----------
Don't allow zero prefixes to be added to verbs to mark them as imperatives. This solves a few problems (perhaps temporarily) with passive verbs being allowed unaltered as imperatives.
Modified Paths:
--------------
trunk/dict/zu/hunspell/zu_aff.py
Modified: trunk/dict/zu/hunspell/zu_aff.py
===================================================================
--- trunk/dict/zu/hunspell/zu_aff.py 2009-05-25 16:54:21 UTC (rev 9763)
+++ trunk/dict/zu/hunspell/zu_aff.py 2009-05-25 17:02:16 UTC (rev 9764)
@@ -556,7 +556,14 @@
#infinitive + -sa- progressive aspectual morpheme
verb_rules(infixes, affix="ukusa"+morpheme, morphology="INFINITIVE_PROG_with_OBJ", continuation_classes=[locative_e_ini, noun])
- infixes.add_rule(affix="", condition="[^aeiou]", morphology="IMPERATIVE", continuation_classes=[imperative])
+ # TODO: check for a better way to do imperatives. Currently we demand the
+ # imperative suffix to allow the zero prefix, so that we can flag passives
+ # with needaffix without this zero rule applying.
+ # So currently we have thanda/needaffix in the dictionary, and this rule
+ # without circumfix=True and needaffix=True causes an unchanged passive to
+ # be seen as a valid imperative.
+ infixes.add_rule(affix="", condition="[^aeiou]", circumfix=True, needaffix=True, morphology="IMPERATIVE", continuation_classes=[imperative])
+ # This could possibly still form incorrect passive imperatives:
infixes.add_rule(affix="y", condition="[aeiou]", morphology="IMPERATIVE", continuation_classes=[imperative])
past_indicative.add_rule(affix="e", strip="a", morphology="RECENT_PAST_IND_SHORT")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|