forked from GitHub/gf-rgl
=Implemented ComparA AdAP which necesitated the modification of the ADA type. Deleted the CatCggOld.gf
This commit is contained in:
@@ -13,6 +13,16 @@ lin
|
||||
AdjOrd ord = {s= \\agr => ord.s!agr ; position1= ord.position1; isProper = False; isPrep = False};
|
||||
-- UseComparA : A -> AP ; -- warmer
|
||||
UseComparA a ={s =\\_ => a.s ++ BIND ++ "ho" ++ "kukira"; position1= a.position1; isProper = a.isProper; isPrep = a.isPrep};
|
||||
|
||||
-- An adjectival phrase can be modified by an *adadjective*, such as "very".
|
||||
{-NOTE: AdA is an adjective modifying adverb-}
|
||||
--AdAP : AdA -> AP -> AP ; -- very warm
|
||||
|
||||
AdAP ada ap = case ada.position1 of {
|
||||
Post => {s = \\agr => ap.s ! agr ++ ada.s; position1= ap.position1; isProper = ap.isProper; isPrep = ap.isPrep};
|
||||
Pre => {s = \\agr => ada.s ++ ap.s!agr ; position1= ap.position1; isProper = ap.isProper; isPrep = ap.isPrep}
|
||||
};
|
||||
|
||||
{-
|
||||
abstract Adjective = Cat ** {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--# -path=.:../prelude:../abstract:../common
|
||||
|
||||
concrete CatCgg of Cat = CommonX -[Adv,IAdv]**
|
||||
concrete CatCgg of Cat = CommonX -[Adv,IAdv, AdA]**
|
||||
open (Res=ResCgg), Prelude, (Px=ParamX), Predef in {
|
||||
|
||||
lincat
|
||||
@@ -71,7 +71,7 @@ lincat
|
||||
Prep = Res.Preposition; -- preposition, or just case e.g. "in"
|
||||
N3 = N2 ** {c3 : Res.Agreement =>Str};
|
||||
VV = Res.Verb ** {inf:Str; whenUsed: Res.VVMood}; --inf is the other verb
|
||||
|
||||
AdA = {s:Str; position1:Res.Position1};
|
||||
linref
|
||||
Cl =\cl -> cl.s ++ Res.mkSubjClitic cl.subjAgr ++ cl.root ++ BIND ++ cl.pres;
|
||||
QCl =\qcl -> qcl.s ++ qcl.posibleSubAgr ! (Res.mkAgreement Res.MU_BA Res.P3 Res.Sg) ++ qcl.root ++ BIND ++ qcl.pres;
|
||||
|
||||
@@ -11,10 +11,10 @@ concrete GrammarCgg of Grammar =
|
||||
RelativeCgg,
|
||||
ConjunctionCgg,
|
||||
PhraseCgg,
|
||||
TextX -[Adv, IAdv],
|
||||
TextX -[Adv, IAdv,AdA],
|
||||
StructuralCgg,
|
||||
IdiomCgg,
|
||||
TenseX -[Adv,IAdv]
|
||||
TenseX -[Adv,IAdv,AdA]
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
@@ -200,17 +200,24 @@ lin
|
||||
doesAgree = True
|
||||
};--: Det ;
|
||||
|
||||
want_VV = {s = "yend"; pres="da"; perf = "zire"; morphs=mkVerbMorphs; isRegular=True; inf=[]; whenUsed = VVBoth};
|
||||
can8know_VV = {s = "baas"; pres="a"; perf = "ize"; morphs=mkVerbMorphs; isRegular=True; inf=[]; whenUsed = VVBoth};--: VV ; -- can (capacity)
|
||||
can_VV = {s = "baas"; pres="a"; perf = "ize"; morphs=mkVerbMorphs; isRegular=True; inf=[]; whenUsed = VVBoth};--: VV ; -- can (possibility)
|
||||
-- must_VV used especially in the perfective mood: see dictionary entry shemerera on Pg 501 of Mpairwe
|
||||
-- must has no passive form
|
||||
must_VV = {s = "shemere"; pres="ra"; perf = "ire"; morphs=mkVerbMorphs; isRegular=False; inf=[]; whenUsed = VVPerf}; --VV
|
||||
--somebody_NP = {}; --: NP ;
|
||||
--something_NP : NP ;
|
||||
--somewhere_Adv : Adv ;
|
||||
want_VV = {s = "yend"; pres="da"; perf = "zire"; morphs=mkVerbMorphs; isRegular=True; inf=[]; whenUsed = VVBoth};
|
||||
can8know_VV = {s = "baas"; pres="a"; perf = "ize"; morphs=mkVerbMorphs; isRegular=True; inf=[]; whenUsed = VVBoth};--: VV ; -- can (capacity)
|
||||
can_VV = {s = "baas"; pres="a"; perf = "ize"; morphs=mkVerbMorphs; isRegular=True; inf=[]; whenUsed = VVBoth};--: VV ; -- can (possibility)
|
||||
-- must_VV used especially in the perfective mood: see dictionary entry shemerera on Pg 501 of Mpairwe
|
||||
-- must has no passive form
|
||||
must_VV = {s = "shemere"; pres="ra"; perf = "ire"; morphs=mkVerbMorphs; isRegular=False; inf=[]; whenUsed = VVPerf}; --VV
|
||||
--somebody_NP = {}; --: NP ;
|
||||
--something_NP : NP ;
|
||||
--somewhere_Adv : Adv ;
|
||||
|
||||
that_Subj = ss "that" ;
|
||||
that_Subj = ss "ngu" ;
|
||||
|
||||
--Adjective modifying Adverbs
|
||||
almost_AdA = {s="haihi"; position1=Pre}; --: AdA ;
|
||||
--quite_Adv ss "kimwe"; --: AdA ; used in the pr
|
||||
so_AdA = {s="munônga"; position1=Post};--: AdA ;
|
||||
too_AdA = {s="munônga"; position1=Post}; --: AdA ;
|
||||
very_AdA = {s="munônga"; position1=Post}; --: AdA ;
|
||||
{-
|
||||
--1 Structural: Structural Words
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user