separate independent (NP without CN) forms of IndefArt and DefArt in Romance languages. The choice of words was unsure in some cases, but at least this eliminates the problem of empty NP's translating to "ones".

This commit is contained in:
aarne
2014-09-12 11:59:50 +00:00
parent 6b47126c8c
commit 7ddf965061
8 changed files with 66 additions and 34 deletions

View File

@@ -20,8 +20,8 @@ oper
} ;
artDef : Gender -> Number -> Case -> Str = \g,n,c ->
case <g,n,c> of {
artDef : Bool -> Gender -> Number -> Case -> Str = \isNP,g,n,c ->
case <g,n,c> of { ---- TODO: check the NP forms
<Masc,Sg, CPrep P_de> => pre {"del" ; ["de l'"] / vocalForta} ;
<Masc,Sg, CPrep P_a> => pre {"al" ; ["a l'"] / vocalForta} ;
<Masc,Sg, _> => elisEl ;
@@ -36,12 +36,19 @@ oper
artIndef = \g,n,c -> case <n,c> of {
artIndef = \isNP,g,n,c -> case isNP of {
_ => case <n,c> of {
<Sg,CPrep P_de> => genForms ["d' un"] ["d' una"] ! g ;
<Sg,_> => prepCase c ++ genForms "un" "una" ! g ;
<Pl,_> => prepCase c ++ genForms "uns" "unes" ! g
} ;
_ => case <n,c> of {
<Sg,CPrep P_de> => genForms ["d' un"] ["d' una"] ! g ;
<Sg,_> => prepCase c ++ genForms "un" "una" ! g ;
--- <Pl,CPrep P_de> => genForms ["d' uns"] ["d' unes"] ! g ;
<Pl,_> => prepCase c --- ++ genForms "uns" "unes" ! g --- take this as a determiner
} ;
}
} ;
@@ -49,7 +56,7 @@ oper
partitive = \g,c -> case c of {
CPrep P_de => "de" ;
_ => prepCase c ++ artDef g Sg (CPrep P_de)
_ => prepCase c ++ artDef False g Sg (CPrep P_de)
} ;
conjunctCase : Case -> Case = \c -> case c of {