mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 01:22:51 -06:00
scandinavian compound comparison
This commit is contained in:
@@ -33,6 +33,7 @@ instance DiffDan of DiffScand = open CommonScand, Prelude in {
|
||||
conjThan = "end" ;
|
||||
conjAnd = "og" ;
|
||||
infMark = "at" ;
|
||||
compMore = "mere" ;
|
||||
|
||||
subjIf = "hvis" ;
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ oper
|
||||
-- If comparison is formed by "mer, "mest", as in general for
|
||||
-- long adjective, the following pattern is used:
|
||||
|
||||
compoundADeg : A -> A ; -- -/mer/mest norsk
|
||||
compoundA : A -> A ; -- -/mer/mest norsk
|
||||
|
||||
|
||||
--2 Adverbs
|
||||
@@ -346,18 +346,23 @@ oper
|
||||
|
||||
mkA2 a p = a ** {c2 = p ; lock_A2 = <>} ;
|
||||
|
||||
mkADeg a b c d e = mkAdject a b c d e ** {lock_A = <>} ;
|
||||
mkADeg a b c d e = mkAdject a b c d e ** {isComp = False ; lock_A = <>} ;
|
||||
|
||||
regADeg a = case Predef.dp 2 a of {
|
||||
"sk" => aRask a ;
|
||||
_ => case last a of {
|
||||
"t" => aAbstrakt a ;
|
||||
_ => aRod a
|
||||
}} ** {lock_A = <>} ;
|
||||
}} ** {isComp = False ; lock_A = <>} ;
|
||||
|
||||
irregADeg a b c = mkAdject a (a + "t") (a + "e") b c ** {lock_A = <>} ;
|
||||
mk3ADeg a b c = mkAdject a b c (c + "re") (c + "st") ** {lock_A = <>} ;
|
||||
mk2ADeg a b = mkAdject a b (a + "e") (a + "ere") (a + "est") ** {lock_A = <>} ;
|
||||
irregADeg a b c = mkAdject a (a + "t") (a + "e") b c **
|
||||
{isComp = False ; lock_A = <>} ;
|
||||
mk3ADeg a b c = mkAdject a b c (c + "re") (c + "st") **
|
||||
{isComp = False ; lock_A = <>} ;
|
||||
mk2ADeg a b = mkAdject a b (a + "e") (a + "ere") (a + "est") **
|
||||
{isComp = False ; lock_A = <>} ;
|
||||
|
||||
compoundA adj = {s = adj.s ; isComp = True ; lock_A = <>} ;
|
||||
|
||||
mkAdv x = ss x ** {lock_Adv = <>} ;
|
||||
mkAdV x = ss x ** {lock_AdV = <>} ;
|
||||
|
||||
Reference in New Issue
Block a user