diff options
| author | aarne <aarne@chalmers.se> | 2014-04-02 21:34:40 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2014-04-02 21:34:40 +0000 |
| commit | cae40d2b0e087d1e635557adc1d62bed37da2bb7 (patch) | |
| tree | 322c6e277ce958a12800eb79c750301c633f5fa4 /examples/app/AppFin.gf | |
| parent | 0a8034c008fec8da01f27c64b6a30d5cb3d68f94 (diff) | |
Android app sources in examples/app - read README for advice
Diffstat (limited to 'examples/app/AppFin.gf')
| -rw-r--r-- | examples/app/AppFin.gf | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/examples/app/AppFin.gf b/examples/app/AppFin.gf new file mode 100644 index 000000000..9bcbaf579 --- /dev/null +++ b/examples/app/AppFin.gf @@ -0,0 +1,70 @@ +--# -path=.:src/chunk:src/translator:../examples/phrasebook/gfos +--# -path=.:src/chunk:src/finnish/stemmed:src/finnish:src/api:src/translator:../examples/phrasebook/gfos + +concrete AppFin of App = + TenseX, + NounFin - [ + PPartNP, + UsePron, PossPron -- Fin specific: replaced by variants with prodrop + ], + AdjectiveFin, + NumeralFin, + SymbolFin [ + PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP + ], + ConjunctionFin, + VerbFin [ + UseV,ComplVV,SlashV2a,ComplSlash,UseComp,CompAP,CompNP,CompAdv,CompCN + ], + AdverbFin, + PhraseFin, + SentenceFin [ + PredVP,SlashVP,ImpVP, + UseCl,UseQCl,UseSlash,SSubjS,UseRCl + ], + QuestionFin - [ + ComplSlashIP,AdvQVP,AddAdvQVP,QuestQVP + ], + RelativeFin, + IdiomFin [ + NP, VP, Tense, Cl, ProgrVP, ExistNP, + neutr, sjalv + ], +---- ConstructionFin, + + ChunkFin, + + ExtensionsFin [ + CompoundCN,AdAdV,UttAdV,ApposNP, + MkVPI, MkVPS, PredVPS, that_RP, who_RP + ], + + DocumentationFin, + DictionaryFin + + ,PhrasebookFin - [PSentence, PQuestion, PGreetingMale, PGreetingFemale, GObjectPlease, open_A] + + ** open MorphoFin, ResFin, ParadigmsFin, SyntaxFin, CommonScand, (E = ExtraFin), (G = GrammarFin), Prelude in { + +flags + literal=Symb ; + +-- pro-drop exceptions: here as second rather than first alternative +lin + UsePron p = G.UsePron p | G.UsePron (E.ProDrop p) ; + PossPron p = G.PossPron p | E.ProDropPoss p ; + +-- to suppress punctuation +lin + PSentence, PQuestion = \s -> lin Text (mkUtt s) ; + PGreetingMale, PGreetingFemale = \s -> lin Text s ; + + GObjectPlease o = lin Text (mkUtt o) ; + + +lin + PhrasePhr p = {s = "+" ++ p.s} | p ; + + Phrase_Chunk p = p ; + +} |
