imppol for malay

This commit is contained in:
Meowyam
2022-04-27 11:40:04 +08:00
parent d35a709eb7
commit d14de723d0
5 changed files with 10 additions and 3 deletions

View File

@@ -142,6 +142,7 @@ param
VForm = VForm =
Root -- infinitive, imperative, … Root -- infinitive, imperative, …
| Active | Active
| Imperative
; ;
Prefix = Prefix =

View File

@@ -9,6 +9,7 @@ concrete PhraseMay of Phrase = CatMay ** open Prelude, ResMay in {
UttNP np = {s = np.s ! Bare} ; UttNP np = {s = np.s ! Bare} ;
UttIP ip = {s = ip.sp ! NF Sg Bare} ; UttIP ip = {s = ip.sp ! NF Sg Bare} ;
UttImpSg pol imp = { s = pol.s ++ imp.s ! Sg ! pol.p } ; UttImpSg pol imp = { s = pol.s ++ imp.s ! Sg ! pol.p } ;
UttImpPol pol imp = {s = pol.s ++ imp.s ! Sg ! pol.p} ;
{- {-
UttImpSg pol imp = UttImpSg pol imp =
UttImpPl pol imp = UttImpPl pol imp =

View File

@@ -224,7 +224,8 @@ oper
mkVerb : Str -> Prefix -> Verb = \str,p -> { mkVerb : Str -> Prefix -> Verb = \str,p -> {
s = table { s = table {
Root => str ; Root => str ;
Active => prefix p str Active => prefix p str ;
Imperative => str ++ BIND ++ "kan"
} }
} ; } ;

View File

@@ -29,8 +29,8 @@ lin
-- : VP -> Imp ; -- : VP -> Imp ;
ImpVP vp = { ImpVP vp = {
s = \\num,pol => case pol of { s = \\num,pol => case pol of {
Neg => "jangan" ++ vp.s ! Root ! Pos; Neg => "jangan" ++ vp.s ! Imperative ! Pos;
Pos => vp.s ! Root ! Pos Pos => vp.s ! Imperative ! Pos
} }
} ; } ;

View File

@@ -113,5 +113,9 @@ LangMay: buka pintu
Lang: UttImpSg PNeg (ImpVP (ComplSlash (SlashV2a open_V2) (DetCN (DetQuant DefArt NumSg) (UseN door_N)))) Lang: UttImpSg PNeg (ImpVP (ComplSlash (SlashV2a open_V2) (DetCN (DetQuant DefArt NumSg) (UseN door_N))))
LangEng: don't open the door LangEng: don't open the door
LangMay: jangan buka pintu LangMay: jangan buka pintu
Lang: UttImpPol PPos (ImpVP (ComplSlash (SlashV2a open_V2) (DetCN (DetQuant DefArt NumSg) (UseN door_N))))
LangEng: open the door
LangMay: bukakan pintu
---------------------------------------- ----------------------------------------
-- Questions -- Questions