mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-16 14:42:50 -06:00
restored one-arg mkPN
This commit is contained in:
@@ -126,6 +126,7 @@ mkN : overload {
|
|||||||
-- taken into account.
|
-- taken into account.
|
||||||
|
|
||||||
mkPN : overload {
|
mkPN : overload {
|
||||||
|
mkPN : Str -> PN ; -- regular name with genitive in "s", masculine
|
||||||
mkPN : Str -> Gender -> PN ; -- regular name with genitive in "s"
|
mkPN : Str -> Gender -> PN ; -- regular name with genitive in "s"
|
||||||
|
|
||||||
-- If only the genitive differs, two strings are needed.
|
-- If only the genitive differs, two strings are needed.
|
||||||
@@ -461,6 +462,7 @@ mkV2 : overload {
|
|||||||
mk2PN horst (ifTok Tok (Predef.dp 1 horst) "s" horst (horst + "s")) g ;
|
mk2PN horst (ifTok Tok (Predef.dp 1 horst) "s" horst (horst + "s")) g ;
|
||||||
|
|
||||||
mkPN = overload {
|
mkPN = overload {
|
||||||
|
mkPN : Str -> PN = \s -> regPN s Masc ;
|
||||||
mkPN : Str -> Gender -> PN = regPN ;
|
mkPN : Str -> Gender -> PN = regPN ;
|
||||||
mkPN : N -> PN = \n -> lin PN {s = n.s ! Sg; g = n.g} ;
|
mkPN : N -> PN = \n -> lin PN {s = n.s ! Sg; g = n.g} ;
|
||||||
mkPN : (nom,gen : Str) -> Gender -> PN = mk2PN ;
|
mkPN : (nom,gen : Str) -> Gender -> PN = mk2PN ;
|
||||||
|
|||||||
Reference in New Issue
Block a user