|
From: <fri...@us...> - 2009-02-26 08:31:14
|
Revision: 9676
http://zaf.svn.sourceforge.net/zaf/?rev=9676&view=rev
Author: friedelwolff
Date: 2009-02-26 08:31:08 +0000 (Thu, 26 Feb 2009)
Log Message:
-----------
Handle locatives for infinitive verbs more completely. This support can still be extended for infinitives with object morphemes or progressive particles, but these don't seem to actually occur much, so leaving it for now.
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-02-26 08:09:35 UTC (rev 9675)
+++ trunk/dict/zu/hunspell/zu_aff.py 2009-02-26 08:31:08 UTC (rev 9676)
@@ -512,7 +512,7 @@
verb_rules(infixes, affix="sayoku", needaffix=True, morphology="PROG_DISTANT_FUTURE_IND_LONG", continuation_classes=[simple_subjects])
#infinitive
- verb_rules(infixes, affix="uku", morphology="INFINITIVE", continuation_classes=[locative_e_ini, noun])
+ verb_rules(infixes, affix="uku", morphology="INFINITIVE", continuation_classes=[noun])
# Infinitive forms are by defintion also class 15 nouns, and should
# therefore be handled as nouns. Therefore the noun rules are added as a
# continuation class. This allows us to recognise forms such as
@@ -533,6 +533,8 @@
# This can probably be solved by applying some or all of the noun rules
# directly to the verb stem along with the infinitive prefix.
+ # locatives with infinitives are done below with the other locatives.
+
#infinitive + -sa- progressive aspectual morpheme
verb_rules(infixes, affix="ukusa", morphology="INFINITIVE_PROG", continuation_classes=[locative_e_ini])
#infinitive, negative
@@ -597,6 +599,7 @@
question.add_rule(affix="elani", strip="a", condition="a", morphology="Q_PRESENT_why")
question.add_rule(affix="eleni", strip="a", condition="a", morphology="Q_PAST_why")
+ ### Locatives ###
for prefix, morphology in [
("e", "LOC_pfx"),
("nase", "ASSOCIATIVE_COPULATIVE+LOC_pfx"),
@@ -605,14 +608,17 @@
]:
locative_rules(locative_e, affix=prefix, morphology=morphology)
locative_rules(locative_e_ini, affix=prefix, morphology=morphology, circumfix=True, continuation_classes=[locative_sfx_ini])
+ verb_rules(infixes, affix=prefix+"ku", morphology=morphology+"+INFINITIVE", circumfix=True, continuation_classes=[locative_sfx_ini])
for prefix in [morpheme + "se" for morpheme in subject_morphemes]:
locative_rules(locative_e, affix=prefix, morphology="COPULATIVE+LOC_pfx")
locative_rules(locative_e_ini, affix=prefix, morphology="COPULATIVE+LOC_pfx", circumfix=True, continuation_classes=[locative_sfx_ini])
+ verb_rules(infixes, affix=prefix+"ku", morphology="COPULATIVE+LOC_pfx+INFINITIVE", circumfix=True, continuation_classes=[locative_sfx_ini])
for prefix in [morpheme + "se" for morpheme in possesive_morphemes]:
locative_rules(locative_e, affix=prefix, morphology="POSSESSIVE+LOC_pfx")
locative_rules(locative_e_ini, affix=prefix, morphology="POSSESSIVE+LOC_pfx", circumfix=True, continuation_classes=[locative_sfx_ini])
+ verb_rules(infixes, affix=prefix+"ku", morphology="POSSESSIVE+LOC_pfx+INFINITIVE", circumfix=True, continuation_classes=[locative_sfx_ini])
locative_o_ini.add_rule(affix="o", strip="u", morphology="LOC_pfx", circumfix=True, continuation_classes=[locative_sfx_ini])
locative_ku.add_rule(affix="ku", strip="a", morphology="LOC_pfx")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|