forked from GitHub/gf-rgl
basic imperatif
This commit is contained in:
@@ -94,7 +94,7 @@ lin come_V = mkV "datang" ;
|
|||||||
-- lin do_V2 = lin V2 egin_V ;
|
-- lin do_V2 = lin V2 egin_V ;
|
||||||
-- lin doctor_N = mkN "" ;
|
-- lin doctor_N = mkN "" ;
|
||||||
lin dog_N = mkN "anjing" ;
|
lin dog_N = mkN "anjing" ;
|
||||||
-- lin door_N = mkN "" ;
|
lin door_N = mkN "pintu" ;
|
||||||
lin drink_V2 = let drink' : V2 = mkV2 "minum" in drink' ** {
|
lin drink_V2 = let drink' : V2 = mkV2 "minum" in drink' ** {
|
||||||
s = \\_ => "minum" ;
|
s = \\_ => "minum" ;
|
||||||
};
|
};
|
||||||
@@ -263,7 +263,7 @@ lin now_Adv = mkAdv "sekarang" ;
|
|||||||
|
|
||||||
-- lin oil_N = mkN "" ;
|
-- lin oil_N = mkN "" ;
|
||||||
lin old_A = mkA "tua" ;
|
lin old_A = mkA "tua" ;
|
||||||
-- lin open_V2 = mkV2 "" ;
|
lin open_V2 = mkV2 "buka" ;
|
||||||
lin paint_V2A = mkV2 "cat" ;
|
lin paint_V2A = mkV2 "cat" ;
|
||||||
-- lin paper_N = mkN "" ;
|
-- lin paper_N = mkN "" ;
|
||||||
-- lin paris_PN = mkPN "Paris" ;
|
-- lin paris_PN = mkPN "Paris" ;
|
||||||
@@ -422,7 +422,7 @@ lin woman_N = mkN "perempuan" ;
|
|||||||
-- lin wonder_VQ = mkVQ "" ;
|
-- lin wonder_VQ = mkVQ "" ;
|
||||||
-- lin wood_N = mkN "" ;
|
-- lin wood_N = mkN "" ;
|
||||||
-- lin worm_N = mkN "" ;
|
-- lin worm_N = mkN "" ;
|
||||||
-- lin write_V2 = mkV2 "" ;
|
lin write_V2 = mkV2 "tulis" ;
|
||||||
-- lin year_N = mkN "" ;
|
-- lin year_N = mkN "" ;
|
||||||
-- lin yellow_A = mkA "" ;
|
-- lin yellow_A = mkA "" ;
|
||||||
lin young_A = mkA "muda" ;
|
lin young_A = mkA "muda" ;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ concrete PhraseMay of Phrase = CatMay ** open Prelude, ResMay in {
|
|||||||
UttIAdv iadv = iadv ;
|
UttIAdv iadv = iadv ;
|
||||||
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 =
|
UttImpSg pol imp =
|
||||||
UttImpPl pol imp =
|
UttImpPl pol imp =
|
||||||
|
|||||||
@@ -275,6 +275,7 @@ oper
|
|||||||
s = \\vf,pol => nounneg pol ++ s ;
|
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 {
|
verbneg : Polarity -> Str = \pol -> case pol of {
|
||||||
Neg => "tidak" ; -- or "tak"?
|
Neg => "tidak" ; -- or "tak"?
|
||||||
@@ -285,6 +286,11 @@ oper
|
|||||||
Neg => "bukan" ;
|
Neg => "bukan" ;
|
||||||
Pos => []
|
Pos => []
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
impneg : Polarity -> Str = \pol -> case pol of {
|
||||||
|
Neg => "jangan" ;
|
||||||
|
Pos => []
|
||||||
|
} ;
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
-- Cl, S
|
-- Cl, S
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,13 @@ lin
|
|||||||
-- : Cl -> Prep -> ClSlash ; -- (with whom) he walks
|
-- : Cl -> Prep -> ClSlash ; -- (with whom) he walks
|
||||||
SlashPrep cl prep = cl ** {c2 = prep} ;
|
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
|
-- : NP -> VS -> SSlash -> ClSlash ; -- (whom) she says that he loves
|
||||||
SlashVS np vs ss = {} ;
|
SlashVS np vs ss = {} ;
|
||||||
@@ -34,7 +41,7 @@ lin
|
|||||||
|
|
||||||
--2 Imperatives
|
--2 Imperatives
|
||||||
-- : VP -> Imp ;
|
-- : 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
|
--2 Embedded sentences
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,8 @@ LangMay: sekiranya tidak hujan sekarang , aku akan berjalan
|
|||||||
----------------------------------------
|
----------------------------------------
|
||||||
-- Imperative
|
-- Imperative
|
||||||
|
|
||||||
|
Lang: UttImpSg PPos (ImpVP (ComplSlash (SlashV2a open_V2) (DetCN (DetQuant DefArt NumSg) (UseN door_N))))
|
||||||
|
LangEng: open the door
|
||||||
|
LangMay: buka pintu
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
-- Questions
|
-- Questions
|
||||||
|
|||||||
Reference in New Issue
Block a user