mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
--# -path=.:../../lib/src/chunk:../../lib/src/translator:../phrasebook/gfos
|
|
|
|
concrete AppSwe of App =
|
|
TranslateSwe - [
|
|
-- Verb
|
|
SlashV2a,ComplSlash, -- replaced by a more efficient inlined version
|
|
SlashV2V,
|
|
Slash2V3, Slash3V3, SlashV2S, SlashV2Q, SlashV2A,
|
|
SlashVV, SlashV2VNP,
|
|
AdvVPSlash, AdVVPSlash, VPSlashPrep,
|
|
-- Sentence
|
|
SlashVP, SlashVS,
|
|
PredSCVP,
|
|
AdvSlash, SlashPrep, SlashVS,
|
|
EmbedS, EmbedQS, EmbedVP, RelS,
|
|
-- Question
|
|
ComplSlashIP,AdvQVP,AddAdvQVP,QuestQVP,
|
|
-- Idiom
|
|
CleftNP, CleftAdv,
|
|
ImpP3,
|
|
-- Construction
|
|
-- Extensions
|
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
|
]
|
|
|
|
,PhrasebookSwe - [PSentence, PQuestion, PGreetingMale, PGreetingFemale, GObjectPlease, open_Adv, closed_A, open_A]
|
|
|
|
** open MorphoSwe, ResSwe, ParadigmsSwe, SyntaxSwe, CommonScand, (E = ExtraSwe), Prelude in {
|
|
|
|
flags
|
|
literal=Symb ;
|
|
|
|
-- to suppress punctuation
|
|
lin
|
|
PSentence, PQuestion = \s -> lin Text (mkUtt s) ;
|
|
PGreetingMale, PGreetingFemale = \s -> lin Text s ;
|
|
GObjectPlease o = lin Text (mkUtt o) ;
|
|
PhrasePhr p = {s = "+" ++ p.s} | p ;
|
|
Phrase_Chunk p = p ;
|
|
|
|
|
|
ComplV2V v np vp = mkVP v np vp ;
|
|
ComplV2A v np vp = mkVP v np vp ;
|
|
ComplV2Q v np vp = mkVP v np vp ;
|
|
ComplV2S v np vp = mkVP v np vp ;
|
|
ComplV3 v np vp = mkVP v np vp ;
|
|
|
|
|
|
ComplV2 v np = mkVP v np ;
|
|
|
|
PassV2 v2 = SyntaxSwe.passiveVP v2 ;
|
|
|
|
}
|