(May) Split VP negations into bukan and tidak

This commit is contained in:
Inari Listenmaa
2020-08-19 18:47:42 +02:00
parent bc0fb02f20
commit 61ffe8e9a4
7 changed files with 66 additions and 44 deletions

View File

@@ -153,29 +153,42 @@ oper
------------------
-- VP
VerbPhrase : Type = Verb ** {
-- vComp : Str-- Maybe needed later?
-- {subjunc : Str ; -- inflected verb complement
-- inf : Str ; -- infinitive verb complement
-- subcl : Str} -- clause complement
VerbPhrase : Type = {
s : VForm => Polarity => Str ; -- tidak or bukan
} ;
VPSlash : Type = Verb2 ;
VPSlash : Type = VerbPhrase ** {
c2 : Preposition ;
} ;
useV : Verb -> VerbPhrase = \v -> v ** {
vComp = [] ; -- maybe needed later?
} ;
s = \\vf,pol => verbneg pol ++ v.s ! vf
} ;
useComp : Str -> VerbPhrase = \s -> {
s = \\vf,pol => nounneg pol ++ s ;
} ;
verbneg : Polarity -> Str = \pol -> case pol of {
Neg => "tidak" ; -- or "tak"?
Pos => []
} ;
nounneg : Polarity -> Str = \pol -> case pol of {
Neg => "bukan" ;
Pos => []
} ;
--------------------------------------------------------------------------------
-- Cl, S
Clause : Type = {
subj : Str ;
pred : VForm => Str -- Cl may become relative clause, need to keep open
pred : VForm => Polarity => Str -- Cl may become relative clause, need to keep open VForm
} ;
RClause : Type = {
subj : Str ;
pred : Person => Str
pred : Person => Polarity => Str
} ;
RS : Type = {s : Person => Str} ;