forked from GitHub/gf-rgl
=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;
|
||||
|
||||
-- The superlative use is covered in $Ord$.
|
||||
|
||||
--AdjOrd : Ord -> AP ; -- warmest
|
||||
AdjOrd ord = {s= ord.s; position1= ord.position1};
|
||||
{-
|
||||
abstract Adjective = Cat ** {
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ lincat
|
||||
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"
|
||||
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;
|
||||
Comp = Res.Comp; -- complement of copula, such as AP e.g. "very warm"
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ lin
|
||||
}; --its not generating any sentence
|
||||
|
||||
-- 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 = {s= np.s ! Acc}; --{s =[] ; post =np.s; isPre = False; isProper = Bool; isPrep: Bool};
|
||||
@@ -309,10 +309,10 @@ lin
|
||||
pres =va.pres;
|
||||
perf=va.perf;
|
||||
morphs = va.morphs;
|
||||
comp=ap.s ;
|
||||
comp=[] ;
|
||||
comp2 = [];
|
||||
ap =[];
|
||||
isCompApStem = False;
|
||||
ap = ap.s! AgP3 Sg KI_BI;
|
||||
isCompApStem = True;
|
||||
agr = AgrNo;
|
||||
isRegular = va.isRegular;
|
||||
adv =[];
|
||||
|
||||
Reference in New Issue
Block a user