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,7 +13,17 @@ lin
|
|||||||
AdjOrd ord = {s= \\agr => ord.s!agr ; position1= ord.position1; isProper = False; isPrep = False};
|
AdjOrd ord = {s= \\agr => ord.s!agr ; position1= ord.position1; isProper = False; isPrep = False};
|
||||||
-- UseComparA : A -> AP ; -- warmer
|
-- UseComparA : A -> AP ; -- warmer
|
||||||
UseComparA a ={s =\\_ => a.s ++ BIND ++ "ho" ++ "kukira"; position1= a.position1; isProper = a.isProper; isPrep = a.isPrep};
|
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 ** {
|
abstract Adjective = Cat ** {
|
||||||
|
|
||||||
fun
|
fun
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
--# -path=.:../prelude:../abstract:../common
|
--# -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 {
|
open (Res=ResCgg), Prelude, (Px=ParamX), Predef in {
|
||||||
|
|
||||||
lincat
|
lincat
|
||||||
@@ -71,7 +71,7 @@ lincat
|
|||||||
Prep = Res.Preposition; -- preposition, or just case e.g. "in"
|
Prep = Res.Preposition; -- preposition, or just case e.g. "in"
|
||||||
N3 = N2 ** {c3 : Res.Agreement =>Str};
|
N3 = N2 ** {c3 : Res.Agreement =>Str};
|
||||||
VV = Res.Verb ** {inf:Str; whenUsed: Res.VVMood}; --inf is the other verb
|
VV = Res.Verb ** {inf:Str; whenUsed: Res.VVMood}; --inf is the other verb
|
||||||
|
AdA = {s:Str; position1:Res.Position1};
|
||||||
linref
|
linref
|
||||||
Cl =\cl -> cl.s ++ Res.mkSubjClitic cl.subjAgr ++ cl.root ++ BIND ++ cl.pres;
|
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;
|
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,
|
RelativeCgg,
|
||||||
ConjunctionCgg,
|
ConjunctionCgg,
|
||||||
PhraseCgg,
|
PhraseCgg,
|
||||||
TextX -[Adv, IAdv],
|
TextX -[Adv, IAdv,AdA],
|
||||||
StructuralCgg,
|
StructuralCgg,
|
||||||
IdiomCgg,
|
IdiomCgg,
|
||||||
TenseX -[Adv,IAdv]
|
TenseX -[Adv,IAdv,AdA]
|
||||||
** {
|
** {
|
||||||
|
|
||||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||||
|
|||||||
@@ -200,17 +200,24 @@ lin
|
|||||||
doesAgree = True
|
doesAgree = True
|
||||||
};--: Det ;
|
};--: Det ;
|
||||||
|
|
||||||
want_VV = {s = "yend"; pres="da"; perf = "zire"; morphs=mkVerbMorphs; isRegular=True; inf=[]; whenUsed = VVBoth};
|
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)
|
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)
|
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_VV used especially in the perfective mood: see dictionary entry shemerera on Pg 501 of Mpairwe
|
||||||
-- must has no passive form
|
-- must has no passive form
|
||||||
must_VV = {s = "shemere"; pres="ra"; perf = "ire"; morphs=mkVerbMorphs; isRegular=False; inf=[]; whenUsed = VVPerf}; --VV
|
must_VV = {s = "shemere"; pres="ra"; perf = "ire"; morphs=mkVerbMorphs; isRegular=False; inf=[]; whenUsed = VVPerf}; --VV
|
||||||
--somebody_NP = {}; --: NP ;
|
--somebody_NP = {}; --: NP ;
|
||||||
--something_NP : NP ;
|
--something_NP : NP ;
|
||||||
--somewhere_Adv : Adv ;
|
--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
|
--1 Structural: Structural Words
|
||||||
--
|
--
|
||||||
|
|||||||
Reference in New Issue
Block a user