diff --git a/src/malay/LexiconMay.gf b/src/malay/LexiconMay.gf index 76552b4ea..e3aa111d9 100644 --- a/src/malay/LexiconMay.gf +++ b/src/malay/LexiconMay.gf @@ -94,7 +94,7 @@ lin come_V = mkV "datang" ; -- lin do_V2 = lin V2 egin_V ; -- lin doctor_N = mkN "" ; lin dog_N = mkN "anjing" ; --- lin door_N = mkN "" ; +lin door_N = mkN "pintu" ; lin drink_V2 = let drink' : V2 = mkV2 "minum" in drink' ** { s = \\_ => "minum" ; }; @@ -263,7 +263,7 @@ lin now_Adv = mkAdv "sekarang" ; -- lin oil_N = mkN "" ; lin old_A = mkA "tua" ; --- lin open_V2 = mkV2 "" ; +lin open_V2 = mkV2 "buka" ; lin paint_V2A = mkV2 "cat" ; -- lin paper_N = mkN "" ; -- lin paris_PN = mkPN "Paris" ; @@ -422,7 +422,7 @@ lin woman_N = mkN "perempuan" ; -- lin wonder_VQ = mkVQ "" ; -- lin wood_N = mkN "" ; -- lin worm_N = mkN "" ; --- lin write_V2 = mkV2 "" ; +lin write_V2 = mkV2 "tulis" ; -- lin year_N = mkN "" ; -- lin yellow_A = mkA "" ; lin young_A = mkA "muda" ; diff --git a/src/malay/PhraseMay.gf b/src/malay/PhraseMay.gf index cb5943937..3a1fb5b2c 100644 --- a/src/malay/PhraseMay.gf +++ b/src/malay/PhraseMay.gf @@ -8,6 +8,7 @@ concrete PhraseMay of Phrase = CatMay ** open Prelude, ResMay in { UttIAdv iadv = iadv ; UttNP np = {s = np.s ! Bare} ; UttIP ip = {s = ip.sp ! NF Sg Bare} ; + UttImpSg pol imp = { s = pol.s ++ imp.s ! Sg ! pol.p } ; {- UttImpSg pol imp = UttImpPl pol imp = diff --git a/src/malay/ResMay.gf b/src/malay/ResMay.gf index 4487d40f6..047bf7c4c 100644 --- a/src/malay/ResMay.gf +++ b/src/malay/ResMay.gf @@ -275,6 +275,7 @@ oper s = \\vf,pol => nounneg pol ++ s ; } ; +-- https://www.reddit.com/r/indonesian/comments/gsizsv/when_to_use_tidak_bukan_jangan_belum/ verbneg : Polarity -> Str = \pol -> case pol of { Neg => "tidak" ; -- or "tak"? @@ -285,6 +286,11 @@ oper Neg => "bukan" ; Pos => [] } ; + + impneg : Polarity -> Str = \pol -> case pol of { + Neg => "jangan" ; + Pos => [] + } ; -------------------------------------------------------------------------------- -- Cl, S diff --git a/src/malay/SentenceMay.gf b/src/malay/SentenceMay.gf index 1222e02e4..e6d827b20 100644 --- a/src/malay/SentenceMay.gf +++ b/src/malay/SentenceMay.gf @@ -24,6 +24,13 @@ lin -- : Cl -> Prep -> ClSlash ; -- (with whom) he walks SlashPrep cl prep = cl ** {c2 = prep} ; + +--2 Imperatives + -- : VP -> Imp ; + ImpVP vp = { + s = \\num,pol => vp.s ! Root ! pol + } ; + {- -- : NP -> VS -> SSlash -> ClSlash ; -- (whom) she says that he loves SlashVS np vs ss = {} ; @@ -34,7 +41,7 @@ lin --2 Imperatives -- : VP -> Imp ; - ImpVP vp = {s = \\num,pol => linVP (VImp num pol) Statement vp} ; + -- ImpVP vp = {s = \\num,pol => linVP (VImp num pol) Statement vp} ; --2 Embedded sentences diff --git a/src/malay/unittest/verbal_affixes.gftest b/src/malay/unittest/verbal_affixes.gftest index 7fecec8d3..d36f9be6e 100644 --- a/src/malay/unittest/verbal_affixes.gftest +++ b/src/malay/unittest/verbal_affixes.gftest @@ -106,6 +106,8 @@ LangMay: sekiranya tidak hujan sekarang , aku akan berjalan ---------------------------------------- -- Imperative - +Lang: UttImpSg PPos (ImpVP (ComplSlash (SlashV2a open_V2) (DetCN (DetQuant DefArt NumSg) (UseN door_N)))) +LangEng: open the door +LangMay: buka pintu ---------------------------------------- -- Questions