From 6facae3a84eb400213dd5cec8f40667cc67f3041 Mon Sep 17 00:00:00 2001 From: aarne Date: Mon, 21 Jun 2004 15:14:37 +0000 Subject: [PATCH] some new Swedish paradigms --- resource-0.6/swedish/ParadigmsSwe.gf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/resource-0.6/swedish/ParadigmsSwe.gf b/resource-0.6/swedish/ParadigmsSwe.gf index d255eed7..180e1c22 100644 --- a/resource-0.6/swedish/ParadigmsSwe.gf +++ b/resource-0.6/swedish/ParadigmsSwe.gf @@ -81,6 +81,7 @@ oper mkPN : (_,_ : Str) -> Gender -> Sex -> PN ; -- Karolus, Karoli pnReg : Str -> Gender -> Sex -> PN ; -- Johan,Johans ; Johannes, Johannes + pnS : Str -> Gender -> Sex -> PN ; -- "Burger King(s)" -- On the top level, it is maybe $CN$ that is used rather than $N$, and -- $NP$ rather than $PN$. @@ -128,6 +129,24 @@ oper apReg : Str -> AP ; +--2 Adverbs + +-- Adverbs are not inflected. Most lexical ones have position not +-- before the verb. Some can be preverbal (e.g. "alltid"). + + mkAdv : Str -> AdV ; + mkAdvPre : Str -> AdV ; + +-- Adverbs modifying adjectives and sentences can also be formed. + + mkAdA : Str -> AdA ; + mkAdS : Str -> AdS ; + +-- Prepositional phrases are another productive form of adverbials. + + mkPP : Str -> NP -> AdV ; + + --2 Verbs -- -- The fragment only has present tense so far. @@ -238,6 +257,8 @@ oper {s = table {Gen => karoli ; _ => karolus} ; g = g ; x = x ; lock_PN = <>} ; pnReg = \horst -> mkPN horst (ifTok Tok (Predef.dp 1 horst) "s" horst (horst + "s")) ; + pnS = \bk -> + mkPN bk (bk + "s") ; mkCN = UseN ; mkNP = \a,b,g -> UsePN (mkPN a b g nonmasculine) ; -- gender irrelevant in NP @@ -282,6 +303,12 @@ oper apReg = \s -> AdjP1 (adjReg s) ; + mkAdv a = advPost a ** {lock_AdV = <>} ; + mkAdvPre a = advPre a ** {lock_AdV = <>} ; + mkPP x y = prepPhrase x y ** {lock_AdV = <>} ; + mkAdA a = ss a ** {lock_AdA = <>} ; + mkAdS a = ss a ** {lock_AdS = <>} ; + mkV x y z = mkVerb x y z ** {lock_V = <>} ; vKoka = \tala -> mkV tala (tala+"r") tala ; vSteka = \leka -> let {lek = Predef.tk 1 leka} in mkV leka (lek + "er") lek ;