--# -path=.:..:../../abstract:../../common:../../english:../kotus concrete ParseFin of ParseEngAbs = TenseX, ---- - [Pol, PNeg, PPos], CatFin, NounFin - [PPartNP], AdjectiveFin, NumeralFin, SymbolFin [PN, Symb, MkSymb, SymbPN], ConjunctionFin, VerbFin - [SlashV2V, PassV2, UseCopula, ComplVV], AdverbFin, PhraseFin, SentenceFin, QuestionFin, RelativeFin, IdiomFin [NP, VP, Tense, Cl, ProgrVP, ExistNP] , ExtraFin [NP, Quant, VPSlash, VP, Tense, GenNP, PassVPSlash, Voc, RP, GenRP, Temp, Tense, Pol, Conj, VPS, ListVPS, S, MkVPS, BaseVPS, ConsVPS, ConjVPS, PredVPS, VPI, VPIForm, VPIInf, VPIPresPart, ListVPI, VV, MkVPI, BaseVPI, ConsVPI, ConjVPI, ComplVPIVV] , DictEngFin ** open MorphoFin, ResFin, ParadigmsFin, SyntaxFin, StemFin, Prelude in { flags literal=Symb ; coding = utf8 ; lin ComplVV v ant pol vp = insertObj (\\_,b,a => infVPGen pol.p v.sc b a vp v.vi) (predSV {s = v.s ; sc = case vp.sc of { NPCase Nom => v.sc ; -- minun täytyy pestä auto c => c -- minulla täytyy olla auto } ; h = v.h ; p = v.p } ) ; myself_NP = mkNP (lin Pron (mkPronoun "itse" "itsen" "itseä" "itsenä" "itseen" Sg P1)) ; yourselfSg_NP = mkNP (lin Pron (mkPronoun "itse" "itsen" "itseä" "itsenä" "itseen" Sg P2)) ; himself_NP = mkNP (lin Pron (mkPronoun "itse" "itsen" "itseä" "itsenä" "itseen" Sg P3)) ; herself_NP = mkNP (lin Pron (mkPronoun "itse" "itsen" "itseä" "itsenä" "itseen" Sg P3)) ; itself_NP = mkNP (lin Pron (mkPronoun "itse" "itsen" "itseä" "itsenä" "itseen" Sg P3)) ; ourself_NP = mkNP (lin Pron (mkPronoun "itse" "itsen" "itseä" "itsenä" "itseen" Pl P1)) ; yourselfPl_NP = mkNP (lin Pron (mkPronoun "itse" "itsen" "itseä" "itsenä" "itseen" Pl P2)) ; themself_NP = mkNP (lin Pron (mkPronoun "itse" "itsen" "itseä" "itsenä" "itseen" Pl P3)) ; themselves_NP = mkNP (lin Pron (mkPronoun "itse" "itsen" "itseä" "itsenä" "itseen" Pl P3)) ; CompoundCN num noun cn = { s = \\nf => num.s ! Sg ! Nom ++ noun.s ! 0 ++ BIND ++ cn.s ! nf ; h = cn.h } ; PassVPSlash = passVPSlash ; oper passVPSlash : VPSlash -> ResFin.VP = \vp -> lin VP { s = \\_ => vp.s ! VIPass ; s2 = vp.s2 ; adv = vp.adv ; ext = vp.ext ; qp = vp.qp ; isNeg = vp.isNeg ; sc = vp.c2.c } ; lin DashCN noun1 noun2 = { s = \\nf => noun1.s ! 0 ++ BIND ++ noun2.s ! nf ; h = noun2.h } ; PastPartAP v = {s = \\_,nf => (sverb2verbSep v).s ! PastPartPass (AN nf)} ; PredVPosv np vp = mkCl np vp ; ---- -- Ant -> Pol -> VPSlash -> RS ; --- here replaced by a relative clause PastPartRS ant pol vps = mkRS ant pol (mkRCl which_RP (passVPSlash (lin VPSlash vps))) ; ApposNP np1 np2 = { s = \\c => np1.s ! c ++ "," ++ np2.s ! c ; a = np1.a ; isPron = np1.isPron ; isNeg = np1.isNeg } ; GerundN v = mkN (lin V v) ; GerundAP v = {s = \\_ => (snoun2nounSep (sverb2nounPresPartAct v)).s} ; OrdCompar a = snoun2nounSep {s = \\nc => a.s ! Compar ! SAN nc ; h = a.h} ; PositAdVAdj a = {s = a.s ! Posit ! SAAdv} ; -- A -> AdV really UseQuantPN quant pn = { s = \\c => let k = (npform2case Sg c) in quant.s1 ! Sg ! k ++ snoun2np Sg pn ! c ++ quant.s2 ! pn.h ; a = agrP3 Sg ; isPron = False ; isNeg = quant.isNeg } ; -- V2V -> Ant -> Pol -> VP -> VPSlash SlashV2V v ant p vp = insertObj (\\_,b,a => infVPGen p.p v.sc b a vp v.vi) (predSV v) ** {c2 = v.c2} ; -- SlashSlashV2V : V2V -> Ant -> Pol -> VPSlash -> VPSlash ; CompS s = {s = \\_ => "että" ++ s.s} ; -- S -> Comp ---- what are these expected to do ? 29/3/2013 CompVP ant pol vp = {s = \\a => infVPGen pol.p vp.sc Pos a vp Inf1} ; -- VP -> Comp that_RP = which_RP ; no_RP = which_RP ; UttAdV a = a ; UncNeg = negativePol ; PresPartRS ant pol vp = mkRS ant pol (mkRCl which_RP vp) ; ---- present participle attr "teräviä ottava" PredVPosv np vp = mkCl np vp ; ---- OSV yes, but not for Cl PredVPovs np vp = mkCl np vp ; ---- SVO EmptyRelSlash cls = mkRCl which_RP cls ; AdAdV ada adv = {s = ada.s ++ adv.s} ; -- SlashVPIV2V : V2V -> Pol -> VPI -> VPSlash ; -- VPSlashVS : VS -> VP -> VPSlash ; } {- -- 19 constructors missing, as revealed by the 3k sentences from Penn 28/3(2013 -- [AdAdV] -- [AdvAP] -- [CompS] -- [CompVP] -- [EmptyRelSlash] -- [GenRP] [GerundAP] [GerundN] -- [OrdCompar] -- [PositAdVAdj] -- [PredVPovs] -- [PresPartRS] -- [SSubjS] [SlashSlashV2V] -- [SlashV2V] [SlashVPIV2V] -- [UncNeg] -- [UttAdV] [VPSlashVS] ParseEngAbs> pg -missing | wf -file=missing-ParseFin AddAdvQVP AdnCAdv AdvIAdv AdvIP AdvQVP BaseIAdv CAdvAP CNNumNP CompIAdv CompIP CompQS CompS CompVP ComparAdvAdj ComparAdvAdjS ComplN2 ComplN3 ComplSlashIP ComplVQ ConjIAdv ConsIAdv EmbedQS GerundAP GerundN IdetCN IdetIP IdetQuant OrdCompar PositAdVAdj PredVPovs PrepIP QuestCl QuestIAdv QuestIComp QuestQVP QuestSlash QuestVP SlashSlashV2V SlashV2Q SlashV2V SlashV2VNP SlashVPIV2V Use2N3 Use3N3 UseN2 UseQCl UseQuantPN UttInterj UttQS VPSlashVS -}