Files
gf-rgl/src/translator/TranslateChi.gf

55 lines
1.2 KiB
Plaintext

--# -path=.:../chunk:alltenses
concrete TranslateChi of Translate =
TenseChi,
NounChi - [PPartNP],
AdjectiveChi,
NumeralChi,
SymbolChi [
PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP
],
ConjunctionChi,
VerbChi - [
UseCopula, -- just removed
SlashV2V, PassV2, ComplVV, -- generalized
CompAP, AdvVP -- Chi exceptions
],
AdverbChi,
PhraseChi,
SentenceChi,
QuestionChi - [
QuestCl -- Chi exception
],
RelativeChi,
IdiomChi [
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
neutr, sjalv
],
ConstructionChi,
DocumentationChi,
ChunkChi,
ExtensionsChi [CompoundCN,AdAdV,UttAdV,ApposNP,MkVPI, MkVPS, PredVPS, PassVPSlash, PassAgentVPSlash],
DictionaryChi **
open ResChi, ParadigmsChi, SyntaxChi, Prelude, (G = GrammarChi), (E = ExtraChi) in {
flags
literal = Symb ;
coding = utf8 ;
-- Chinese-specific overrides
lin
CompAP = E.CompBareAP | G.CompAP ; -- he good | he is good
AdvVP vp adv = G.AdvVP vp adv | E.TopicAdvVP vp adv ; -- he *today* here sleeps | *today* he here sleeps
QuestCl cl = G.QuestCl cl | E.QuestRepV cl ; -- he comes 'ma' | he come not come
}