diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-09-23 09:52:10 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-09-23 09:52:10 +0000 |
| commit | ffb5b007488e4f36079d3c319c299fb865ce0497 (patch) | |
| tree | 6ae623241f74428f8ef6ea6cffffa61f57b5c385 /next-lib/src/telugu/SentenceTel.gf | |
| parent | 47abd5327d5f2764dbb3fa26c7fa98b76944b6c6 (diff) | |
started Telugu in next-lib
Diffstat (limited to 'next-lib/src/telugu/SentenceTel.gf')
| -rw-r--r-- | next-lib/src/telugu/SentenceTel.gf | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/next-lib/src/telugu/SentenceTel.gf b/next-lib/src/telugu/SentenceTel.gf new file mode 100644 index 000000000..b067131ae --- /dev/null +++ b/next-lib/src/telugu/SentenceTel.gf @@ -0,0 +1,66 @@ +--concrete SentenceTel of Sentence = CatTel ** open Prelude, ResTel in { +-- +-- flags optimize=all_subs ; +-- +-- lin +-- +-- PredVP np vp = mkClause np vp ; +-- +---- PredSCVP sc vp = mkClause sc.s (agrP3 Sg) vp ; +---- +---- ImpVP vp = { +---- s = \\pol,n => +---- let +---- agr = AgP2 (numImp n) ; +---- verb = infVP True vp agr ; +---- dont = case pol of { +---- CNeg True => "don't" ; +---- CNeg False => "do" ++ "not" ; +---- _ => [] +---- } +---- in +---- dont ++ verb +---- } ; +---- +---- SlashVP np vp = +---- mkClause (np.s ! Nom) np.a vp ** {c2 = vp.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} ; +---- +---- SlashVS np vs slash = +---- mkClause (np.s ! Nom) np.a +---- (insertObj (\\_ => conjThat ++ slash.s) (predV vs)) ** +---- {c2 = slash.c2} ; +---- +---- 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 ! t.t ! a.a ! ctr p.p ! ODir +---- } ; +---- UseQCl t a p cl = { +---- s = \\q => t.s ++ a.s ++ p.s ++ cl.s ! t.t ! a.a ! ctr p.p ! q +---- } ; +---- 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 +---- } ; +---- UseSlash t a p cl = { +---- s = t.s ++ a.s ++ p.s ++ cl.s ! t.t ! a.a ! ctr p.p ! ODir ; +---- c2 = cl.c2 +---- } ; +---- +---- AdvS a s = {s = a.s ++ "," ++ s.s} ; +---- +---- RelS s r = {s = s.s ++ "," ++ r.s ! agrP3 Sg} ; +---- +---- oper +---- ctr = contrNeg True ; -- contracted negations +---- +--} |
