forked from GitHub/gf-rgl
Updating romance langs (mkMU) (#442)
* updating romance langs for percentage in Spa * Delete Setup_compare.hs
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
--# -path=.:../romance:../abstract:../common:prelude
|
--# -path=.:../romance:../abstract:../common:prelude
|
||||||
|
|
||||||
concrete CatCat of Cat =
|
concrete CatCat of Cat =
|
||||||
CommonX - [SC,Temp,TTAnt,Tense,TPres,TPast,TFut,TCond,Pol] **
|
CommonX - [SC,Temp,TTAnt,Tense,TPres,TPast,TFut,TCond,Pol,MU] **
|
||||||
CatRomance with -- JS restore TPast for notpresent
|
CatRomance with -- JS restore TPast for notpresent
|
||||||
(ResRomance = ResCat) ;
|
(ResRomance = ResCat) ;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ concrete GrammarCat of Grammar =
|
|||||||
RelativeCat,
|
RelativeCat,
|
||||||
ConjunctionCat,
|
ConjunctionCat,
|
||||||
PhraseCat,
|
PhraseCat,
|
||||||
TextX - [SC,Temp,Tense,Pol,PPos,PNeg],
|
TextX - [SC,Temp,Tense,Pol,PPos,PNeg,MU],
|
||||||
IdiomCat,
|
IdiomCat,
|
||||||
StructuralCat,
|
StructuralCat,
|
||||||
TenseCat,
|
TenseCat,
|
||||||
|
|||||||
@@ -588,6 +588,6 @@ oper
|
|||||||
mk2V2 : V -> Prep -> V2 ;
|
mk2V2 : V -> Prep -> V2 ;
|
||||||
dirV2 : V -> V2 ;
|
dirV2 : V -> V2 ;
|
||||||
|
|
||||||
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False; hasArt=False} ;
|
||||||
|
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
--# -path=.:../romance:../common:../abstract:../common:prelude
|
--# -path=.:../romance:../common:../abstract:../common:prelude
|
||||||
|
|
||||||
concrete CatFre of Cat = CommonX - [SC,Temp,TTAnt,Tense,TPres,TPast,TFut,TCond,Pol]
|
concrete CatFre of Cat = CommonX - [SC,Temp,TTAnt,Tense,TPres,TPast,TFut,TCond,Pol,MU]
|
||||||
** CatRomance with
|
** CatRomance with
|
||||||
(ResRomance = ResFre) ;
|
(ResRomance = ResFre) ;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ concrete GrammarFre of Grammar =
|
|||||||
RelativeFre,
|
RelativeFre,
|
||||||
ConjunctionFre,
|
ConjunctionFre,
|
||||||
PhraseFre,
|
PhraseFre,
|
||||||
TextX - [SC,Temp,Tense,Pol,PPos,PNeg],
|
TextX - [SC,Temp,Tense,Pol,PPos,PNeg,MU],
|
||||||
IdiomFre,
|
IdiomFre,
|
||||||
StructuralFre,
|
StructuralFre,
|
||||||
TenseFre,
|
TenseFre,
|
||||||
|
|||||||
@@ -590,6 +590,6 @@ oper
|
|||||||
_ => VFalse -- prend-il
|
_ => VFalse -- prend-il
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False; hasArt=False} ;
|
||||||
|
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
--# -path=.:../romance:../abstract:../common:prelude
|
--# -path=.:../romance:../abstract:../common:prelude
|
||||||
|
|
||||||
concrete CatIta of Cat = CommonX - [SC,Temp,TTAnt,Tense,TPres,TPast,TFut,TCond,Pol] ** CatRomance with
|
concrete CatIta of Cat = CommonX - [SC,Temp,TTAnt,Tense,TPres,TPast,TFut,TCond,Pol,MU] ** CatRomance with
|
||||||
(ResRomance = ResIta) ;
|
(ResRomance = ResIta) ;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ concrete GrammarIta of Grammar =
|
|||||||
RelativeIta,
|
RelativeIta,
|
||||||
ConjunctionIta,
|
ConjunctionIta,
|
||||||
PhraseIta,
|
PhraseIta,
|
||||||
TextX - [SC,Temp,Tense,Pol,PPos,PNeg,TPres,TPast,TFut,TCond],
|
TextX - [SC,Temp,Tense,Pol,PPos,PNeg,TPres,TPast,TFut,TCond,MU],
|
||||||
IdiomIta,
|
IdiomIta,
|
||||||
StructuralIta,
|
StructuralIta,
|
||||||
TenseIta,
|
TenseIta,
|
||||||
|
|||||||
@@ -589,6 +589,6 @@ oper
|
|||||||
mk2V2 : V -> Prep -> V2 ;
|
mk2V2 : V -> Prep -> V2 ;
|
||||||
dirV2 : V -> V2 ;
|
dirV2 : V -> V2 ;
|
||||||
|
|
||||||
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False; hasArt=False} ;
|
||||||
|
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
--# -path=.:../romance:../abstract:../common:prelude
|
--# -path=.:../romance:../abstract:../common:prelude
|
||||||
|
|
||||||
concrete CatPor of Cat = CommonX -
|
concrete CatPor of Cat = CommonX -
|
||||||
[SC,Temp,TTAnt,Tense,TPres,TPast,TFut,TCond,Pol] ** CatRomance with
|
[SC,Temp,TTAnt,Tense,TPres,TPast,TFut,TCond,Pol,MU] ** CatRomance with
|
||||||
(ResRomance = ResPor) ;
|
(ResRomance = ResPor) ;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ concrete GrammarPor of Grammar =
|
|||||||
RelativePor,
|
RelativePor,
|
||||||
ConjunctionPor,
|
ConjunctionPor,
|
||||||
PhrasePor,
|
PhrasePor,
|
||||||
TextPor - [SC,Temp,Tense,Pol,PPos,PNeg], -- special punctuation
|
TextPor - [SC,Temp,Tense,Pol,PPos,PNeg,MU], -- special punctuation
|
||||||
IdiomPor,
|
IdiomPor,
|
||||||
StructuralPor,
|
StructuralPor,
|
||||||
TensePor,
|
TensePor,
|
||||||
|
|||||||
@@ -598,7 +598,7 @@ oper
|
|||||||
|
|
||||||
reflVerboV : Verbum -> V = \ve -> reflV (lin V (verboV ve)) ; --%
|
reflVerboV : Verbum -> V = \ve -> reflV (lin V (verboV ve)) ; --%
|
||||||
|
|
||||||
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False; hasArt=False} ;
|
||||||
|
|
||||||
|
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
incomplete concrete CatRomance of Cat = CommonX - [SC,Pol]
|
incomplete concrete CatRomance of Cat = CommonX - [SC,Pol,MU]
|
||||||
** open Prelude, CommonRomance, ResRomance, (R = ParamX) in {
|
** open Prelude, CommonRomance, ResRomance, (R = ParamX) in {
|
||||||
|
|
||||||
flags optimize=all_subs ;
|
flags optimize=all_subs ;
|
||||||
@@ -147,4 +147,8 @@ incomplete concrete CatRomance of Cat = CommonX - [SC,Pol]
|
|||||||
N = \n -> n.s ! Sg ;
|
N = \n -> n.s ! Sg ;
|
||||||
N2 = \n -> n.s ! Sg ++ n.c2.s ;
|
N2 = \n -> n.s ! Sg ++ n.c2.s ;
|
||||||
N3 = \n -> n.s ! Sg ++ n.c2.s ++ n.c3.s ;
|
N3 = \n -> n.s ! Sg ++ n.c2.s ++ n.c3.s ;
|
||||||
|
|
||||||
|
lincat MU = {s : Str ; isPre : Bool ; hasArt : Bool} ;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -208,9 +208,12 @@ incomplete concrete NounRomance of Noun =
|
|||||||
DetDAP det = det ;
|
DetDAP det = det ;
|
||||||
|
|
||||||
QuantityNP n m = heavyNPpol False {
|
QuantityNP n m = heavyNPpol False {
|
||||||
s = \\c => preOrPost m.isPre m.s (n.s ! NCard Masc);
|
s = \\c => case <c,m.hasArt> of {
|
||||||
|
<Acc,True>|<CPrep _,True> => artDef False Masc Sg c ++ preOrPost m.isPre m.s (n.s ! NCard Masc);
|
||||||
|
_ => preOrPost m.isPre m.s (n.s ! NCard Masc)};
|
||||||
|
|
||||||
a = agrP3 Masc n.n ;
|
a = agrP3 Masc n.n ;
|
||||||
hasClit = False
|
hasClit = False
|
||||||
} ;
|
} ;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
--# -path=.:../romance:../abstract:../common:prelude
|
--# -path=.:../romance:../abstract:../common:prelude
|
||||||
|
|
||||||
concrete CatSpa of Cat = CommonX -
|
concrete CatSpa of Cat = CommonX -
|
||||||
[SC,Temp,TTAnt,Tense,TPres,TPast,TFut,TCond,Pol] ** CatRomance with
|
[SC,Temp,TTAnt,Tense,TPres,TPast,TFut,TCond,Pol,MU] ** CatRomance with
|
||||||
(ResRomance = ResSpa) ;
|
(ResRomance = ResSpa) ;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ concrete GrammarSpa of Grammar =
|
|||||||
RelativeSpa,
|
RelativeSpa,
|
||||||
ConjunctionSpa,
|
ConjunctionSpa,
|
||||||
PhraseSpa,
|
PhraseSpa,
|
||||||
TextSpa - [SC,Temp,Tense,Pol,PPos,PNeg], -- special punctuation
|
TextSpa - [SC,Temp,Tense,Pol,PPos,PNeg,MU], -- special punctuation
|
||||||
IdiomSpa,
|
IdiomSpa,
|
||||||
StructuralSpa,
|
StructuralSpa,
|
||||||
TenseSpa,
|
TenseSpa,
|
||||||
|
|||||||
@@ -618,6 +618,6 @@ oper
|
|||||||
mk2V2 : V -> Prep -> V2 ;
|
mk2V2 : V -> Prep -> V2 ;
|
||||||
dirV2 : V -> V2 ;
|
dirV2 : V -> V2 ;
|
||||||
|
|
||||||
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False ; hasArt=False} ;
|
||||||
|
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
Reference in New Issue
Block a user