summaryrefslogtreecommitdiff
path: root/old-lib/resource/thai/SentenceTha.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2009-06-22 15:39:08 +0000
committeraarne <aarne@chalmers.se>2009-06-22 15:39:08 +0000
commite89fdae2fa1626348d8025824a7469252fa85e42 (patch)
treec7d46bbd0494043b4bd6f917a25a7687517d0547 /old-lib/resource/thai/SentenceTha.gf
parent3049b59b35b25381a7c6787444165c200d66e08b (diff)
next-lib renamed to lib, lib to old-lib
Diffstat (limited to 'old-lib/resource/thai/SentenceTha.gf')
-rw-r--r--old-lib/resource/thai/SentenceTha.gf61
1 files changed, 61 insertions, 0 deletions
diff --git a/old-lib/resource/thai/SentenceTha.gf b/old-lib/resource/thai/SentenceTha.gf
new file mode 100644
index 000000000..e4185f61f
--- /dev/null
+++ b/old-lib/resource/thai/SentenceTha.gf
@@ -0,0 +1,61 @@
+concrete SentenceTha of Sentence = CatTha **
+ open Prelude, StringsTha, ResTha in {
+
+ flags optimize=all_subs ;
+
+ lin
+
+ PredVP np vp = {s = \\p => np.s ++ vp.s ! p} ;
+
+-- PredSCVP sc vp = mkClause sc.s (agrP3 Sg) vp ;
+
+ ImpVP vp = {
+ s = table {
+ Pos => vp.s ! Pos ++ si_s ;
+ Neg => yaa_s ++ vp.s ! Pos
+ }
+ } ;
+-- SlashV2 np v2 =
+-- mkClause (np.s ! Nom) np.a (predV v2) ** {c2 = v2.c2} ;
+--
+-- SlashVVV2 np vv v2 =
+-- mkClause (np.s ! Nom) np.a
+-- (insertObj (\\a => infVP vv.isAux (predV v2) a) (predVV vv)) **
+-- {c2 = v2.c2} ;
+--
+-- AdvSlash slash adv = {
+-- s = \\t,a,b,o => slash.s ! t ! a ! b ! o ++ adv.s ;
+-- c2 = slash.c2
+-- } ;
+--
+-- SlashPrep cl prep = cl ** {c2 = prep.s} ;
+--
+-- EmbedS s = {s = conjThat ++ s.s} ;
+-- EmbedQS qs = {s = qs.s ! QIndir} ;
+-- EmbedVP vp = {s = infVP False vp (agrP3 Sg)} ; --- agr
+--
+ UseCl t a p cl = {s = t.s ++ a.s ++ p.s ++ cl.s ! p.p} ;
+ UseQCl t a p cl = {
+ s = \\q => t.s ++ a.s ++ p.s ++
+ case q of {QIndir => waa_s ; _ => []} ++
+ cl.s ! p.p
+ } ;
+-- UseRCl t a p cl = {
+-- s = \\r => t.s ++ a.s ++ p.s ++ cl.s ! t.t ! a.a ! ctr p.p ! r ;
+-- c = cl.c
+-- } ;
+--
+-- AdvS a s = {s = a.s ++ "," ++ s.s} ;
+--
+-- oper
+-- ctr = contrNeg True ; -- contracted negations
+--}
+--
+--{-
+----- todo: tense of embedded Slash
+--
+-- SlashVSS np vs s =
+-- mkClause (np.s ! Nom) np.a
+-- (insertObj (\\_ => conjThat ++ s.s) (predV vs)) **
+-- {c2 = s.c2} ;
+}