mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 16:42:51 -06:00
added TranslateChi and TranslateFin
This commit is contained in:
14
examples/translator/TranslateFin.gf
Normal file
14
examples/translator/TranslateFin.gf
Normal file
@@ -0,0 +1,14 @@
|
||||
--# -path=.:../phrasebook:../../lib/src/finnish/stemmed:../../lib/src/finnish:../../lib/src/api:../../lib/src/english:alltenses
|
||||
|
||||
concrete TranslateFin of Translate = ParseFin, PhrasebookFin - [at_Prep] ** open SyntaxFin, (E = ExtraFin), 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 = SyntaxFin.mkAdv in_Prep np ;
|
||||
to = SyntaxFin.mkAdv to_Prep np ; from = SyntaxFin.mkAdv from_Prep np} ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user