mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
missing constructs in ParseSpa, some not so certain. Present participles should be added to the morphology.
This commit is contained in:
@@ -166,4 +166,8 @@ incomplete concrete NounRomance of Noun =
|
|||||||
g = g
|
g = g
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
PossNP cn np = {
|
||||||
|
s = \\n => cn.s ! n ++ appCompl {s = [] ; c = genitive ; isDir = False} np ;
|
||||||
|
g = cn.g ;
|
||||||
|
} ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,15 +20,41 @@ concrete ParseSpa of ParseEngAbs =
|
|||||||
ClSlash, RCl, EmptyRelSlash],
|
ClSlash, RCl, EmptyRelSlash],
|
||||||
|
|
||||||
DictEngSpa **
|
DictEngSpa **
|
||||||
open MorphoSpa, ResSpa, ParadigmsSpa, Prelude in {
|
open MorphoSpa, ResSpa, ParadigmsSpa, SyntaxSpa, Prelude in {
|
||||||
|
|
||||||
flags
|
flags
|
||||||
literal=Symb ;
|
literal=Symb ;
|
||||||
beam_size=0.95 ;
|
beam_size=0.95 ;
|
||||||
coding = utf8 ;
|
coding = utf8 ;
|
||||||
|
|
||||||
{-
|
|
||||||
lin
|
lin
|
||||||
|
-- missing from ExtraSpa; should not really be there either
|
||||||
|
|
||||||
|
GenNP np =
|
||||||
|
let denp = (np.s ! ResSpa.genitive).ton in {
|
||||||
|
s = \\_,_,_,_ => [] ;
|
||||||
|
sp = \\_,_,_ => denp ;
|
||||||
|
s2 = denp ;
|
||||||
|
isNeg = False ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
EmptyRelSlash slash = mkRCl which_RP (lin ClSlash slash) ;
|
||||||
|
|
||||||
|
that_RP = which_RP ;
|
||||||
|
|
||||||
|
UncNeg = negativePol ;
|
||||||
|
|
||||||
|
-- lexical entries
|
||||||
|
|
||||||
|
another_Quant = mkQuantifier "otro" "otra" "otros" "otras" ;
|
||||||
|
some_Quant = mkQuantifier "algún" "alguna" "algunos" "algunas" ;
|
||||||
|
anySg_Det = mkDeterminer "algún" "alguna" Sg False ; ---- also meaning "whichever" ?
|
||||||
|
each_Det = SyntaxSpa.every_Det ;
|
||||||
|
|
||||||
|
but_Subj = {s = "pero" ; m = Indic} ; ---- strange to have this as Subj
|
||||||
|
|
||||||
|
{-
|
||||||
myself_NP = regNP "myself" singular ;
|
myself_NP = regNP "myself" singular ;
|
||||||
yourselfSg_NP = regNP "yourself" singular ;
|
yourselfSg_NP = regNP "yourself" singular ;
|
||||||
himself_NP = regNP "himself" singular ;
|
himself_NP = regNP "himself" singular ;
|
||||||
@@ -38,12 +64,14 @@ lin
|
|||||||
yourselfPl_NP = regNP "yourself" plural ;
|
yourselfPl_NP = regNP "yourself" plural ;
|
||||||
themself_NP = regNP "themself" plural ;
|
themself_NP = regNP "themself" plural ;
|
||||||
themselves_NP = regNP "themselves" plural ;
|
themselves_NP = regNP "themselves" plural ;
|
||||||
|
-}
|
||||||
|
|
||||||
CompoundCN num noun cn = {
|
CompoundCN num noun cn = {
|
||||||
s = \\n,c => num.s ! Nom ++ noun.s ! num.n ! Nom ++ cn.s ! n ! c ;
|
s = \\n => cn.s ! n ++ "de" ++ noun.s ! num.n ;
|
||||||
g = cn.g
|
g = cn.g
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
{-
|
||||||
DashCN noun1 noun2 = {
|
DashCN noun1 noun2 = {
|
||||||
s = \\n,c => noun1.s ! Sg ! Nom ++ "-" ++ noun2.s ! n ! c ;
|
s = \\n,c => noun1.s ! Sg ! Nom ++ "-" ++ noun2.s ! n ! c ;
|
||||||
g = noun2.g
|
g = noun2.g
|
||||||
@@ -58,16 +86,23 @@ lin
|
|||||||
s = \\agr => v.s ! VPresPart ;
|
s = \\agr => v.s ! VPresPart ;
|
||||||
isPre = True
|
isPre = True
|
||||||
} ;
|
} ;
|
||||||
|
-}
|
||||||
|
|
||||||
PastPartAP v = {
|
PastPartAP v = {
|
||||||
s = \\agr => v.s ! VPPart ;
|
s = table {
|
||||||
|
AF g n => v.s ! VPart g n ;
|
||||||
|
_ => v.s ! VPart Masc Sg ---- the adverb form
|
||||||
|
} ;
|
||||||
isPre = True
|
isPre = True
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
{-
|
||||||
OrdCompar a = {s = \\c => a.s ! AAdj Compar c } ;
|
OrdCompar a = {s = \\c => a.s ! AAdj Compar c } ;
|
||||||
|
-}
|
||||||
|
|
||||||
PositAdVAdj a = {s = a.s ! AAdv} ;
|
PositAdVAdj a = {s = a.s ! Posit ! AA} ;
|
||||||
|
|
||||||
|
{-
|
||||||
UseQuantPN q pn = {s = \\c => q.s ! False ! Sg ++ pn.s ! npcase2case c ; a = agrgP3 Sg pn.g} ;
|
UseQuantPN q pn = {s = \\c => q.s ! False ! Sg ++ pn.s ! npcase2case c ; a = agrgP3 Sg pn.g} ;
|
||||||
|
|
||||||
SlashV2V v ant p vp = insertObjc (\\a => v.c3 ++ ant.s ++ p.s ++
|
SlashV2V v ant p vp = insertObjc (\\a => v.c3 ++ ant.s ++ p.s ++
|
||||||
@@ -81,37 +116,16 @@ lin
|
|||||||
ComplVV v a p vp = insertObj (\\agr => a.s ++ p.s ++
|
ComplVV v a p vp = insertObj (\\agr => a.s ++ p.s ++
|
||||||
infVP v.typ vp a.a p.p agr)
|
infVP v.typ vp a.a p.p agr)
|
||||||
(predVV v) ;
|
(predVV v) ;
|
||||||
|
-}
|
||||||
|
|
||||||
PredVPosv np vp = {
|
---- TODO: find proper expressions for OSV and OVS in Spa
|
||||||
s = \\t,a,b,o =>
|
PredVPosv np vp = mkCl (lin NP np) (lin VP vp) ;
|
||||||
let
|
PredVPovs np vp = mkCl (lin NP np) (lin VP vp) ;
|
||||||
verb = vp.s ! t ! a ! b ! o ! np.a ;
|
|
||||||
compl = vp.s2 ! np.a
|
|
||||||
in
|
|
||||||
case o of {
|
|
||||||
ODir => compl ++ "," ++ np.s ! npNom ++ verb.aux ++ vp.ad ++ verb.fin ++ verb.adv ++ verb.inf ;
|
|
||||||
OQuest => verb.aux ++ compl ++ "," ++ np.s ! npNom ++ verb.adv ++ vp.ad ++ verb.fin ++ verb.inf
|
|
||||||
}
|
|
||||||
} ;
|
|
||||||
|
|
||||||
PredVPovs np vp = {
|
|
||||||
s = \\t,a,b,o =>
|
|
||||||
let
|
|
||||||
verb = vp.s ! t ! a ! b ! o ! np.a ;
|
|
||||||
compl = vp.s2 ! np.a
|
|
||||||
in
|
|
||||||
case o of {
|
|
||||||
ODir => compl ++ verb.aux ++ verb.adv ++ vp.ad ++ verb.fin ++ verb.inf ++ np.s ! npNom ;
|
|
||||||
OQuest => verb.aux ++ compl ++ verb.adv ++ vp.ad ++ verb.fin ++ verb.inf ++ np.s ! npNom
|
|
||||||
}
|
|
||||||
} ;
|
|
||||||
|
|
||||||
that_RP = {
|
|
||||||
s = \\_ => "that" ;
|
|
||||||
a = RNoAg
|
|
||||||
} ;
|
|
||||||
|
|
||||||
CompS s = {s = \\_ => "that" ++ s.s} ;
|
CompS s = {s = \\_ => "de" ++ "que" ++ s.s ! Indic} ; ---- de ?
|
||||||
|
|
||||||
|
{-
|
||||||
CompQS qs = {s = \\_ => qs.s ! QIndir} ;
|
CompQS qs = {s = \\_ => qs.s ! QIndir} ;
|
||||||
CompVP ant p vp = {s = \\a => ant.s ++ p.s ++
|
CompVP ant p vp = {s = \\a => ant.s ++ p.s ++
|
||||||
infVP VVInf vp ant.a p.p a} ;
|
infVP VVInf vp ant.a p.p a} ;
|
||||||
|
|||||||
Reference in New Issue
Block a user