diff options
| author | aarne <aarne@chalmers.se> | 2014-11-15 09:43:15 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2014-11-15 09:43:15 +0000 |
| commit | 4b075da67841c9f897749f3e46b1c54c9194ba7a (patch) | |
| tree | 24ea8691726bd503028461918194d1b70f26b5e4 /examples/phrasebook/SentencesJpn.gf | |
| parent | c707575bd7751ac3b03371edba478e37d3488448 (diff) | |
a compilable stub of PhrasebookJpn. Sent to a native speaker expert for completions.
Diffstat (limited to 'examples/phrasebook/SentencesJpn.gf')
| -rw-r--r-- | examples/phrasebook/SentencesJpn.gf | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/phrasebook/SentencesJpn.gf b/examples/phrasebook/SentencesJpn.gf new file mode 100644 index 000000000..bc3605fbd --- /dev/null +++ b/examples/phrasebook/SentencesJpn.gf @@ -0,0 +1,36 @@ +concrete SentencesJpn of Sentences = NumeralJpn ** + SentencesI - [ + VDrink,VEat,VRead,VWait,VWrite, + phrasePlease, mkSentence, mkPhrase, + NameNN, + PSentence, PQuestion, GObjectPlease + + ] +with + (Syntax = SyntaxJpn), +-- (Symbolic = SymbolicJpn), + (Lexicon = LexiconJpn) ** open SyntaxJpn, ParadigmsJpn in { + +lin + VDrink = v2toVP drink_V2 ; + VEat = v2toVP eat_V2 ; + VRead = v2toVP read_V2 ; + VWait = v2toVP wait_V2 ; + VWrite = v2toVP write_V2 ; + + NameNN = mkNP (mkPN "NN") ; + + PSentence s = mkText (mkPhr (mkUtt s)) | lin Text (mkPhr (mkUtt s)) ; -- optional '.' + PQuestion s = mkText (mkPhr (mkUtt s)) | lin Text (mkPhr (mkUtt s)) ; -- optional '?' + + GObjectPlease o = lin Text (mkPhr noPConj (mkUtt o) please_Voc) | lin Text (mkPhr (mkUtt o)) ; + +oper + v2toVP : V2 -> VP = \v2 -> mkVP <lin V (v2 ** {needSubject = True}) : V> ; + + phrasePlease : Utt -> Text = \u -> lin Text (mkPhr u) | lin Text (mkPhr noPConj u please_Voc) ; + + mkPhrase : Utt -> Text = \u -> lin Text (mkPhr u) ; -- no punctuation + mkSentence : Utt -> Text = \t -> lin Text (postfixSS "." (mkPhr t) | (mkPhr t)) ; -- optional . + +} |
