Merge pull request #58 from odanoburu/extendlins

(Por) add lins
This commit is contained in:
Inari Listenmaa
2018-11-01 11:44:41 +01:00
committed by GitHub
3 changed files with 33 additions and 5 deletions

View File

@@ -200,7 +200,7 @@ abstract Extend = Cat ** {
-- Eng -- Eng
UncontractedNeg : Pol ; -- do not, etc, as opposed to don't UncontractedNeg : Pol ; -- do not, etc, as opposed to don't
UttVPShort : VP -> Utt ; -- have fun, as opposed to "to have fun" UttVPShort : VP -> Utt ; -- have fun, as opposed to "to have fun"
ComplSlashPartLast : VPSlash -> NP -> VP ; ComplSlashPartLast : VPSlash -> NP -> VP ; -- set it apart, as opposed to "set apart it"
-- Romance -- Romance
DetNPMasc : Det -> NP ; DetNPMasc : Det -> NP ;

View File

@@ -3,13 +3,16 @@
concrete ExtendPor of Extend = concrete ExtendPor of Extend =
CatPor ** ExtendFunctor - CatPor ** ExtendFunctor -
[ [
ApposNP, AdAdV,
ApposNP,
BaseVPS, BaseVPS,
ByVP, ByVP,
CompBareCN, CompBareCN,
ComplBareVS, ComplBareVS,
ComplSlashPartLast,
CompoundAP, CompoundAP,
CompoundN, CompoundN,
CompVP,
ConsVPS, ConsVPS,
--EmptyRelSlash, --EmptyRelSlash,
ExistsNP, ExistsNP,
@@ -28,12 +31,15 @@ concrete ExtendPor of Extend =
PassVPSlash, PassVPSlash,
PastPartAP, PastPartAP,
PastPartAgentAP, PastPartAgentAP,
PositAdVAdj,
PresPartAP, PresPartAP,
ProDrop, ProDrop,
PurposeVP, PurposeVP,
VPS, VPS,
iFem_Pron, iFem_Pron,
theyFem_Pron, theyFem_Pron,
UttAdV,
UttVPShort,
weFem_Pron, weFem_Pron,
WithoutVP, WithoutVP,
youFem_Pron, youFem_Pron,
@@ -213,6 +219,28 @@ concrete ExtendPor of Extend =
} ; } ;
} ; } ;
AdAdV aa av = {
s = aa.s ++ av.s
} ;
UttAdV av = av ;
PositAdVAdj a = {
s = a.s ! Posit ! AA
} ;
--TODO: actually use ant
CompVP ant p vp = let
neg = negation ! p.p
in {
s = \\agr => ant.s ++ p.s ++ "de" ++ neg.p1 ++ infVP vp agr ;
cop = serCopula
} ;
UttVPShort = UttVP ;
ComplSlashPartLast = ComplSlash ;
oper oper
gerundStr : VP -> Str ; gerundStr : VP -> Str ;
gerundStr vp = gerVP vp (Ag Masc Sg P3) ; gerundStr vp = gerVP vp (Ag Masc Sg P3) ;

View File

@@ -23,7 +23,7 @@ lin
clean_A = mkA "limpo" ; clean_A = mkA "limpo" ;
clever_A = mkA "inteligente" ; clever_A = mkA "inteligente" ;
cold_A = mkA "frio" ; -- fria cold_A = mkA "frio" ; -- fria
correct_A = mkA "correto" | mkA "correcto" ; correct_A = mkA "correto" ;
dirty_A = mkA "sujo" ; dirty_A = mkA "sujo" ;
dry_A = mkA "seco" ; dry_A = mkA "seco" ;
dull_A = mkA "desafilado" ; dull_A = mkA "desafilado" ;
@@ -47,7 +47,7 @@ lin
short_A = mkA "curto" ; --- breve, pequeno, baixo short_A = mkA "curto" ; --- breve, pequeno, baixo
small_A = prefA (mkA "pequeno") ; small_A = prefA (mkA "pequeno") ;
smooth_A = mkA "liso" ; -- suave smooth_A = mkA "liso" ; -- suave
straight_A = mkA "direto" | mkA "directo" ; -- reto straight_A = mkA "direto" ; -- reto
stupid_A = mkA "estúpido" ; stupid_A = mkA "estúpido" ;
thick_A = mkA "grosso" ; thick_A = mkA "grosso" ;
thin_A = mkA "fino" ; -- delgado, magro thin_A = mkA "fino" ; -- delgado, magro
@@ -337,7 +337,7 @@ lin
flow_V = mkV "fluir" ; -- circular flow_V = mkV "fluir" ; -- circular
fly_V = mkV "voar" ; fly_V = mkV "voar" ;
freeze_V = mkV "congelar" ; freeze_V = mkV "congelar" ;
go_V = (mkV "ir") ; go_V = mkV (ir_Besch "ir") ;
jump_V = mkV "saltar" ; jump_V = mkV "saltar" ;
laugh_V = mkV (rir_Besch "rir") ; laugh_V = mkV (rir_Besch "rir") ;
lie_V = reflV (mkV "mentir") ; lie_V = reflV (mkV "mentir") ;