updated and tested Mathematical

This commit is contained in:
aarne
2006-02-21 17:31:54 +00:00
parent f3fa5bdd92
commit 05d13ef582
16 changed files with 84 additions and 26 deletions

View File

@@ -20,6 +20,8 @@ abstract Mathematical =
Relative, Relative,
Conjunction, Conjunction,
Phrase, Phrase,
Text,
Idiom,
Structural, Structural,
Symbol, Symbol,

View File

@@ -12,6 +12,8 @@ concrete MathematicalEng of Mathematical =
ConjunctionEng, ConjunctionEng,
PhraseEng, PhraseEng,
StructuralEng, StructuralEng,
TextX,
IdiomEng,
SymbolEng, SymbolEng,
PredicationEng, PredicationEng,

View File

@@ -11,6 +11,8 @@ concrete MathematicalFin of Mathematical =
RelativeFin, RelativeFin,
ConjunctionFin, ConjunctionFin,
PhraseFin, PhraseFin,
TextX,
IdiomFin,
StructuralFin, StructuralFin,
SymbolFin, SymbolFin,

View File

@@ -11,8 +11,10 @@ concrete MathematicalFre of Mathematical =
RelativeFre, RelativeFre,
ConjunctionFre, ConjunctionFre,
PhraseFre, PhraseFre,
TextX,
IdiomFre,
StructuralFre, StructuralFre,
SymbolFre, SymbolFre,
PredicationFre - [predV3], ---- gf bug PredicationFre - [predV3], ---- gf bug

View File

@@ -11,6 +11,8 @@ concrete MathematicalGer of Mathematical =
RelativeGer, RelativeGer,
ConjunctionGer, ConjunctionGer,
PhraseGer, PhraseGer,
TextX,
IdiomGer,
StructuralGer, StructuralGer,
SymbolGer, SymbolGer,

View File

@@ -11,6 +11,8 @@ concrete MathematicalIta of Mathematical =
RelativeIta, RelativeIta,
ConjunctionIta, ConjunctionIta,
PhraseIta, PhraseIta,
TextX,
IdiomIta,
StructuralIta, StructuralIta,
SymbolIta, SymbolIta,

View File

@@ -0,0 +1,27 @@
--# -path=.:../norwegian:../scandinavian:../abstract:../common:prelude
concrete MathematicalNor of Mathematical =
NounNor - [ComplN2], --- to avoid ambiguity
-- VerbNor,
-- AdjectiveNor,
-- AdverbNor,
NumeralNor,
-- SentenceNor,
QuestionNor,
RelativeNor,
ConjunctionNor,
PhraseNor,
TextX,
IdiomNor,
StructuralNor,
SymbolNor,
PredicationNor,
LexiconNor
** {
flags startcat = Phr ;
} ;

View File

@@ -11,6 +11,8 @@ concrete MathematicalSpa of Mathematical =
RelativeSpa, RelativeSpa,
ConjunctionSpa, ConjunctionSpa,
PhraseSpa, PhraseSpa,
TextSpa,
IdiomSpa,
StructuralSpa, StructuralSpa,
SymbolSpa, SymbolSpa,

View File

@@ -11,6 +11,9 @@ concrete MathematicalSwe of Mathematical =
RelativeSwe, RelativeSwe,
ConjunctionSwe, ConjunctionSwe,
PhraseSwe, PhraseSwe,
TextX,
IdiomSwe,
StructuralSwe, StructuralSwe,
SymbolSwe, SymbolSwe,

View File

@@ -0,0 +1,3 @@
concrete PredicationNor of Predication = CatNor ** PredicationI with
(Lang = LangNor) ;

View File

@@ -3,6 +3,7 @@ concrete SymbolEng of Symbol = CatEng ** open Prelude, ResEng in {
lin lin
SymbPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c SymbPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c
IntPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c IntPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c
FloatPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c
CNIntNP cn i = { CNIntNP cn i = {
s = \\c => (cn.s ! Sg ! Nom ++ i.s) ; s = \\c => (cn.s ! Sg ! Nom ++ i.s) ;
a = agrP3 Sg a = agrP3 Sg
@@ -14,7 +15,7 @@ lin
lincat lincat
Symb, SymbList = SS ; Symb, [Symb] = SS ;
lin lin

View File

@@ -1,21 +1,24 @@
concrete SymbolFin of Symbol = CatFin ** open Prelude, ResFin in { concrete SymbolFin of Symbol = CatFin ** open Prelude, NounFin, ResFin in {
lin lin
SymbPN i = {s = \\c => i.s} ; --- c SymbPN i = {s = \\c => i.s} ; --- c
IntPN i = {s = \\c => i.s} ; --- c IntPN i = {s = \\c => i.s} ; --- c
{- FloatPN i = {s = \\c => i.s} ; --- c
CNIntNP cn i = { CNIntNP cn i = {
s = \\c => (cn.s ! Sg ! DIndef ! Nom ++ i.s) ; s = \\c => cn.s ! NCase Sg (npform2case c) ++ i.s ;
a = agrP3 cn.g Sg a = agrP3 Sg ;
isPron = False
} ; } ;
CNSymbNP det cn xs = let g = cn.g in { CNSymbNP det cn xs = let detcn = NounFin.DetCN det cn in {
s = \\c => det.s ! cn.isMod ! g ++ cn.s ! det.n ! det.det ! caseNP c ++ xs.s ; s = \\c => detcn.s ! c ++ xs.s ;
a = agrP3 g det.n a = detcn.a ;
isPron = False
} ; } ;
-}
lincat lincat
Symb, SymbList = SS ; Symb, [Symb] = SS ;
lin lin

View File

@@ -3,19 +3,22 @@ concrete SymbolGer of Symbol = CatGer ** open Prelude, ResGer in {
lin lin
SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c
IntPN i = {s = \\c => i.s ; g = Neutr} ; --- c IntPN i = {s = \\c => i.s ; g = Neutr} ; --- c
{- FloatPN i = {s = \\c => i.s ; g = Neutr} ; --- c
CNIntNP cn i = { CNIntNP cn i = {
s = \\c => (cn.s ! Sg ! DIndef ! Nom ++ i.s) ; s = \\c => cn.s ! Weak ! Sg ! Nom ++ i.s ;
a = agrP3 cn.g Sg a = agrP3 Sg ;
isPron = False
} ; } ;
CNSymbNP det cn xs = let g = cn.g in { CNSymbNP det cn xs = let g = cn.g in {
s = \\c => det.s ! cn.isMod ! g ++ cn.s ! det.n ! det.det ! caseNP c ++ xs.s ; s = \\c => det.s ! g ! c ++ cn.s ! adjfCase det.a c ! det.n ! c ++ xs.s ;
a = agrP3 g det.n a = agrP3 det.n ;
isPron = False
} ; } ;
-}
lincat lincat
Symb, SymbList = SS ; Symb, [Symb] = SS ;
lin lin

View File

@@ -0,0 +1,2 @@
concrete SymbolNor of Symbol = CatNor ** SymbolScand with
(ResScand = ResNor) ;

View File

@@ -4,21 +4,22 @@ incomplete concrete SymbolRomance of Symbol =
lin lin
SymbPN i = {s = i.s ; g = Masc} ; SymbPN i = {s = i.s ; g = Masc} ;
IntPN i = {s = i.s ; g = Masc} ; IntPN i = {s = i.s ; g = Masc} ;
FloatPN i = {s = i.s ; g = Masc} ;
{-
CNIntNP cn i = { CNIntNP cn i = {
s = \\c => (cn.s ! Sg ! DIndef ! Nom ++ i.s) ; s = \\c => cn.s ! Sg ++ i.s ;
a = agrP3 cn.g Sg a = agrP3 cn.g Sg ;
hasClit = False
} ; } ;
CNSymbNP det cn xs = let g = cn.g in { CNSymbNP det cn xs = let g = cn.g in {
s = \\c => det.s ! g ++ cn.s ! det.n ! det.det ! caseNP c ++ xs.s ; s = \\c => det.s ! g ! npform2case c ++ cn.s ! det.n ++ xs.s ;
a = agrP3 g det.n a = agrP3 g det.n ;
hasClit = False
} ; } ;
-}
lincat lincat
Symb, SymbList = SS ; Symb, [Symb] = SS ;
lin lin

View File

@@ -4,6 +4,7 @@ incomplete concrete SymbolScand of Symbol =
lin lin
SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c
IntPN i = {s = \\c => i.s ; g = Neutr} ; --- c IntPN i = {s = \\c => i.s ; g = Neutr} ; --- c
FloatPN i = {s = \\c => i.s ; g = Neutr} ; --- c
CNIntNP cn i = { CNIntNP cn i = {
s = \\c => (cn.s ! Sg ! DIndef ! Nom ++ i.s) ; s = \\c => (cn.s ! Sg ! DIndef ! Nom ++ i.s) ;
a = agrP3 cn.g Sg a = agrP3 cn.g Sg
@@ -15,7 +16,7 @@ lin
lincat lincat
Symb, SymbList = SS ; Symb, [Symb] = SS ;
lin lin