Thai words, in particular those needed for Phrasebook and Synopsis

This commit is contained in:
aarne
2011-11-20 19:08:15 +00:00
parent 8e685af2a4
commit 58d1968d98
4 changed files with 41 additions and 32 deletions

View File

@@ -1,6 +1,6 @@
--# -path=.:alltenses --# -path=.:alltenses
resource TryTha = SyntaxTha, LexiconTha, ParadigmsTha -[mkDet,mkQuant]** resource TryTha = SyntaxTha, LexiconTha, ParadigmsTha -[mkAdv, mkDet,mkQuant]**
open (P = ParadigmsTha) in { open (P = ParadigmsTha) in {
-- oper -- oper

View File

@@ -8,12 +8,12 @@ flags
lin lin
-- add_V3 = dirV3 (regV "add") toP ; -- add_V3 = dirV3 (regV "add") toP ;
-- airplane_N = regN "airplane" ; airplane_N = mkN (thword "เครึอง" "บิน") "ลำ" ;
-- already_Adv = mkAdv "already" ; -- already_Adv = mkAdv "already" ;
animal_N = animalN (thword "สัตว์") ; animal_N = animalN (thword "สัตว์") ;
-- answer_V2S = mkV2S (regV "answer") toP ; answer_V2S = mkV2S (regV "ขาน") [] ; ---- prep
-- apartment_N = regN "apartment" ; -- apartment_N = regN "apartment" ;
-- apple_N = regN "apple" ; apple_N = mkN (thbind "แอป" "เิ้ปล") "ลูก" ;
-- art_N = regN "art" ; -- art_N = regN "art" ;
ashes_N = mkN (thword "เถ้า") ; ashes_N = mkN (thword "เถ้า") ;
ask_V2Q = regV "ถาน" ** {c2 = []} ; ask_V2Q = regV "ถาน" ** {c2 = []} ;
@@ -24,7 +24,7 @@ lin
-- bank_N = regN "bank" ; -- bank_N = regN "bank" ;
bark_N = mkN (thword "เปลือก") ; bark_N = mkN (thword "เปลือก") ;
-- beautiful_A = regADeg "beautiful" ; -- beautiful_A = regADeg "beautiful" ;
-- become_VA = mkVA (irregV "become" "became" "become") ; become_VA = mkVA (regV "กลาย") ; -- pen
beer_N = mkN biar_s kew_s ; beer_N = mkN biar_s kew_s ;
beg_V2V = regV "ขอ" ** {c2 = []} ; beg_V2V = regV "ขอ" ** {c2 = []} ;
belly_N = mkN (thword "พุง") ; belly_N = mkN (thword "พุง") ;
@@ -42,7 +42,7 @@ lin
-- boot_N = regN "boot" ; -- boot_N = regN "boot" ;
-- boss_N = regN "boss" ; -- boss_N = regN "boss" ;
-- boy_N = regN "boy" ; -- boy_N = regN "boy" ;
-- bread_N = regN "bread" ; bread_N = mkN (thword "ขนม" "ปัง") "ห่อ" ;
-- break_V2 = dirV2 (irregV "break" "broke" "broken") ; -- break_V2 = dirV2 (irregV "break" "broke" "broken") ;
breast_N = mkN (thword "นม") ; breast_N = mkN (thword "นม") ;
breathe_V = mkV (thword "หาย" "ใจ") ; breathe_V = mkV (thword "หาย" "ใจ") ;
@@ -54,12 +54,12 @@ lin
-- buy_V2 = dirV2 (irregV "buy" "bought" "bought") ; -- buy_V2 = dirV2 (irregV "buy" "bought" "bought") ;
-- camera_N = regN "camera" ; -- camera_N = regN "camera" ;
-- cap_N = regN "cap" ; -- cap_N = regN "cap" ;
-- car_N = regN "car" ; car_N = mkN "รถ" "คัน" ;
-- carpet_N = regN "carpet" ; -- carpet_N = regN "carpet" ;
-- cat_N = regN "cat" ; -- cat_N = regN "cat" ;
-- ceiling_N = regN "ceiling" ; -- ceiling_N = regN "ceiling" ;
-- chair_N = regN "chair" ; -- chair_N = regN "chair" ;
-- cheese_N = regN "cheese" ; cheese_N = mkN (thword "เนย" "แข็ง") "ก้อน" ;
child_N = mkN (thword "เด็ก") ; child_N = mkN (thword "เด็ก") ;
-- church_N = regN "church" ; -- church_N = regN "church" ;
city_N = mkN "นคร" "แห่ง" ; city_N = mkN "นคร" "แห่ง" ;
@@ -196,7 +196,7 @@ lin
man_N = personN (thword "ชาย") ; man_N = personN (thword "ชาย") ;
married_A2 = mkA2 (mkA (thword "แต่ง" "งัน" "แล้ว")) "กับ" ; married_A2 = mkA2 (mkA (thword "แต่ง" "งัน" "แล้ว")) "กับ" ;
meat_N = mkN (thword "เนื้อ") ; meat_N = mkN (thword "เนื้อ") ;
-- milk_N = regN "milk" ; milk_N = mkN (thword "นาม" "นม") kew_s ;
moon_N = mkN (thword "เดือน") ; moon_N = mkN (thword "เดือน") ;
mother_N2 = personN "แม่" ** {c2 = []} ; mother_N2 = personN "แม่" ** {c2 = []} ;
mountain_N = mkN (thword "เขา") ; mountain_N = mkN (thword "เขา") ;
@@ -211,7 +211,7 @@ lin
-- newspaper_N = regN "newspaper" ; -- newspaper_N = regN "newspaper" ;
night_N = mkN (thword "กลาง" "คืน") ; night_N = mkN (thword "กลาง" "คืน") ;
nose_N = mkN (thword "จมูก") ; nose_N = mkN (thword "จมูก") ;
-- now_Adv = mkAdv "now" ; now_Adv = mkAdv (thword "เดี่ยว" "นี้") ;
-- number_N = regN "number" ; -- number_N = regN "number" ;
-- oil_N = regN "oil" ; -- oil_N = regN "oil" ;
old_A = mkA (thword "แก่") ; old_A = mkA (thword "แก่") ;
@@ -237,11 +237,13 @@ lin
-- queen_N = regN "queen" ; -- queen_N = regN "queen" ;
-- radio_N = regN "radio" ; -- radio_N = regN "radio" ;
rain_N = mkN (thword "ฝน") ; rain_N = mkN (thword "ฝน") ;
-- rain_V0 = mkV0 (regV "rain") ; rain_V0 = mkV "มี" "ฝน" ; ----
ready_A = mkA "พร้อม" ;
reason_N = verbalN "เหตู" ;
-- read_V2 = dirV2 (irregV "read" "read" "read") ; -- read_V2 = dirV2 (irregV "read" "read" "read") ;
red_A = mkA (thword "แดง") ; red_A = mkA (thword "แดง") ;
-- religion_N = regN "religion" ; -- religion_N = regN "religion" ;
-- restaurant_N = regN "restaurant" ; restaurant_N = placeN "เหลา" ;
-- right_Ord = ss "right" ; -- right_Ord = ss "right" ;
river_N = mkN (thword "แม่" "น้ำ") ; river_N = mkN (thword "แม่" "น้ำ") ;
road_N = mkN (thword "ทาง") ; road_N = mkN (thword "ทาง") ;
@@ -254,11 +256,11 @@ lin
rub_V2 = mkV2 (thword "ถู") ; rub_V2 = mkV2 (thword "ถู") ;
-- rubber_N = regN "rubber" ; -- rubber_N = regN "rubber" ;
-- rule_N = regN "rule" ; -- rule_N = regN "rule" ;
-- run_V = (irregDuplV "run" "ran" "run") ; run_V = mkV "วิง" ;
salt_N = mkN (thword "เกลือ") ; salt_N = mkN (thword "เกลือ") ;
sand_N = mkN (thword "ทราย") ; sand_N = mkN (thword "ทราย") ;
--- say_VS = lin VS (mkV (thword "พูด")) ; say_VS = mkVS (regV ("ว่า")) ;
-- school_N = regN "school" ; school_N = placeN (thword "อาศ" "รม") ;
-- science_N = regN "science" ; -- science_N = regN "science" ;
scratch_V2 = mkV2 (thword "เกา") ; scratch_V2 = mkV2 (thword "เกา") ;
sea_N = mkN (thword "ทะ" "เล") ; sea_N = mkN (thword "ทะ" "เล") ;
@@ -273,7 +275,7 @@ lin
-- ship_N = regN "ship" ; -- ship_N = regN "ship" ;
-- shirt_N = regN "shirt" ; -- shirt_N = regN "shirt" ;
-- shoe_N = regN "shoe" ; -- shoe_N = regN "shoe" ;
-- shop_N = regN "shop" ; shop_N = placeN (thword "ร้าน" "ค้า") ;
short_A = mkA (thword "สั้น") ; short_A = mkA (thword "สั้น") ;
-- silver_N = regN "silver" ; -- silver_N = regN "silver" ;
sing_V = mkV (thword "ร้อง") ; sing_V = mkV (thword "ร้อง") ;
@@ -290,7 +292,7 @@ lin
snow_N = mkN (thword "หิมะ") ; snow_N = mkN (thword "หิมะ") ;
-- sock_N = regN "sock" ; -- sock_N = regN "sock" ;
-- song_N = regN "song" ; -- song_N = regN "song" ;
-- speak_V2 = dirV2 (irregV "speak" "spoke" "spoken") ; speak_V2 = mkV2 "พูด" ;
spit_V = mkV (thword "ถ่ม") ; spit_V = mkV (thword "ถ่ม") ;
split_V2 = mkV2 (thword "ผ่า") ; split_V2 = mkV2 (thword "ผ่า") ;
squeeze_V2 = mkV2 (thword "คั้น") ; squeeze_V2 = mkV2 (thword "คั้น") ;
@@ -326,13 +328,13 @@ lin
today_Adv = ss (thword "วัน" "นี้") ; today_Adv = ss (thword "วัน" "นี้") ;
tongue_N = mkN (thword "ลิ้น") ; tongue_N = mkN (thword "ลิ้น") ;
tooth_N = mkN (thword "ฟัน") ; tooth_N = mkN (thword "ฟัน") ;
-- train_N = regN "train" ; train_N = mkN (thword "รถ" "ไฟ") "ขนาน" ;
-- travel_V = (regDuplV "travel") ; -- travel_V = (regDuplV "travel") ;
tree_N = mkN (thword "ไม้") ; tree_N = mkN (thword "ไม้") ;
turn_V = mkV (thword "หัน") ; turn_V = mkV (thword "หัน") ;
-- ugly_A = regADeg "ugly" ; -- ugly_A = regADeg "ugly" ;
-- understand_V2 = dirV2 (irregV "understand" "understood" "understood") ; understand_V2 = mkV2 (mkV (thword "เข้า" "ไจ")) ;
-- university_N = regN "university" ; university_N = placeN (thword "มหา" "วิ" "ฑยา" "ลัย") ;
-- village_N = regN "village" ; -- village_N = regN "village" ;
vomit_V = mkV (thword "อ้วก") ; vomit_V = mkV (thword "อ้วก") ;
-- wait_V2 = mkV2 (regV "wait") forP ; -- wait_V2 = mkV2 (regV "wait") forP ;
@@ -349,11 +351,11 @@ lin
-- win_V2 = dirV2 (irregDuplV "win" "won" "won") ; -- win_V2 = dirV2 (irregDuplV "win" "won" "won") ;
wind_N = mkN (thword "ลม") ; wind_N = mkN (thword "ลม") ;
-- window_N = regN "window" ; -- window_N = regN "window" ;
-- wine_N = regN "wine" ; wine_N = mkN (thword "เหล้าอ" "งุ่น") "ขวด" ;
wing_N = mkN (thword "ปิก") ; wing_N = mkN (thword "ปิก") ;
wipe_V2 = mkV2 (thword "เช็ด") ; wipe_V2 = mkV2 (thword "เช็ด") ;
woman_N = personN (thword "หญิง") ; woman_N = personN (thword "หญิง") ;
-- wonder_VQ = mkVQ (regV "wonder") ; wonder_VQ = mkVQ (regV (thword "ประ" "หลาด" "ไจ")) ; ----
-- wood_N = regN "wood" ; -- wood_N = regN "wood" ;
worm_N = animalN (thword "หนอน") ; worm_N = animalN (thword "หนอน") ;
-- write_V2 = dirV2 (irregV "write" "wrote" "written") ; -- write_V2 = dirV2 (irregV "write" "wrote" "written") ;

View File

@@ -20,6 +20,10 @@ oper
= \s -> mkN s "หลัง" ; = \s -> mkN s "หลัง" ;
animalN : Str -> N animalN : Str -> N
= \s -> mkN s "ตัว" ; = \s -> mkN s "ตัว" ;
placeN : Str -> N
= \s -> mkN s "แห่ง" ;
verbalN : Str -> N
= \s -> mkN s "ข้อ" ;
mkN2 : N -> Str -> N2 mkN2 : N -> Str -> N2
= \n,p -> lin N2 (n ** {c2 = p}) ; = \n,p -> lin N2 (n ** {c2 = p}) ;
@@ -78,4 +82,11 @@ oper
mkV2A : V -> Str -> V2A = mkV2A : V -> Str -> V2A =
\v,p -> lin V2A (v ** {c2 = p}) ; \v,p -> lin V2A (v ** {c2 = p}) ;
mkAdv : Str -> Adv =
\s -> lin Adv (ss s) ;
mkPrep : Str -> Prep =
\s -> lin Prep (ss s) ;
} }

View File

@@ -18,7 +18,7 @@ concrete StructuralTha of Structural = CatTha **
-- both7and_DConj = sd2 "both" "and" ** {n = Pl} ; -- both7and_DConj = sd2 "both" "and" ** {n = Pl} ;
-- but_PConj = ss "but" ; -- but_PConj = ss "but" ;
by8agent_Prep = ss [] ; by8agent_Prep = ss [] ;
-- by8means_Prep = ss "by" ; by8means_Prep = ss "ผ่าน" ;
can8know_VV = {s = pen_s ; typ = VVPost} ; can8know_VV = {s = pen_s ; typ = VVPost} ;
can_VV = {s = way_s ; typ = VVPost} ; can_VV = {s = way_s ; typ = VVPost} ;
-- during_Prep = ss "during" ; -- during_Prep = ss "during" ;
@@ -38,21 +38,21 @@ concrete StructuralTha of Structural = CatTha **
-- here7from_Adv = ss ["from here"] ; -- here7from_Adv = ss ["from here"] ;
how_IAdv = ss (thword "อย่าง" "ไร") ; how_IAdv = ss (thword "อย่าง" "ไร") ;
-- how8many_IDet = mkDeterminer Pl ["how many"] ; -- how8many_IDet = mkDeterminer Pl ["how many"] ;
-- if_Subj = ss "if" ;
-- in8front_Prep = ss ["in front of"] ; -- in8front_Prep = ss ["in front of"] ;
i_Pron = ss chan_s ; i_Pron = ss chan_s ;
-- in_Prep = ss "in" ; if_Subj = ss (thword "ถ้า") ;
in_Prep = ss (thword "ใน") ;
it_Pron = ss "มัน" ; it_Pron = ss "มัน" ;
-- less_CAdv = ss "less" ; -- less_CAdv = ss "less" ;
many_Det = mkDet "หลาย" [] ; many_Det = mkDet "หลาย" [] ;
-- more_CAdv = ss "more" ; more_CAdv = {s = thword "มาก" "กว่า" ; p = []} ; ----
-- most_Predet = ss "most" ; -- most_Predet = ss "most" ;
-- much_Det = mkDeterminer Sg "much" ; -- much_Det = mkDeterminer Sg "much" ;
must_VV = {s = tog_s ; typ = VVPre} ; must_VV = {s = tog_s ; typ = VVPre} ;
no_Utt = ss may_s ; no_Utt = ss may_s ;
-- on_Prep = ss "on" ; on_Prep = ss "บน" ;
-- one_Quant = mkDeterminer Sg "one" ; -- one_Quant = mkDeterminer Sg "one" ;
-- only_Predet = ss "only" ; only_Predet = ss (thword "เฑา" "นั้น") ;
or_Conj = {s1 = [] ; s2 = "หริอ"} ; or_Conj = {s1 = [] ; s2 = "หริอ"} ;
-- otherwise_PConj = ss "otherwise" ; -- otherwise_PConj = ss "otherwise" ;
-- part_Prep = ss "of" ; -- part_Prep = ss "of" ;
@@ -100,9 +100,5 @@ concrete StructuralTha of Structural = CatTha **
right_Ord = ss (thword "ขวา") ; right_Ord = ss (thword "ขวา") ;
left_Ord = ss (thword "ซ้าย") ; left_Ord = ss (thword "ซ้าย") ;
at_Prep = ss (thword "ที่") ;
in_Prep = ss (thword "ใน") ;
if_Subj = ss (thword "ถ้า") ;
} }