mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-06-27 20:06:29 -06:00
(Som) Better handling of AP and NP complements, remove redundant fields
This commit is contained in:
+10
-14
@@ -79,7 +79,7 @@ lin
|
||||
-- : V2A -> AP -> VPSlash ; -- paint (it) red
|
||||
-- TODO: is "red" plural in "paint them red"?
|
||||
SlashV2A v2a ap = useVc v2a ** {
|
||||
comp = \\_ => (CompAP ap).comp ! Sg3 Masc
|
||||
aComp = \\_ => (CompAP ap).aComp ! Sg3 Masc
|
||||
} ;
|
||||
|
||||
-- : VPSlash -> NP -> VP
|
||||
@@ -133,36 +133,32 @@ lin
|
||||
|
||||
-- Adjectival phrases, noun phrases, and adverbs can be used.
|
||||
|
||||
-- the house is big
|
||||
-- the houses are big
|
||||
-- I am [a house that sleeps here]
|
||||
-- we are [houses that sleep here]
|
||||
|
||||
-- : AP -> Comp ;
|
||||
CompAP ap = {
|
||||
comp = \\a => <[], ap.s ! AF (getNum a) Abs> ;
|
||||
npcomp = [] ;
|
||||
aComp = \\a => ap.s ! AF (getNum a) Abs ;
|
||||
nComp = [] ;
|
||||
stm = Waa Copula ;
|
||||
} ;
|
||||
|
||||
-- : CN -> Comp ;
|
||||
CompCN cn = {
|
||||
comp = \\a => <[], []> ;
|
||||
npcomp = cn2str Sg Abs cn ;
|
||||
-- I am [a house that sleeps here] vs. we are [houses that sleep here]
|
||||
aComp = \\a => cn2str (getNum a) Abs cn ;
|
||||
nComp = [] ;
|
||||
stm = Waa NoCopula ;
|
||||
} ;
|
||||
|
||||
-- NP -> Comp ;
|
||||
CompNP np = {
|
||||
comp = \\a => <[], []> ;
|
||||
npcomp = np.s ! Abs ;
|
||||
aComp = \\a => [] ;
|
||||
nComp = np.s ! Abs ;
|
||||
stm = Waa NoCopula ;
|
||||
} ;
|
||||
|
||||
-- : Adv -> Comp ;
|
||||
CompAdv adv = {
|
||||
comp = \\a => <[], linAdv adv> ;
|
||||
npcomp = [] ;
|
||||
aComp = \\a => linAdv adv ; -- TODO check placement
|
||||
nComp = [] ;
|
||||
stm = Waa Copula ;
|
||||
} ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user