|
From: <fri...@us...> - 2009-05-25 17:17:32
|
Revision: 9765
http://zaf.svn.sourceforge.net/zaf/?rev=9765&view=rev
Author: friedelwolff
Date: 2009-05-25 17:17:20 +0000 (Mon, 25 May 2009)
Log Message:
-----------
Support for stipping pre-prefixes of nouns following demonstrative pronouns such as 'lo muntu' or 'laba bantu', or for direct forms of address
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 17:02:16 UTC (rev 9764)
+++ trunk/dict/zu/hunspell/zu_aff.py 2009-05-25 17:17:20 UTC (rev 9765)
@@ -660,6 +660,13 @@
noun_rules(noun, affix=prefix+"wu", morphology="RELATIVE/QUALIFICATIVE+IDENTIFICATIVE_COPULATIVE", continuation_classes=[simple_subjects])
#noun_rules(noun, affix="wu", needaffix=True, morphology="NEG_IDENTIFICATIVE_COPULATIVE", continuation_classes=[simple_subjects_neg])
+ # lost pre-prefix due to demonstratives or direct address to a person/thing
+ # for example, 'lo muntu', 'laba bantu', 'hawu bantu', inkosi -> nkosi
+ #TODO: better morphological description
+ noun.add_rule(affix="", strip="a", morphology="DEMONSTRATED/ADDRESSED")
+ noun.add_rule(affix="", strip="i", morphology="DEMONSTRATED/ADDRESSED")
+ noun.add_rule(affix="", strip="u", morphology="DEMONSTRATED/ADDRESSED")
+
# comparative particle words
noun_rules(noun, affix="njenga", morphology="COMPARATIVE_PARTICLE")
noun_rules(noun, affix="nganga", needaffix=True, morphology="COMPARATIVE_PARTICLE", continuation_classes=[simple_subjects])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|