mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-24 10:22:50 -06:00
updated and tested Mathematical
This commit is contained in:
@@ -20,6 +20,8 @@ abstract Mathematical =
|
|||||||
Relative,
|
Relative,
|
||||||
Conjunction,
|
Conjunction,
|
||||||
Phrase,
|
Phrase,
|
||||||
|
Text,
|
||||||
|
Idiom,
|
||||||
Structural,
|
Structural,
|
||||||
|
|
||||||
Symbol,
|
Symbol,
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ concrete MathematicalEng of Mathematical =
|
|||||||
ConjunctionEng,
|
ConjunctionEng,
|
||||||
PhraseEng,
|
PhraseEng,
|
||||||
StructuralEng,
|
StructuralEng,
|
||||||
|
TextX,
|
||||||
|
IdiomEng,
|
||||||
|
|
||||||
SymbolEng,
|
SymbolEng,
|
||||||
PredicationEng,
|
PredicationEng,
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ concrete MathematicalFin of Mathematical =
|
|||||||
RelativeFin,
|
RelativeFin,
|
||||||
ConjunctionFin,
|
ConjunctionFin,
|
||||||
PhraseFin,
|
PhraseFin,
|
||||||
|
TextX,
|
||||||
|
IdiomFin,
|
||||||
StructuralFin,
|
StructuralFin,
|
||||||
|
|
||||||
SymbolFin,
|
SymbolFin,
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ concrete MathematicalFre of Mathematical =
|
|||||||
RelativeFre,
|
RelativeFre,
|
||||||
ConjunctionFre,
|
ConjunctionFre,
|
||||||
PhraseFre,
|
PhraseFre,
|
||||||
|
TextX,
|
||||||
|
IdiomFre,
|
||||||
StructuralFre,
|
StructuralFre,
|
||||||
|
|
||||||
SymbolFre,
|
SymbolFre,
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ concrete MathematicalGer of Mathematical =
|
|||||||
RelativeGer,
|
RelativeGer,
|
||||||
ConjunctionGer,
|
ConjunctionGer,
|
||||||
PhraseGer,
|
PhraseGer,
|
||||||
|
TextX,
|
||||||
|
IdiomGer,
|
||||||
StructuralGer,
|
StructuralGer,
|
||||||
|
|
||||||
SymbolGer,
|
SymbolGer,
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ concrete MathematicalIta of Mathematical =
|
|||||||
RelativeIta,
|
RelativeIta,
|
||||||
ConjunctionIta,
|
ConjunctionIta,
|
||||||
PhraseIta,
|
PhraseIta,
|
||||||
|
TextX,
|
||||||
|
IdiomIta,
|
||||||
StructuralIta,
|
StructuralIta,
|
||||||
|
|
||||||
SymbolIta,
|
SymbolIta,
|
||||||
|
|||||||
27
lib/resource-1.0/mathematical/MathematicalNor.gf
Normal file
27
lib/resource-1.0/mathematical/MathematicalNor.gf
Normal 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 ;
|
||||||
|
|
||||||
|
} ;
|
||||||
@@ -11,6 +11,8 @@ concrete MathematicalSpa of Mathematical =
|
|||||||
RelativeSpa,
|
RelativeSpa,
|
||||||
ConjunctionSpa,
|
ConjunctionSpa,
|
||||||
PhraseSpa,
|
PhraseSpa,
|
||||||
|
TextSpa,
|
||||||
|
IdiomSpa,
|
||||||
StructuralSpa,
|
StructuralSpa,
|
||||||
|
|
||||||
SymbolSpa,
|
SymbolSpa,
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ concrete MathematicalSwe of Mathematical =
|
|||||||
RelativeSwe,
|
RelativeSwe,
|
||||||
ConjunctionSwe,
|
ConjunctionSwe,
|
||||||
PhraseSwe,
|
PhraseSwe,
|
||||||
|
TextX,
|
||||||
|
IdiomSwe,
|
||||||
|
|
||||||
StructuralSwe,
|
StructuralSwe,
|
||||||
|
|
||||||
SymbolSwe,
|
SymbolSwe,
|
||||||
|
|||||||
3
lib/resource-1.0/mathematical/PredicationNor.gf
Normal file
3
lib/resource-1.0/mathematical/PredicationNor.gf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
concrete PredicationNor of Predication = CatNor ** PredicationI with
|
||||||
|
(Lang = LangNor) ;
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
2
lib/resource-1.0/mathematical/SymbolNor.gf
Normal file
2
lib/resource-1.0/mathematical/SymbolNor.gf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
concrete SymbolNor of Symbol = CatNor ** SymbolScand with
|
||||||
|
(ResScand = ResNor) ;
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user