mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-28 01:18:57 -06:00
helper functions for various noun types
This commit is contained in:
@@ -41,6 +41,9 @@ oper
|
|||||||
= \x,y,z -> lin N ( noun_ngg x y z ) ;
|
= \x,y,z -> lin N ( noun_ngg x y z ) ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
pluralN = ResLat.pluralN ;
|
||||||
|
singularN = ResLat.singularN ;
|
||||||
|
constN = ResLat.constN ;
|
||||||
mkA = overload {
|
mkA = overload {
|
||||||
mkA : (verbum : Str) -> A -- Nominative masculine
|
mkA : (verbum : Str) -> A -- Nominative masculine
|
||||||
= \n -> lin A ( adj n ** {isPre = False } ) ;
|
= \n -> lin A ( adj n ** {isPre = False } ) ;
|
||||||
@@ -101,8 +104,7 @@ oper
|
|||||||
= \p,c -> lin Adv (mkFullAdverb p c nonExist);
|
= \p,c -> lin Adv (mkFullAdverb p c nonExist);
|
||||||
};
|
};
|
||||||
|
|
||||||
pluralN = ResLat.pluralN ;
|
|
||||||
singularN = ResLat.singularN ;
|
|
||||||
|
|
||||||
mkConj = overload {
|
mkConj = overload {
|
||||||
mkConj : Str -> Str -> Str -> Number -> Coordinator -> Conjunction = mkConjunction ;
|
mkConj : Str -> Str -> Str -> Number -> Coordinator -> Conjunction = mkConjunction ;
|
||||||
|
|||||||
@@ -79,6 +79,8 @@ param
|
|||||||
postap = n.postap
|
postap = n.postap
|
||||||
-- massable = n.massable ;
|
-- massable = n.massable ;
|
||||||
};
|
};
|
||||||
|
constN : Str -> Gender -> Noun = \s,g ->
|
||||||
|
{ s = \\_,_ => s ; g = g } ;
|
||||||
|
|
||||||
param
|
param
|
||||||
AdjPos = Pre | Post ;
|
AdjPos = Pre | Post ;
|
||||||
|
|||||||
Reference in New Issue
Block a user