(May) Add dative "prep", direct object "prep" +truly empty emptyPrep

This commit is contained in:
Inari Listenmaa
2020-08-20 11:40:16 +02:00
parent 8208485f48
commit 5b28e621b3
3 changed files with 17 additions and 7 deletions
+11 -1
View File
@@ -111,7 +111,8 @@ oper
isPoss = False ;
} ;
emptyPrep : Preposition = {
-- direct object: "hits him" -> "memukul+nya"
dirPrep : Preposition = {
s = [] ;
obj = table {
P1 => BIND ++ "ku" ;
@@ -120,6 +121,15 @@ oper
isPoss = True ;
} ;
-- truly empty
emptyPrep : Preposition = {
s = [] ;
obj = \\_ => [] ;
isPoss = True ;
} ;
datPrep : Preposition = mkPrep "kepada" ;
applyPrep : Preposition -> NounPhrase -> Str = \prep,np ->
case np.a of {
IsPron p => prep.obj ! p ++ np.empty ;