From 824cf3222634baff7a75ce97a4f3d78d6951c0dc Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 11 Oct 2013 08:19:04 +0000 Subject: integration of Parse with Phrasebook, to get idiomatic translations whenever possible --- examples/translator/TranslateEng.gf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/translator/TranslateEng.gf (limited to 'examples/translator/TranslateEng.gf') diff --git a/examples/translator/TranslateEng.gf b/examples/translator/TranslateEng.gf new file mode 100644 index 000000000..bfe16b263 --- /dev/null +++ b/examples/translator/TranslateEng.gf @@ -0,0 +1,13 @@ +--# -path=.:alltenses:../phrasebook:../../lib/src/english + +concrete TranslateEng of Translate = ParseEng, PhrasebookEng ** open SyntaxEng, (E = ExtraEng), Prelude in { + +lin + PPhr p = lin Text p ; + NP_Person np = {name = lin NP np ; isPron = False ; poss = E.GenNP np} ; + NP_Object np = lin NP np ; + NP_Item np = lin NP np ; + NP_Place np0 = let np = lin NP np0 in + {name = np ; at = SyntaxEng.mkAdv in_Prep np ; to = SyntaxEng.mkAdv to_Prep np} ; + +} \ No newline at end of file -- cgit v1.2.3