From 41d4b7fabd2953a7b18dca48e433255b12a226e2 Mon Sep 17 00:00:00 2001 From: Inari Listenmaa Date: Tue, 12 Apr 2022 19:03:01 +0800 Subject: [PATCH] (Est) Add DAP + funs that use/produce it --- src/estonian/CatEst.gf | 2 +- src/estonian/NounEst.gf | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/estonian/CatEst.gf b/src/estonian/CatEst.gf index a91a245e0..57b891d04 100644 --- a/src/estonian/CatEst.gf +++ b/src/estonian/CatEst.gf @@ -50,7 +50,7 @@ concrete CatEst of Cat = CommonX ** open HjkEst, ResEst, Prelude in { CN = {s : NForm => Str} ; Pron = {s : NPForm => Str ; a : Agr} ; NP = {s : NPForm => Str ; a : Agr ; isPron : Bool} ; - Det = { + DAP, Det = { s : Case => Str ; -- minun kolme sp : Case => Str ; -- se (substantival form) n : Number ; -- Pl (agreement feature for verb) diff --git a/src/estonian/NounEst.gf b/src/estonian/NounEst.gf index a2167f415..2d873ab65 100644 --- a/src/estonian/NounEst.gf +++ b/src/estonian/NounEst.gf @@ -106,6 +106,21 @@ concrete NounEst of Noun = CatEst ** open ResEst, HjkEst, MorphoEst, Prelude in isDef = quant.isDef } ; + DetDAP det = det ; + + AdjDAP dap ap = dap ** { + s = \\c => dap.s ! c ++ + case ap.infl of { + Regular => ap.s ! True ! NCase dap.n c ; + _ => ap.s ! True ! NCase dap.n Nom ---- participle + } ; + sp = \\c => dap.sp ! c ++ + case ap.infl of { + Regular => ap.s ! True ! NCase dap.n c ; + _ => ap.s ! True ! NCase dap.n Nom ---- participle + } ; + } ; + PossPron p = { s,sp = \\_,_ => p.s ! NPCase Gen ; isNum = False ;