From 1d295690082fcc6671d0a4107570aa46b1ecabb3 Mon Sep 17 00:00:00 2001 From: Inari Listenmaa Date: Thu, 11 Jan 2018 19:45:13 +0100 Subject: [PATCH] add somebody_NP and something_NP to StructuralEus --- src/basque/StructuralEus.gf | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/basque/StructuralEus.gf b/src/basque/StructuralEus.gf index eca8cf215..799be0f22 100644 --- a/src/basque/StructuralEus.gf +++ b/src/basque/StructuralEus.gf @@ -82,15 +82,26 @@ lin which_IQuant = R.defDet "zein" sg ** { s = R.artDef } ; lin everybody_NP = defNP "dena" N.NumPl ; lin everything_NP = defNP "dena" N.NumSg ; -lin nobody_NP = defNP "ez inor" N.NumSg ; --TODO: negation should be in the verb; "ez da inor" +lin nobody_NP = defNP "ez inor" N.NumSg ; -- OBS. impossible to make grammatical on this level: negation should be in the verb; "ez da inor" lin nothing_NP = defNP "ezer" N.NumSg ; ---lin somebody_NP = ---lin something_NP = +lin somebody_NP = defNP "norbait" N.NumSg ; +lin something_NP = defNP "zerbait" N.NumSg ; + + {- TODO1: custom inflection. norbait, norbaitek, norabait, not *norbaitak, *norbaitera. + make a proper generalisation instead of the quick incomplete hack in defNP. + + TODO2: should they be definite or indefinite? + e.g. do they become partitive in negated clauses? + -} oper defNP : Str -> Num -> NP = \dena,num -> - N.DetCN (N.DetQuant N.DefArt num) - (N.UseN (R.mkNoun dena)) ; + let dena_NP = N.DetCN (N.DetQuant N.DefArt num) (N.UseN (R.mkNoun dena)) + in dena_NP ** { s = table { Erg => glue dena "ek" ; + Dat => glue dena "i" ; + x => dena_NP.s ! x } + } ; + ------- -- Prep