1
0
forked from GitHub/gf-core

added refactored TranslateFin. Starting to get confident that the refactoring is on the right track.

This commit is contained in:
aarne
2014-01-20 21:52:14 +00:00
parent 68bee264a5
commit 355777e0ca
3 changed files with 57237 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
--# -path=.:../finnish/stemmed:../finnish:../abstract:../common:../english:../finnish/kotus:../api
concrete TranslateFin of Translate =
TenseX, ---- TODO add potential forms
CatFin,
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 - [
SlashV2V, PassV2, UseCopula, ComplVV,
VPSlashPrep -- with empty prepositions, a cyclic rule that leads to overgeneration
],
AdverbFin,
PhraseFin,
SentenceFin,
QuestionFin,
RelativeFin,
IdiomFin [NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP],
ConstructionFin,
DocumentationFin,
-- ExtensionsFin,
DictionaryFin
**
open MorphoFin, ResFin, ParadigmsFin, SyntaxFin, StemFin, (E = ExtraFin), (G = GrammarFin), Prelude in {
flags literal=Symb ; coding = utf8 ;
-- the overrides -----
lin
UsePron p = G.UsePron (E.ProDrop p) | G.UsePron p ;
PossPron p = E.ProDropPoss p | G.PossPron p ;
}