mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
(Ara) Add new mkN constructor, for forcing a number in adjective
This commit is contained in:
@@ -80,6 +80,7 @@ resource ParadigmsAra = open
|
|||||||
mkN : N -> N -> N ; -- Compound noun with singular genitive attribute, but inflects in state.
|
mkN : N -> N -> N ; -- Compound noun with singular genitive attribute, but inflects in state.
|
||||||
mkN : Number -> N -> N -> N ; -- Compound noun with genitive attribute, but inflects in state. Attribute's number specified by 1st arg.
|
mkN : Number -> N -> N -> N ; -- Compound noun with genitive attribute, but inflects in state. Attribute's number specified by 1st arg.
|
||||||
mkN : N -> A -> N ; -- Force adjective modifier into the noun. Adjective inflects in state, case and number.
|
mkN : N -> A -> N ; -- Force adjective modifier into the noun. Adjective inflects in state, case and number.
|
||||||
|
mkN : Number -> N -> A -> N ; -- Force adjective modifier into the noun. Adjective inflects in state and case. Adjective's number specified by 1st arg.
|
||||||
mkN : N -> AP -> N ; -- Force AP modifier into the noun. AP inflects in state, case and number.
|
mkN : N -> AP -> N ; -- Force AP modifier into the noun. AP inflects in state, case and number.
|
||||||
--- mkN : (root,sgPatt : Str) -> Gender -> Species -> N -- sound feminine plural
|
--- mkN : (root,sgPatt : Str) -> Gender -> Species -> N -- sound feminine plural
|
||||||
--- = sdfN ;
|
--- = sdfN ;
|
||||||
@@ -368,6 +369,8 @@ resource ParadigmsAra = open
|
|||||||
= attrN ;
|
= attrN ;
|
||||||
mkN : N -> A -> N
|
mkN : N -> A -> N
|
||||||
= mkAN ;
|
= mkAN ;
|
||||||
|
mkN : Number -> N -> A -> N
|
||||||
|
= \num,n,a -> mkAPNumN n (A.PositA a) num ;
|
||||||
mkN : N -> AP -> N
|
mkN : N -> AP -> N
|
||||||
= mkAPN
|
= mkAPN
|
||||||
} ;
|
} ;
|
||||||
@@ -385,6 +388,11 @@ resource ParadigmsAra = open
|
|||||||
++ ap.s ! n.h ! n.g ! num ! s ! c
|
++ ap.s ! n.h ! n.g ! num ! s ! c
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
mkAPNumN : N -> AP -> Number -> N = \n,ap,forceNum -> n ** {
|
||||||
|
s2 = \\num,s,c => n.s2 ! num ! s ! c
|
||||||
|
++ ap.s ! Hum ! n.g ! forceNum ! s ! c
|
||||||
|
} ; -- Hum because we want to override the smartness in number agreement
|
||||||
|
|
||||||
dualN : N -> N = \n -> n ** {isDual=True} ;
|
dualN : N -> N = \n -> n ** {isDual=True} ;
|
||||||
|
|
||||||
proDrop : NP -> NP ; -- Force a NP to lose its string, only contributing with its agreement.
|
proDrop : NP -> NP ; -- Force a NP to lose its string, only contributing with its agreement.
|
||||||
|
|||||||
Reference in New Issue
Block a user