mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-28 01:18:57 -06:00
=Implemented AjOrd in Adjective which resulted in changing the type of AP and leading to use of default Agrement AgP3 Sg KI_BI. Othrwise context is required
This commit is contained in:
@@ -7,6 +7,10 @@ lin
|
|||||||
|
|
||||||
PositA a = a;
|
PositA a = a;
|
||||||
|
|
||||||
|
-- The superlative use is covered in $Ord$.
|
||||||
|
|
||||||
|
--AdjOrd : Ord -> AP ; -- warmest
|
||||||
|
AdjOrd ord = {s= ord.s; position1= ord.position1};
|
||||||
{-
|
{-
|
||||||
abstract Adjective = Cat ** {
|
abstract Adjective = Cat ** {
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ lincat
|
|||||||
Det = Res.Determiner ; -- determiner phrase e.g. "those seven"
|
Det = Res.Determiner ; -- determiner phrase e.g. "those seven"
|
||||||
Quant = {s : Res.Pronoun; s2 :Res.Agreement => Str; doesAgree : Bool; isPron: Bool} ; -- quantifier ('nucleus' of Det) e.g. "this/these"
|
Quant = {s : Res.Pronoun; s2 :Res.Agreement => Str; doesAgree : Bool; isPron: Bool} ; -- quantifier ('nucleus' of Det) e.g. "this/these"
|
||||||
Num = Res.Numer ; -- number determining element e.g. "seven"
|
Num = Res.Numer ; -- number determining element e.g. "seven"
|
||||||
AP = {s : Str ; position1 : Res.Position1; isProper : Bool; isPrep: Bool};--Res.AdjectivalPhrase;
|
AP = {s :Res.Agreement=> Str ; position1 : Res.Position1; isProper : Bool; isPrep: Bool};--Res.AdjectivalPhrase;
|
||||||
A = Res.Adjective;
|
A = Res.Adjective;
|
||||||
Comp = Res.Comp; -- complement of copula, such as AP e.g. "very warm"
|
Comp = Res.Comp; -- complement of copula, such as AP e.g. "very warm"
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ lin
|
|||||||
}; --its not generating any sentence
|
}; --its not generating any sentence
|
||||||
|
|
||||||
-- CompAP : AP -> Comp; -- (be) small
|
-- CompAP : AP -> Comp; -- (be) small
|
||||||
CompAP ap = {s=ap.s};
|
CompAP ap = {s=ap.s! AgP3 Sg KI_BI}; -- used a hack.
|
||||||
|
|
||||||
-- CompNP : NP -> Comp ; -- (be) the man
|
-- CompNP : NP -> Comp ; -- (be) the man
|
||||||
CompNP np = {s= np.s ! Acc}; --{s =[] ; post =np.s; isPre = False; isProper = Bool; isPrep: Bool};
|
CompNP np = {s= np.s ! Acc}; --{s =[] ; post =np.s; isPre = False; isProper = Bool; isPrep: Bool};
|
||||||
@@ -309,10 +309,10 @@ lin
|
|||||||
pres =va.pres;
|
pres =va.pres;
|
||||||
perf=va.perf;
|
perf=va.perf;
|
||||||
morphs = va.morphs;
|
morphs = va.morphs;
|
||||||
comp=ap.s ;
|
comp=[] ;
|
||||||
comp2 = [];
|
comp2 = [];
|
||||||
ap =[];
|
ap = ap.s! AgP3 Sg KI_BI;
|
||||||
isCompApStem = False;
|
isCompApStem = True;
|
||||||
agr = AgrNo;
|
agr = AgrNo;
|
||||||
isRegular = va.isRegular;
|
isRegular = va.isRegular;
|
||||||
adv =[];
|
adv =[];
|
||||||
|
|||||||
Reference in New Issue
Block a user