mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
(May) AdjCN + change lincat of A*
This commit is contained in:
@@ -158,8 +158,9 @@ concrete NounMay of Noun = CatMay ** open ResMay, Prelude in {
|
||||
-- : N3 -> N2 ; -- distance (to Paris)
|
||||
-- Use3N3 n3 = lin N2 n3 ;
|
||||
-- : AP -> CN -> CN
|
||||
-- AdjCN ap cn = cn ** {
|
||||
-- } ;
|
||||
AdjCN ap cn = cn ** {
|
||||
s = \\nf => cn.s ! nf ++ ap.s
|
||||
} ;
|
||||
|
||||
-- : CN -> RS -> CN ;
|
||||
RelCN cn rs = cn ** {
|
||||
|
||||
@@ -145,10 +145,10 @@ oper
|
||||
--------------------------------------------------------------------------------
|
||||
-- Adjectives
|
||||
|
||||
Adjective : Type = Verb ; -- TODO check if meaningful
|
||||
Adjective : Type = SS ;
|
||||
Adjective2 : Type = Adjective ;
|
||||
|
||||
mkAdj : Str -> Adjective = \str -> {s = \\_ => str} ;
|
||||
mkAdj : Str -> Adjective = \str -> {s = str} ;
|
||||
|
||||
AdjPhrase : Type = Adjective ; -- ** {compar : Str} ;
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
@@ -112,7 +112,7 @@ lin
|
||||
-- Adjectival phrases, noun phrases, and adverbs can be used.
|
||||
|
||||
-- : AP -> Comp ;
|
||||
CompAP ap = useV ap ;
|
||||
CompAP ap = useComp ap.s ;
|
||||
|
||||
-- : CN -> Comp ;
|
||||
CompCN cn = useComp (cn.s ! NF Sg Bare) ;
|
||||
|
||||
Reference in New Issue
Block a user