mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-28 09:28:54 -06:00
=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};
|
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 ** {
|
||||||
|
|
||||||
|
|||||||
@@ -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 ;
|
||||||
|
|||||||
@@ -210,7 +210,14 @@ lin
|
|||||||
--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