mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-28 05:52:51 -06:00
working through translator/Extensions with some reorganization and generalizations
This commit is contained in:
@@ -11,10 +11,16 @@ concrete TranslateEng of Translate =
|
||||
addGenitiveS
|
||||
],
|
||||
ConjunctionEng,
|
||||
VerbEng - [SlashV2V, PassV2, UseCopula, ComplVV],
|
||||
VerbEng - [
|
||||
SlashV2V, PassV2, UseCopula, ComplVV, -- generalized in Extensions
|
||||
ComplVS, SlashV2S, ComplSlash -- have variants in Eng
|
||||
],
|
||||
AdverbEng,
|
||||
PhraseEng,
|
||||
SentenceEng - [UseCl], -- replaced by UseCl | ContractedUseCl
|
||||
SentenceEng - [
|
||||
---- PredVP, -- to be replaced by PredVPS, QuestVPS, QuestIAdvVPS in Extensions
|
||||
UseCl -- replaced by UseCl | ContractedUseCl
|
||||
],
|
||||
QuestionEng,
|
||||
RelativeEng,
|
||||
IdiomEng [NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP],
|
||||
@@ -23,14 +29,21 @@ concrete TranslateEng of Translate =
|
||||
|
||||
ExtensionsEng,
|
||||
DictionaryEng **
|
||||
open MorphoEng, ResEng, ParadigmsEng, (S = SentenceEng), (E = ExtraEng), Prelude in {
|
||||
open MorphoEng, ResEng, ParadigmsEng, (G = GrammarEng), (E = ExtraEng), Prelude in {
|
||||
|
||||
flags
|
||||
literal=Symb ;
|
||||
|
||||
-- exceptional linearizations
|
||||
lin
|
||||
UseCl t p cl = S.UseCl t p cl | E.ContractedUseCl t p cl ;
|
||||
UseCl t p cl =
|
||||
G.UseCl t p cl -- I am here
|
||||
| E.ContractedUseCl t p cl -- I'm here
|
||||
;
|
||||
|
||||
ComplVS vs s = G.ComplVS vs s | E.ComplBareVS vs s ;
|
||||
SlashV2S vs s = G.SlashV2S vs s | E.SlashBareV2S vs s ;
|
||||
ComplSlash vps np = G.ComplSlash vps np | E.ComplSlashPartLast vps np ;
|
||||
|
||||
PPos = {s = [] ; p = CPos} ;
|
||||
PNeg = {s = [] ; p = CNeg True} | {s = [] ; p = CNeg False} ;
|
||||
|
||||
Reference in New Issue
Block a user