forked from GitHub/gf-core
new unlexers ; work on Romance
This commit is contained in:
@@ -100,8 +100,8 @@ lin
|
||||
--
|
||||
|
||||
SlashV2 = slashTransVerb ;
|
||||
---- SlashVV2 = slashVerbVerb ;
|
||||
---- SlashAdv = slashAdverb ;
|
||||
SlashVV2 = slashVerbVerb ;
|
||||
SlashAdv = slashAdverb ;
|
||||
|
||||
IdRP = identRelPron ;
|
||||
FunRP = funRelPron ;
|
||||
@@ -113,15 +113,19 @@ lin
|
||||
--3 Questions and imperatives
|
||||
--
|
||||
|
||||
---- IDetCN d n = detNounPhrase d n ;
|
||||
IDetCN d n = let np = detNounPhrase d n in {
|
||||
s = \\c => np.s ! case2pform c ;
|
||||
g = pgen2gen np.g ;
|
||||
n = np.n
|
||||
};
|
||||
FunIP = funIntPron ;
|
||||
|
||||
QuestCl = questClause ;
|
||||
IntSlash = intSlash ;
|
||||
QuestAdv = questAdverbial ;
|
||||
|
||||
---- PosImpVP = imperVerbPhrase True ;
|
||||
---- NegImpVP = imperVerbPhrase False ;
|
||||
PosImpVP = imperVerbPhrase True ;
|
||||
NegImpVP = imperVerbPhrase False ;
|
||||
|
||||
IndicPhrase = indicUtt ;
|
||||
QuestPhrase = interrogUtt ;
|
||||
@@ -164,7 +168,7 @@ lin
|
||||
PhrManyCN = useCommonNounPhrase plural ;
|
||||
PhrIP ip = postfixSS "?" ip ;
|
||||
PhrIAdv ia = postfixSS "?" ia ;
|
||||
---- PhrVPI = verbUtterance ;
|
||||
PhrVPI = verbUtterance ;
|
||||
|
||||
OnePhr p = p ;
|
||||
ConsPhr = cc2 ;
|
||||
|
||||
@@ -943,22 +943,24 @@ oper
|
||||
|
||||
ClauseSlashNounPhrase = Clause ** Complement ;
|
||||
|
||||
slashTransVerb : NounPhrase -> TransVerb -> ClauseSlashNounPhrase =
|
||||
\jean,aimer -> variants {} ; ----
|
||||
{- ----
|
||||
predVerbGroupClause jean (predClauseGroup aimer (complVerb aimer)) **
|
||||
complementOfTransVerb aimer ;
|
||||
dummyNounPhrase : NounPhrase = mkNameNounPhrase [] Masc ;
|
||||
|
||||
slashTransVerb : NounPhrase -> TransVerb -> ClauseSlashNounPhrase = \np,v ->
|
||||
sats2clause (mkSatsObject np v dummyNounPhrase) **
|
||||
complementOfTransVerb v ;
|
||||
|
||||
|
||||
slashVerbVerb : NounPhrase -> VerbVerb -> TransVerb -> ClauseSlashNounPhrase =
|
||||
\jean,vouloir,aimer ->
|
||||
predVerbGroupClause jean
|
||||
(predClauseGroup aimer (complVerbVerb vouloir
|
||||
(predVerbGroup True {s = [] ; a = Simul} (predClauseGroup aimer (complVerb aimer))))) **
|
||||
complementOfTransVerb aimer ;
|
||||
\subj, verb, tv ->
|
||||
sats2clause (
|
||||
insertExtrapos
|
||||
(mkSats subj verb)
|
||||
(\\_ => prepCase verb.c ++ tv.s ! VInfin)
|
||||
) ** complementOfTransVerb tv ;
|
||||
|
||||
slashAdverb : Clause -> {s : Str ; c : CaseA} -> ClauseSlashNounPhrase =
|
||||
\ilhabite,dans -> ilhabite ** {s2 = dans.s ; c = dans.c} ;
|
||||
-}
|
||||
|
||||
|
||||
--2 Relative pronouns and relative clauses
|
||||
--
|
||||
@@ -1165,11 +1167,10 @@ oper
|
||||
|
||||
Imperative = {s : Gender => Number => Str} ;
|
||||
|
||||
{- -----
|
||||
imperVerbPhrase : VerbPhrase -> Imperative = \dormir ->
|
||||
{s = \\g,n => dormir.s ! g ! VPF Simul (vImper n P2)
|
||||
imperVerbPhrase : Bool -> VerbPhrase -> Imperative = \b,dormir ->
|
||||
{s = \\g,n => dormir.s ! VIImperat b n ! g ! n ! P2
|
||||
} ;
|
||||
-}
|
||||
|
||||
imperUtterance : Number -> Imperative -> Utterance = \n,I ->
|
||||
ss (I.s ! Masc ! n ++ "!") ;
|
||||
|
||||
@@ -1397,6 +1398,9 @@ oper
|
||||
useCommonNounPhrase : Number -> CommNounPhrase -> Utterance = \n,mec ->
|
||||
useNounPhrase (indefNounPhrase n mec) ;
|
||||
|
||||
verbUtterance : VerbPhrase -> Utterance = \vp ->
|
||||
ss (vp.s ! VIInfinit ! Masc ! Sg ! P3) ;
|
||||
|
||||
|
||||
-- one-form variants
|
||||
|
||||
|
||||
Reference in New Issue
Block a user