mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 09:02:50 -06:00
*** empty log message ***
This commit is contained in:
@@ -8,13 +8,32 @@
|
|||||||
resource ExtraFre = open PredicationFre, ResourceFre, Prelude, SyntaxFre, MorphoFre, ParadigmsFre in {
|
resource ExtraFre = open PredicationFre, ResourceFre, Prelude, SyntaxFre, MorphoFre, ParadigmsFre in {
|
||||||
|
|
||||||
oper
|
oper
|
||||||
avoirBesoin: CN -> VP = \medicine ->
|
NPMedicine: Type = NP ** {des : Bool};
|
||||||
|
|
||||||
|
avoirBesoin1: CN -> VP = \doctor ->
|
||||||
PosVG ( PredTV (tvDir vAvoir) (DetNP nullDet (
|
PosVG ( PredTV (tvDir vAvoir) (DetNP nullDet (
|
||||||
AppFun (funDe (mkCNomReg "besoin" Masc ** {lock_N =<>}))
|
AppFun (funDe (nReg "besoin" Masc) )
|
||||||
(IndefOneNP medicine)
|
(IndefOneNP doctor)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
) **{lock_VP =<>} ;
|
) ;
|
||||||
|
|
||||||
|
avoirBesoin: NPMedicine -> VP = \medicine ->
|
||||||
|
if_then_else VP medicine.des
|
||||||
|
|
||||||
|
(PosVG ( PredTV (tvDir vAvoir) (DetNP nullDet (
|
||||||
|
AppFun (funPrep (nReg "besoin" Masc) "")
|
||||||
|
medicine
|
||||||
|
)
|
||||||
|
)
|
||||||
|
))
|
||||||
|
|
||||||
|
(PosVG ( PredTV (tvDir vAvoir) (DetNP nullDet (
|
||||||
|
AppFun (funDe (nReg "besoin" Masc))
|
||||||
|
medicine
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)) ;
|
||||||
|
|
||||||
injuredBody: (Gender => Number => Str) -> NP -> CN -> S =
|
injuredBody: (Gender => Number => Str) -> NP -> CN -> S =
|
||||||
\injured, patient, head ->
|
\injured, patient, head ->
|
||||||
@@ -29,6 +48,7 @@ oper
|
|||||||
|
|
||||||
delDet : Det = mkDeterminer Sg (artDef Masc Sg genitive)
|
delDet : Det = mkDeterminer Sg (artDef Masc Sg genitive)
|
||||||
(artDef Fem Sg genitive) ** {lock_Det = <>} ;
|
(artDef Fem Sg genitive) ** {lock_Det = <>} ;
|
||||||
|
desDet : Det = mkDeterminer1 Pl "des" ** {lock_Det = <>} ;
|
||||||
|
|
||||||
nullDet : Det = mkDeterminer1 Sg "" ** {lock_Det =<>} ;
|
nullDet : Det = mkDeterminer1 Sg "" ** {lock_Det =<>} ;
|
||||||
|
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ resource ExtraRus = open ResourceRus, Prelude, SyntaxRus in {
|
|||||||
flags coding=utf8 ;
|
flags coding=utf8 ;
|
||||||
|
|
||||||
oper
|
oper
|
||||||
predNeedShortAdjective: Bool -> NP -> CN -> S = \b, Jag, Dig -> { s =
|
predNeedShortAdjective: Bool -> NP -> NP -> S = \b, Jag, Dig -> { s =
|
||||||
let {
|
let {
|
||||||
mne = Jag.s ! (mkPronForm Dat No NonPoss) ;
|
mne = Jag.s ! (mkPronForm Dat No NonPoss) ;
|
||||||
nuzhen = need.s ! AF Nom Inanimate (gNum Dig.g Sg) ;
|
nuzhen = need.s ! AF Nom Inanimate (gNum (pgen2gen Dig.g) Dig.n) ;
|
||||||
doctor = Dig.s ! Sg ! Nom ;
|
doctor = Dig.s ! (mkPronForm Nom No NonPoss) ;
|
||||||
ne = negation b
|
ne = negation b
|
||||||
} in
|
} in
|
||||||
mne ++ ne ++ nuzhen ++ doctor ;
|
mne ++ ne ++ nuzhen ++ doctor ;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ fun
|
|||||||
Influenza : Illness ;
|
Influenza : Illness ;
|
||||||
Malaria : Illness ;
|
Malaria : Illness ;
|
||||||
Diarrhea : Illness ;
|
Diarrhea : Illness ;
|
||||||
Allergy : Illness ;
|
SkinAllergy : Illness ;
|
||||||
Heartburn : Illness ;
|
Heartburn : Illness ;
|
||||||
Rheumatism : Illness ;
|
Rheumatism : Illness ;
|
||||||
Cystitis : Illness ;
|
Cystitis : Illness ;
|
||||||
@@ -47,7 +47,6 @@ fun
|
|||||||
Ophthalmologist : Specialization ;
|
Ophthalmologist : Specialization ;
|
||||||
Surgeon : Specialization ;
|
Surgeon : Specialization ;
|
||||||
|
|
||||||
PainKiller : Medicine ;
|
|
||||||
SleepingPeels : Medicine ;
|
SleepingPeels : Medicine ;
|
||||||
Sedative : Medicine ;
|
Sedative : Medicine ;
|
||||||
Vitamins : Medicine ;
|
Vitamins : Medicine ;
|
||||||
@@ -57,6 +56,7 @@ fun
|
|||||||
Laxative : Medicine ;
|
Laxative : Medicine ;
|
||||||
Insulin : Medicine ;
|
Insulin : Medicine ;
|
||||||
Antidepressant : Medicine ;
|
Antidepressant : Medicine ;
|
||||||
|
PainKiller : Medicine ;
|
||||||
|
|
||||||
Head : BodyPart ;
|
Head : BodyPart ;
|
||||||
Leg : BodyPart ;
|
Leg : BodyPart ;
|
||||||
@@ -72,7 +72,7 @@ fun
|
|||||||
-- Tooth : BodyPart ;
|
-- Tooth : BodyPart ;
|
||||||
|
|
||||||
Fever : Symptom ;
|
Fever : Symptom ;
|
||||||
Sickness: Symptom ;
|
-- Sickness: Symptom ;
|
||||||
-- PainInMod : Patient -> BodyPart -> SymptomDegree -> Prop ;
|
-- PainInMod : Patient -> BodyPart -> SymptomDegree -> Prop ;
|
||||||
-- SymptomMod : SymptomDegree -> Symptom -> Symtom;
|
-- SymptomMod : SymptomDegree -> Symptom -> Symtom;
|
||||||
-- High : SymptomDegree ;
|
-- High : SymptomDegree ;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
-- use this path to read the grammar from the same directory
|
-- use this path to read the grammar from the same directory
|
||||||
--# -path=.:../newresource/abstract:../prelude:../newresource/english
|
--# -path=.:../newresource/abstract:../prelude:../newresource/english
|
||||||
concrete HealthEng of Health = open PredicationEng, ResourceEng, Prelude, SyntaxEng, ExtraEng in {
|
concrete HealthEng of Health = open PredicationEng, ResourceEng, ResourceExtEng, Prelude, SyntaxEng, ExtraEng, ParadigmsEng in {
|
||||||
|
|
||||||
flags
|
flags
|
||||||
startcat=Phr ; lexer=text ; parser=chart ; unlexer=text ;
|
startcat=Phr ; lexer=text ; parser=chart ; unlexer=text ;
|
||||||
@@ -16,7 +16,7 @@ lincat
|
|||||||
Illness = CN ;
|
Illness = CN ;
|
||||||
Condition = VP ;
|
Condition = VP ;
|
||||||
Specialization = CN ;
|
Specialization = CN ;
|
||||||
Medicine = CN ;
|
Medicine = NP ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
ShePatient = SheNP ;
|
ShePatient = SheNP ;
|
||||||
@@ -25,10 +25,40 @@ lin
|
|||||||
|
|
||||||
And x y = ConjS AndConj (TwoS x y) ;
|
And x y = ConjS AndConj (TwoS x y) ;
|
||||||
|
|
||||||
Influenza = cnNoHum (nounReg "influenza")** {lock_CN = <>} ;
|
Influenza = cnNonhuman "influenza" ;
|
||||||
Malaria = cnNoHum (nounReg "malaria") ** {lock_CN = <>};
|
Malaria = cnNonhuman "malaria" ;
|
||||||
Dentist = cnHum (nounReg "dentist")** {lock_CN = <>} ;
|
Diarrhea = cnNonhuman "diarrhea" ;
|
||||||
PainKiller = cnNoHum (nounReg "painkiller")** {lock_CN = <>} ;
|
SkinAllergy = AppFun (mkFun (nNonhuman "skin") []) (MassNP (cnNonhuman "allergy")) ;
|
||||||
|
Heartburn = cnNonhuman "heartburn" ;
|
||||||
|
Rheumatism = cnNonhuman "rheumatism" ;
|
||||||
|
Cystitis = cnNonhuman "cystitis" ;
|
||||||
|
Asthma = cnNonhuman "asthma" ;
|
||||||
|
Arthritis = cnNonhuman "arthritis" ;
|
||||||
|
Diabetes = cnNonhuman "diabetes" ;
|
||||||
|
Tonsillitis = cnNonhuman "tonsillitis" ;
|
||||||
|
Constipation = cnNonhuman "constipation" ;
|
||||||
|
|
||||||
|
Dentist = cnHuman "dentist" ;
|
||||||
|
Gynecologist = cnHuman "gynecologist" ;
|
||||||
|
Urologist = cnHuman "urologist" ;
|
||||||
|
Pediatrician = cnHuman "pediatrician" ;
|
||||||
|
Physician = cnHuman "physician" ;
|
||||||
|
Dermatologist = cnHuman "dermatologist" ;
|
||||||
|
Cardiologist = cnHuman "cardiologist" ;
|
||||||
|
Neuropathologist = cnHuman "neuropathologist" ;
|
||||||
|
Ophthalmologist = cnHuman "ophthalmologist" ;
|
||||||
|
Surgeon = cnHuman "surgeon" ;
|
||||||
|
|
||||||
|
SleepingPeels = IndefManyNP (ModAdj (apReg "sleeping") (cnNonhuman "peel"));
|
||||||
|
Vitamins = IndefManyNP (cnNonhuman "vitamin") ;
|
||||||
|
EyeDrops = IndefManyNP (cnNonhuman "eye-drop") ;
|
||||||
|
Antibiotics = IndefManyNP (cnNonhuman "antibiotic") ;
|
||||||
|
Sedative = IndefOneNP (cnNonhuman "sedative") ;
|
||||||
|
Viagra = MassNP (cnNonhuman "viagra") ;
|
||||||
|
Laxative = IndefOneNP (cnNonhuman "laxative") ;
|
||||||
|
Insulin = MassNP (cnNonhuman "insulin");
|
||||||
|
Antidepressant = IndefOneNP (cnNonhuman "antidepressant") ;
|
||||||
|
PainKiller = IndefOneNP (cnNonhuman "painkiller") ;
|
||||||
|
|
||||||
Leg = { s = \\_,n,_ => case n of {Sg =>"leg" ; Pl=> "legs" };
|
Leg = { s = \\_,n,_ => case n of {Sg =>"leg" ; Pl=> "legs" };
|
||||||
painInType = True } ;
|
painInType = True } ;
|
||||||
@@ -44,7 +74,10 @@ lin
|
|||||||
-- Pl => table {_ => "teeth" }};
|
-- Pl => table {_ => "teeth" }};
|
||||||
-- False => table { _ => table {_=> "toothache"}}} ;
|
-- False => table { _ => table {_=> "toothache"}}} ;
|
||||||
-- painInType = False } ;
|
-- painInType = False } ;
|
||||||
Throat = { s = \\_,n,_ => case n of {Sg =>"throat" ; Pl=> "throats" }; painInType = True } ;
|
Throat = { s = table{ True => table {Sg => table {_ => "throat" };
|
||||||
|
Pl => table {_ => "throats" }};
|
||||||
|
False => table { _ => table {_=> ["sore throat"]}}} ;
|
||||||
|
painInType = False } ;
|
||||||
Ear = { s = \\_,n,_ => case n of {Sg =>"ear" ; Pl=> "ears" }; painInType = True } ;
|
Ear = { s = \\_,n,_ => case n of {Sg =>"ear" ; Pl=> "ears" }; painInType = True } ;
|
||||||
Chest = { s = \\_,n,_ => case n of {Sg =>"chest" ; Pl=> "chests" }; painInType = True } ;
|
Chest = { s = \\_,n,_ => case n of {Sg =>"chest" ; Pl=> "chests" }; painInType = True } ;
|
||||||
Foot = { s = \\_,n,_ => case n of {Sg =>"foot" ; Pl=> "feet" }; painInType = True } ;
|
Foot = { s = \\_,n,_ => case n of {Sg =>"foot" ; Pl=> "feet" }; painInType = True } ;
|
||||||
@@ -64,10 +97,8 @@ lin
|
|||||||
|
|
||||||
NeedDoctor patient doctor = predV2 (mkTransVerbDir (regVerbP3 "need")**{lock_TV = <>})
|
NeedDoctor patient doctor = predV2 (mkTransVerbDir (regVerbP3 "need")**{lock_TV = <>})
|
||||||
patient (DetNP (aDet ** {lock_Det = <>}) doctor);
|
patient (DetNP (aDet ** {lock_Det = <>}) doctor);
|
||||||
NeedMedicine patient medicine = predV2 (mkTransVerbDir (regVerbP3 "need")**{lock_TV = <>})
|
NeedMedicine = predV2 (mkTransVerbDir (regVerbP3 "need")**{lock_TV = <>}) ;
|
||||||
patient (DetNP (aDet ** {lock_Det = <>}) medicine);
|
TakeMedicine = predV2 (mkTransVerbDir (regVerbP3 "take")**{lock_TV = <>}) ;
|
||||||
TakeMedicine patient medicine = predV2 (mkTransVerbDir (regVerbP3 "take")**{lock_TV = <>})
|
|
||||||
patient (DetNP (aDet ** {lock_Det = <>}) medicine) ;
|
|
||||||
|
|
||||||
Injured = injuredBody (mkTransVerb verbP3Have "injured"**{lock_TV = <>}) ;
|
Injured = injuredBody (mkTransVerb verbP3Have "injured"**{lock_TV = <>}) ;
|
||||||
Broken = injuredBody (mkTransVerb verbP3Have "broken"**{lock_TV = <>}) ;
|
Broken = injuredBody (mkTransVerb verbP3Have "broken"**{lock_TV = <>}) ;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
-- use this path to read the grammar from the same directory
|
-- use this path to read the grammar from the same directory
|
||||||
--# -path=.:../newresource/abstract:../prelude:../newresource/french:../newresource/romance
|
--# -path=.:../newresource/abstract:../prelude:../newresource/french:../newresource/romance
|
||||||
|
|
||||||
concrete HealthFre of Health = open PredicationFre, ResourceFre, Prelude, SyntaxFre, MorphoFre, ExtraFre, ParadigmsFre in {
|
concrete HealthFre of Health = open PredicationFre, ParadigmsFre, ResourceFre, Prelude, SyntaxFre, MorphoFre, ExtraFre, ParadigmsFre, ResourceExtFre in {
|
||||||
|
|
||||||
-- 1. still using "à" instead of "aux" in PainIn operations
|
-- 1. still using "à" instead of "aux" in PainIn operations
|
||||||
-- because of the UTF8 problem with non-utf8 resource grammars!
|
-- because of the UTF8 problem with non-utf8 resource grammars!
|
||||||
@@ -17,10 +17,10 @@ lincat
|
|||||||
Symptom = NP ;
|
Symptom = NP ;
|
||||||
SymptomDegree = AP ;
|
SymptomDegree = AP ;
|
||||||
Prop = S ;
|
Prop = S ;
|
||||||
Illness = CN ;
|
Illness = NP ;
|
||||||
Condition = VP ;
|
Condition = VP ;
|
||||||
Specialization = CN ;
|
Specialization = CN ;
|
||||||
Medicine = CN ;
|
Medicine = NPMedicine ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
And x y = ConjS AndConj (TwoS x y) ;
|
And x y = ConjS AndConj (TwoS x y) ;
|
||||||
@@ -29,31 +29,66 @@ lin
|
|||||||
TheyPatient = TheyNP ;
|
TheyPatient = TheyNP ;
|
||||||
IPatientHe = INP ;
|
IPatientHe = INP ;
|
||||||
|
|
||||||
Influenza = mkCNomReg "grippe" Fem ** {lock_CN = <> };
|
HaveIllness = predV2 (tvDir vAvoir) ;
|
||||||
Malaria = mkCNomReg "malaria" Fem ** {lock_CN = <> };
|
|
||||||
HaveIllness patient illness = predV2 (tvDir vAvoir) patient (DefOneNP illness) ;
|
|
||||||
Complain = predV2 (tvDir vAvoir) ;
|
Complain = predV2 (tvDir vAvoir) ;
|
||||||
|
|
||||||
BeInCondition = PredVP ;
|
BeInCondition = PredVP ;
|
||||||
CatchCold = PosVG (PredTV (tvDir vAvoir) (IndefOneNP (mkCNomReg "rhume" Masc ** {lock_CN = <> })));
|
CatchCold = PosVG (PredTV (tvDir vAvoir) (IndefOneNP (mkCNomReg "rhume" Masc ** {lock_CN = <> })));
|
||||||
Pregnant = PosVG (PredAP (mkAdjective (adjJeune "enceinte") adjPost** {lock_AP = <> })) ;
|
Pregnant = PosVG (PredAP (mkAdjective (adjJeune "enceinte") adjPost** {lock_AP = <> })) ;
|
||||||
|
|
||||||
Dentist = mkCNomReg "dentiste" Masc ** {lock_CN = <> } ;
|
Influenza = DefOneNP (mkCN (nReg "grippe" Fem));
|
||||||
PainKiller = mkCNomReg "calmant" Masc ** {lock_CN = <> };
|
Malaria = DefOneNP (mkCN (nReg "malaria" Fem));
|
||||||
|
Diarrhea = IndefOneNP (mkCN (nReg "diarrhée" Fem)) ;
|
||||||
|
Constipation = IndefOneNP (mkCN (nReg "constipation" Fem));
|
||||||
|
Rheumatism = DetNP desDet (mkCN (nReg "rhumatisme" Masc)) ;
|
||||||
|
Arthritis = DetNP delDet (mkCN (nReg "arthrite" Fem)) ;
|
||||||
|
SkinAllergy =IndefOneNP ( ModAdj
|
||||||
|
(AdjP1 (adj1Reg "épidermique" postpos))
|
||||||
|
(mkCN (nReg "allergie" Fem))
|
||||||
|
);
|
||||||
|
Heartburn = DetNP desDet (AppFun (funCase (nReg "brûlure" Fem) Gen)
|
||||||
|
(DetNP nullDet (mkCN (nReg "estomac" Masc)))) ;
|
||||||
|
Tonsillitis = IndefOneNP (mkCN (nReg "angine" Fem)) ;
|
||||||
|
Asthma = DetNP delDet (mkCN (nReg "asthme" Masc)) ;
|
||||||
|
Cystitis =IndefOneNP ( mkCN (nReg "cystite" Fem)) ;
|
||||||
|
Diabetes = DefOneNP (mkCN (nReg "diabète" Masc)) ;
|
||||||
|
|
||||||
NeedDoctor patient doctor = PredVP patient (avoirBesoin doctor ** {lock_VP = <> }) ;
|
Dentist = mkCN (nReg "dentiste" Masc) ;
|
||||||
NeedMedicine patient medicine = PredVP patient (avoirBesoin medicine** {lock_VP = <> }) ;
|
Gynecologist = mkCN (nReg "gynécologue" Masc) ;
|
||||||
TakeMedicine patient medicine = predV2 (mkTransVerbDir (verbPres
|
Urologist = mkCN (nReg "urologue" Masc) ;
|
||||||
(conj3prendre "prendre")) ** {lock_TV = <> } ) patient (IndefOneNP medicine) ;
|
Pediatrician = mkCN (nReg "pédiatre" Masc) ;
|
||||||
|
Physician = mkCN (nReg "thérapeute" Masc) ;
|
||||||
|
Dermatologist = mkCN (nReg "dermatologue" Masc) ;
|
||||||
|
Cardiologist = mkCN (nReg "cardiologue" Masc) ;
|
||||||
|
Neuropathologist = mkCN (nReg "neurologue" Masc) ;
|
||||||
|
Ophthalmologist = mkCN (nReg "ophthalmologue" Masc) ;
|
||||||
|
Surgeon = mkCN (nReg "chirurgien" Masc ) ;
|
||||||
|
|
||||||
Fever = DetNP (delDet ** {lock_Det = <> }) (mkCNomReg "fièvre" Fem ** {lock_CN = <> }) ;
|
SleepingPeels = DetNP desDet (mkCN (nReg "somnifêre" Masc ))**{des = True};
|
||||||
|
Vitamins = DetNP desDet (mkCN (nReg "vitamine" Fem))**{des = True} ;
|
||||||
|
EyeDrops = DetNP desDet (AppFun (funPrep (nReg "goutte" Fem) "pour")
|
||||||
|
(DefManyNP (mkCN (mkN "oeil" "yeux" Masc))))**{des = True} ;
|
||||||
|
Antibiotics = DetNP desDet (mkCN (nReg "antibiotique" Masc))**{des = True} ;
|
||||||
|
Insulin = DetNP delDet (mkCN (nReg "insuline" Fem))**{des = True};
|
||||||
|
|
||||||
|
Viagra = DetNP nullDet (mkCN(nReg "viagra" Fem))**{des = False} ;
|
||||||
|
Laxative = IndefOneNP (mkCN (nReg "laxatif" Masc)) **{des = False};
|
||||||
|
Sedative = IndefOneNP (mkCN (nReg "sédatif" Masc)) **{des = False};
|
||||||
|
Antidepressant = IndefOneNP (mkCN (nReg "antidépressif" Masc)) **{des = False};
|
||||||
|
PainKiller = IndefOneNP (mkCN (nReg "calmant" Masc)) **{des = False};
|
||||||
|
|
||||||
|
NeedDoctor patient doctor = PredVP patient (avoirBesoin1 doctor ** {lock_VP = <> }) ;
|
||||||
|
NeedMedicine patient medicine = PredVP patient (avoirBesoin medicine ** {lock_VP = <> }) ;
|
||||||
|
TakeMedicine = predV2 (mkTransVerbDir (verbPres (conj3prendre "prendre")) ** {lock_TV = <> } ) ;
|
||||||
|
|
||||||
|
Fever = DetNP delDet (mkCN (nReg "fièvre" Fem)) ;
|
||||||
|
|
||||||
PainIn patient head = predV2 (tvDir vAvoir) patient
|
PainIn patient head = predV2 (tvDir vAvoir) patient
|
||||||
(DetNP (nullDet ** {lock_Det = <> })
|
(DetNP nullDet
|
||||||
(
|
(
|
||||||
AppFun
|
AppFun
|
||||||
((mkCNomReg "mal" Masc ** {lock_CN = <> })** complementCas Dat ** {lock_Fun = <> })
|
((mkCN (nReg "mal" Masc))** complementCas Dat ** {lock_Fun = <> })
|
||||||
(defNounPhrase patient.n head ** {lock_NP = <> })
|
(defNounPhrase patient.n head ** {lock_NP = <>})
|
||||||
)
|
)
|
||||||
) ;
|
) ;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
-- use this path to read the grammar from the same directory
|
-- use this path to read the grammar from the same directory
|
||||||
--# -path=.:../newresource/abstract:../prelude:../newresource/russian
|
--# -path=.:../newresource/abstract:../prelude:../newresource/russian
|
||||||
|
|
||||||
concrete HealthRus of Health = open PredicationRus, ResourceRus, Prelude, SyntaxRus, ExtraRus in {
|
concrete HealthRus of Health = open PredicationRus, ResourceRus, Prelude, SyntaxRus, ExtraRus, ResourceExtRus, ParadigmsRus in {
|
||||||
|
|
||||||
flags
|
flags
|
||||||
coding=utf8 ;
|
coding=utf8 ;
|
||||||
@@ -15,8 +15,8 @@ lincat
|
|||||||
Prop = S ;
|
Prop = S ;
|
||||||
Illness = CN ;
|
Illness = CN ;
|
||||||
Condition = VP ;
|
Condition = VP ;
|
||||||
Specialization = CN ;
|
Specialization = NP ;
|
||||||
Medicine = CN ;
|
Medicine = NP ;
|
||||||
lin
|
lin
|
||||||
And x y = ConjS AndConj (TwoS x y) ;
|
And x y = ConjS AndConj (TwoS x y) ;
|
||||||
|
|
||||||
@@ -25,20 +25,48 @@ lin
|
|||||||
IPatientHe = { s = INP.s ; g = PGen Masc; anim = INP.anim ;
|
IPatientHe = { s = INP.s ; g = PGen Masc; anim = INP.anim ;
|
||||||
n = INP.n ; nComp = INP.nComp ; p = INP.p ; pron = INP.pron; lock_NP = <>} ;
|
n = INP.n ; nComp = INP.nComp ; p = INP.p ; pron = INP.pron; lock_NP = <>} ;
|
||||||
|
|
||||||
Influenza = n2n gripp ** {lock_CN = <>};
|
Influenza = UseN ( gripp**{lock_N = <>}) ;
|
||||||
Malaria = n2n malaria ** {lock_CN = <>} ;
|
Malaria = UseN ( malaria**{lock_N = <>}) ;
|
||||||
|
Diarrhea = UseN ( ponos **{lock_N = <>});
|
||||||
|
SkinAllergy = ModAdj (AdjP1(adj1Staruyj "кожн")) (UseN ( allergiya **{lock_N = <>}));
|
||||||
|
Heartburn = UseN ( izzhoga **{lock_N = <>});
|
||||||
|
Rheumatism = UseN ( revmatizm **{lock_N = <>});
|
||||||
|
Cystitis = UseN ( tsistit **{lock_N = <>});
|
||||||
|
Asthma = UseN ( astma **{lock_N = <>});
|
||||||
|
Arthritis = UseN ( artrit **{lock_N = <>});
|
||||||
|
Diabetes = UseN ( diabet **{lock_N = <>});
|
||||||
|
Tonsillitis = UseN ( angina **{lock_N = <>});
|
||||||
|
Constipation = UseN ( zapor **{lock_N = <>});
|
||||||
|
|
||||||
Dentist = n2n stomatolog ** {lock_CN = <>};
|
Dentist = IndefOneNP ( UseN ( stomatolog**{lock_N = <>})) ;
|
||||||
PainKiller = n2n obezbolivauchee ** {lock_CN = <>};
|
Gynecologist = IndefOneNP (UseN ( ginekolog**{lock_N = <>})) ;
|
||||||
|
Urologist = IndefOneNP (UseN ( urolog**{lock_N = <>})) ;
|
||||||
|
Pediatrician = IndefOneNP (UseN ( pediatr**{lock_N = <>})) ;
|
||||||
|
Physician = IndefOneNP (UseN ( terapevt**{lock_N = <>})) ;
|
||||||
|
Dermatologist = IndefOneNP (UseN ( dermatolog**{lock_N = <>})) ;
|
||||||
|
Cardiologist = IndefOneNP (UseN ( kardiolog**{lock_N = <>})) ;
|
||||||
|
Neuropathologist = IndefOneNP (UseN ( nevropatolog**{lock_N = <>})) ;
|
||||||
|
Ophthalmologist = IndefOneNP (UseN ( okulist**{lock_N = <>})) ;
|
||||||
|
Surgeon = IndefOneNP (UseN ( khirurg**{lock_N = <>})) ;
|
||||||
|
|
||||||
Fever = mkNounPhrase Sg (n2n temperatura)** {lock_NP = <>};
|
SleepingPeels = IndefOneNP (UseN ( snotvornoe**{lock_N = <>}));
|
||||||
|
Sedative = IndefOneNP (UseN ( uspokoitelnoe**{lock_N = <>}));
|
||||||
|
Vitamins = IndefManyNP (UseN ( vitamin**{lock_N = <>}));
|
||||||
|
EyeDrops = IndefManyNP (ModAdj (AdjP1 (glaznoj**{lock_Adj1 = <>})) (UseN ( kaplya**{lock_N = <>})));
|
||||||
|
Antibiotics = IndefManyNP (UseN ( antibiotik**{lock_N = <>}));
|
||||||
|
Viagra = IndefOneNP (UseN ( viagra**{lock_N = <>}));
|
||||||
|
Laxative = IndefOneNP (UseN ( slabitelnoe**{lock_N = <>}));
|
||||||
|
Insulin = MassNP (UseN (insulin**{lock_N = <>}));
|
||||||
|
Antidepressant = IndefOneNP (UseN ( antidepressant**{lock_N = <>}));
|
||||||
|
PainKiller = IndefOneNP (UseN ( obezbolivauchee**{lock_N = <>}));
|
||||||
|
|
||||||
|
Fever = mkNounPhrase Sg (UseN ( temperatura**{lock_N = <>}))** {lock_NP = <>};
|
||||||
BeInCondition = PredVP ;
|
BeInCondition = PredVP ;
|
||||||
CatchCold = PosVG (PredAP (AdjP1 (prostuzhen ** {lock_Adj1 = <>}))) ;
|
CatchCold = PosVG (PredAP (AdjP1 (prostuzhen ** {lock_Adj1 = <>}))) ;
|
||||||
Pregnant = PosVG (PredAP (AdjP1 (beremenen ** {lock_Adj1 = <>}))) ;
|
Pregnant = PosVG (PredAP (AdjP1 (beremenen ** {lock_Adj1 = <>}))) ;
|
||||||
|
|
||||||
|
TakeMedicine = predV2 (mkDirectVerb
|
||||||
TakeMedicine patient painkiller = predV2 (mkDirectVerb
|
(extVerb verbPrinimat Act Present)**{lock_TV = <>}) ;
|
||||||
(extVerb verbPrinimat Act Present)**{lock_TV = <>}) patient (mkNounPhrase Sg painkiller ** {lock_NP = <>}) ;
|
|
||||||
Injured patient painkiller = predV2 (mkDirectVerb
|
Injured patient painkiller = predV2 (mkDirectVerb
|
||||||
(extVerb verbPoranit Act Past)**{lock_TV = <>}) patient (mkNounPhrase patient.n painkiller ** {lock_NP = <>}) ;
|
(extVerb verbPoranit Act Past)**{lock_TV = <>}) patient (mkNounPhrase patient.n painkiller ** {lock_NP = <>}) ;
|
||||||
Broken patient painkiller = predV2 (mkDirectVerb
|
Broken patient painkiller = predV2 (mkDirectVerb
|
||||||
@@ -54,22 +82,22 @@ lin
|
|||||||
PainIn patient head = U_predTransVerb True (mkDirectVerb
|
PainIn patient head = U_predTransVerb True (mkDirectVerb
|
||||||
(extVerb verbBolet_2 Act Present ) ** {lock_TV =<>}) patient (mkNounPhrase patient.n head ** {lock_NP =<>}) ;
|
(extVerb verbBolet_2 Act Present ) ** {lock_TV =<>}) patient (mkNounPhrase patient.n head ** {lock_NP =<>}) ;
|
||||||
|
|
||||||
Head = n2n golova ** {lock_CN = <>};
|
Head = UseN ( golova**{lock_N = <>});
|
||||||
Leg = n2n noga ** {lock_CN = <>};
|
Leg = UseN ( noga**{lock_N = <>});
|
||||||
Stomac = n2n zhivot ** {lock_CN = <>};
|
Stomac = UseN ( zhivot**{lock_N = <>});
|
||||||
Throat = n2n gorlo ** {lock_CN = <>};
|
Throat = UseN ( gorlo**{lock_N = <>});
|
||||||
Ear = n2n ukho ** {lock_CN = <>};
|
Ear = UseN ( ukho**{lock_N = <>});
|
||||||
Chest = n2n grud ** {lock_CN = <>};
|
Chest = UseN ( grud**{lock_N = <>});
|
||||||
Foot = n2n stopa ** {lock_CN = <>};
|
Foot = UseN ( stopa**{lock_N = <>});
|
||||||
Arm = n2n ruka ** {lock_CN = <>};
|
Arm = UseN ( ruka**{lock_N = <>});
|
||||||
Back = n2n spina ** {lock_CN = <>};
|
Back = UseN ( spina**{lock_N = <>});
|
||||||
Shoulder = n2n plecho ** {lock_CN = <>};
|
Shoulder = UseN ( plecho**{lock_N = <>});
|
||||||
-- Knee = n2n koleno ** {lock_CN = <>};
|
-- Knee = UseN ( koleno**{lock_N = <>});
|
||||||
|
|
||||||
-- High = AdjP1 (extAdjective vusokij ** {lock_Adj1 = <>});
|
-- High = AdjP1 (extAdjective vusokij ** {lock_Adj1 = <>});
|
||||||
-- Terrible = AdjP1 (extAdjective uzhasnuj ** {lock_Adj1 = <>});
|
-- Terrible = AdjP1 (extAdjective uzhasnuj ** {lock_Adj1 = <>});
|
||||||
-- FeverMod degree = mkNounPhrase Sg
|
-- FeverMod degree = mkNounPhrase Sg
|
||||||
-- (ModAdj degree (n2n temperatura** {lock_CN = <>})) ** {lock_NP = <>};
|
-- (ModAdj degree (UseN ( temperatura**{lock_N = <>}))) ** {lock_NP = <>};
|
||||||
-- PainInMod patient head degree = U_predTransVerb True (mkDirectVerb
|
-- PainInMod patient head degree = U_predTransVerb True (mkDirectVerb
|
||||||
-- (extVerb have Act Present) ** {lock_TV =<>}) patient
|
-- (extVerb have Act Present) ** {lock_TV =<>}) patient
|
||||||
-- (mkNounPhrase Sg (ModAdj degree
|
-- (mkNounPhrase Sg (ModAdj degree
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
-- use this path to read the grammar from the same directory
|
-- use this path to read the grammar from the same directory
|
||||||
|
|
||||||
--# -path=.:../newresource/abstract:../prelude:../newresource/swedish
|
--# -path=.:../newresource/abstract:../prelude:../newresource/swedish
|
||||||
concrete HealthSwe of Health = open PredicationSwe, ResourceSwe, Prelude, SyntaxSwe, ExtraSwe, ParadigmsSwe in {
|
concrete HealthSwe of Health = open PredicationSwe, ResourceSwe, Prelude, SyntaxSwe, ExtraSwe, ParadigmsSwe, ResourceExtSwe in {
|
||||||
|
|
||||||
flags
|
flags
|
||||||
startcat=Phr ; lexer=text ; parser=chart ; unlexer=text ;
|
startcat=Phr ; lexer=text ; parser=chart ; unlexer=text ;
|
||||||
@@ -22,7 +22,7 @@ lincat
|
|||||||
Illness = CN ;
|
Illness = CN ;
|
||||||
Condition = VP ;
|
Condition = VP ;
|
||||||
Specialization = CN ;
|
Specialization = CN ;
|
||||||
Medicine = CN ;
|
Medicine = NP ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
And x y = ConjS AndConj (TwoS x y) ;
|
And x y = ConjS AndConj (TwoS x y) ;
|
||||||
@@ -31,11 +31,40 @@ lin
|
|||||||
TheyPatient = mkPronPatient de_38 ;
|
TheyPatient = mkPronPatient de_38 ;
|
||||||
IPatientHe = mkPronPatient jag_32 ;
|
IPatientHe = mkPronPatient jag_32 ;
|
||||||
|
|
||||||
Influenza = n2n (extCommNoun NoMasc (sApa "influens")) ** {lock_CN = <>} ;
|
Influenza = UseN (nApa "influens") ;
|
||||||
Malaria = n2n (extCommNoun NoMasc (sApa "malari")) ** {lock_CN = <>} ;
|
Malaria = UseN (nApa "malari");
|
||||||
|
Diarrhea = UseN (nApa "diarré");
|
||||||
|
SkinAllergy = UseN (nApa "hudallergi");
|
||||||
|
Heartburn = UseN (nApa "halsbränna");
|
||||||
|
Rheumatism = UseN (nBil "reumatism");
|
||||||
|
Cystitis = UseN (nRisk "urinvägsinfektion");
|
||||||
|
Asthma = UseN (nApa "astma");
|
||||||
|
Arthritis = UseN (nApa "artrit");
|
||||||
|
Diabetes = UseN (nBil "diabetes");
|
||||||
|
Tonsillitis = UseN (nBil "halsfluss");
|
||||||
|
Constipation = UseN (nBil "förstoppning");
|
||||||
|
|
||||||
Dentist = n2n (extCommNoun Masc (sKikare "tandläkar")) ** {lock_CN = <>} ;
|
Dentist = UseN (nKikare "tandläkare") ;
|
||||||
PainKiller = n2n (extCommNoun NoMasc (sBil "smärtstillande")) ** {lock_CN = <>} ;
|
Gynecologist = UseN (nRisk "gynekolog");
|
||||||
|
Urologist= UseN (nRisk "urolog");
|
||||||
|
Pediatrician = UseN (nKikare "barnläkare");
|
||||||
|
Physician = UseN (nKikare "läkare");
|
||||||
|
Dermatologist = UseN (nKikare "hudläkare");
|
||||||
|
Cardiologist = UseN (nRisk "kardiolog");
|
||||||
|
Neuropathologist = UseN (nRisk "neurolog");
|
||||||
|
Ophthalmologist = UseN (nKikare "ögönläkare");
|
||||||
|
Surgeon = UseN (nRisk "kirurg");
|
||||||
|
|
||||||
|
SleepingPeels = IndefManyNP (UseN (nRisk "sömntablett")) ;
|
||||||
|
Sedative = IndefOneNP (UseN (nPapper "lugnande")) ;
|
||||||
|
Vitamins = IndefManyNP (UseN (nPapper "vitaminpiller")) ;
|
||||||
|
EyeDrops = IndefManyNP (UseN (nPojke "ögondroppe")) ;
|
||||||
|
Antibiotics = IndefManyNP (UseN (nPapper "antibiotika")) ;
|
||||||
|
Viagra = MassNP (UseN (nBil "viagra")) ;
|
||||||
|
Laxative = IndefOneNP (UseN (nPapper "laxer")) ;
|
||||||
|
Insulin = MassNP (UseN (nRep "insulin")) ;
|
||||||
|
Antidepressant = IndefOneNP ( ModAdj (AdjP1 (adjReg "antidepressiv")) (UseN (nRep "läkemedel"))) ;
|
||||||
|
PainKiller = IndefOneNP (UseN (nBil "smärtstillande")) ;
|
||||||
|
|
||||||
CatchCold = PosVG ( PredAP( AdjP1 (extAdjective (aGrund("förkyl")) ** {lock_Adj1 = <>}) ));
|
CatchCold = PosVG ( PredAP( AdjP1 (extAdjective (aGrund("förkyl")) ** {lock_Adj1 = <>}) ));
|
||||||
Pregnant = PosVG ( PredAP( AdjP1 (extAdjective (aGrund("gravi") )** {lock_Adj1 = <>}) ));
|
Pregnant = PosVG ( PredAP( AdjP1 (extAdjective (aGrund("gravi") )** {lock_Adj1 = <>}) ));
|
||||||
@@ -43,13 +72,13 @@ lin
|
|||||||
BeInCondition = PredVP ;
|
BeInCondition = PredVP ;
|
||||||
HaveIllness patient illness = predV2 (mkDirectVerb verbHa** {lock_TV =<>}) patient
|
HaveIllness patient illness = predV2 (mkDirectVerb verbHa** {lock_TV =<>}) patient
|
||||||
(DetNP (nullDet ** {lock_Det = <>}) illness) ;
|
(DetNP (nullDet ** {lock_Det = <>}) illness) ;
|
||||||
NeedMedicine patient illness = predV2 (mkDirectVerb verbBehova** {lock_TV =<>}) patient
|
|
||||||
(DetNP (nullDet ** {lock_Det = <>}) illness) ;
|
NeedMedicine = predV2 (mkDirectVerb verbBehova** {lock_TV =<>}) ;
|
||||||
TakeMedicine patient illness = predV2 (mkDirectVerb verbTa** {lock_TV =<>}) patient
|
TakeMedicine = predV2 (mkDirectVerb verbTa** {lock_TV =<>}) ;
|
||||||
(DetNP (nullDet ** {lock_Det = <>}) illness) ;
|
|
||||||
NeedDoctor patient illness = predV2 (mkDirectVerb verbBehova** {lock_TV =<>}) patient
|
NeedDoctor patient illness = predV2 (mkDirectVerb verbBehova** {lock_TV =<>}) patient
|
||||||
(DetNP (enDet ** {lock_Det = <>}) illness) ;
|
(DetNP (enDet ** {lock_Det = <>}) illness) ;
|
||||||
Fever = DetNP (nullDet ** {lock_Det = <>}) (n2n (extCommNoun NoMasc (sFeber "feb")) ** {lock_CN = <>}) ;
|
Fever = DetNP (nullDet ** {lock_Det = <>}) (UseN (nRisk "feber")) ;
|
||||||
|
|
||||||
Complain = predV2 (mkDirectVerb verbHa ** {lock_TV =<>}) ;
|
Complain = predV2 (mkDirectVerb verbHa ** {lock_TV =<>}) ;
|
||||||
Broken patient head = predV2 (mkTransVerb verbHa "brutit" ** {lock_TV =<>} ) patient
|
Broken patient head = predV2 (mkTransVerb verbHa "brutit" ** {lock_TV =<>} ) patient
|
||||||
@@ -59,25 +88,25 @@ lin
|
|||||||
(
|
(
|
||||||
DetNP (nullDet ** {lock_Det = <>})
|
DetNP (nullDet ** {lock_Det = <>})
|
||||||
( AppFun
|
( AppFun
|
||||||
((mkFun (extCommNoun NoMasc (sBil "ont")**{lock_N =<>}) "i") ** {lock_Fun = <>})
|
((mkFun (nBil "ont") "i") ** {lock_Fun = <>})
|
||||||
((defNounPhrase patient.n head)** {lock_NP = <>})
|
((defNounPhrase patient.n head)** {lock_NP = <>})
|
||||||
)
|
)
|
||||||
) ;
|
) ;
|
||||||
|
|
||||||
Head = n2n (extCommNoun NoMasc(sHus "huvud")) ** {lock_CN = <>} ;
|
Head = UseN (nRep "huvud") ;
|
||||||
Leg = n2n (extCommNoun NoMasc (sHus "ben")) ** {lock_CN = <>} ;
|
Leg = UseN (nRep "ben") ;
|
||||||
Stomac = n2n (nPojke "mage") ** {lock_CN = <>} ;
|
Stomac = UseN (nPojke "mage") ;
|
||||||
Throat = n2n (nBil "hals") ** {lock_CN = <>} ;
|
Throat = UseN (nBil "hals") ;
|
||||||
Ear = n2n (mkN "öra" "örat" "öron" "öronen" Neutr NoMasc) ** {lock_CN = <>} ;
|
Ear = UseN (mkN "öra" "örat" "öron" "öronen" Neutr NoMasc) ;
|
||||||
Chest = n2n (extCommNoun NoMasc (sHus "bröst")) ** {lock_CN = <>} ;
|
Chest = UseN (nRep "bröst") ;
|
||||||
Foot = n2n (mkN "fot" "foten" "fötter" "fötterna" Utr NoMasc) ** {lock_CN = <>} ;
|
Foot = UseN (mkN "fot" "foten" "fötter" "fötterna" Utr NoMasc) ;
|
||||||
Arm = n2n (mkN "hand" "handen" "händer" "händerna" Utr NoMasc) ** {lock_CN = <>} ;
|
Arm = UseN (mkN "hand" "handen" "händer" "händerna" Utr NoMasc) ;
|
||||||
Back = n2n (nBil "rygg") ** {lock_CN = <>} ;
|
Back = UseN (nBil "rygg") ;
|
||||||
Shoulder = n2n (nNyckel "axel") ** {lock_CN = <>} ;
|
Shoulder = UseN (nNyckel "axel") ;
|
||||||
|
|
||||||
-- High = AdjP1 (extAdjective (aFin "hög")** {lock_Adj1 = <>}) ;
|
-- High = AdjP1 (adjReg "hög") ;
|
||||||
-- Terrible = AdjP1 (extAdjective (aFin "hemsk")** {lock_Adj1 = <>}) ;
|
-- Terrible = AdjP1 (adjReg "hemsk") ;
|
||||||
-- FeverMod degree = DetNP (nullDet ** {lock_Det = <>}) (ModAdj degree (n2n (extCommNoun NoMasc (sFeber "feb")) ** {lock_CN = <>})) ;
|
-- FeverMod degree = DetNP (nullDet ** {lock_Det = <>}) (ModAdj degree (UseN (nKikare "feb") ) ;
|
||||||
-- PainInMod patient head degree = predV2 (mkDirectVerb verbHa** {lock_TV =<>}) patient
|
-- PainInMod patient head degree = predV2 (mkDirectVerb verbHa** {lock_TV =<>}) patient
|
||||||
-- (
|
-- (
|
||||||
-- DetNP (nullDet ** {lock_Det = <>})
|
-- DetNP (nullDet ** {lock_Det = <>})
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ oper
|
|||||||
|
|
||||||
nEau = \eau -> mkN eau (eau + "z") ;
|
nEau = \eau -> mkN eau (eau + "z") ;
|
||||||
nCas = \cas -> mkN cas cas ;
|
nCas = \cas -> mkN cas cas ;
|
||||||
|
nReg = \cas -> mkN cas (cas + "s") ;
|
||||||
nCheval = \cheval -> mkN cheval (Predef.tk 1 cheval + "ux") masculine ;
|
nCheval = \cheval -> mkN cheval (Predef.tk 1 cheval + "ux") masculine ;
|
||||||
|
|
||||||
funPrep = \n,p -> n ** complement p ** {lock_Fun = <>} ;
|
funPrep = \n,p -> n ** complement p ** {lock_Fun = <>} ;
|
||||||
|
|||||||
@@ -332,17 +332,46 @@ oper pronVseInanimate: Pronoun =
|
|||||||
-- without any reference to the Gender parameter "g".
|
-- without any reference to the Gender parameter "g".
|
||||||
|
|
||||||
oper SubstFormDecl = SS1 SubstForm ;
|
oper SubstFormDecl = SS1 SubstForm ;
|
||||||
|
|
||||||
oper gorlo : CommNoun = l_oEndInAnimateDecl "горл" ;
|
oper gorlo : CommNoun = l_oEndInAnimateDecl "горл" ;
|
||||||
oper koleno : CommNoun = oEndInAnimateDecl "колен" ;
|
oper koleno : CommNoun = oEndInAnimateDecl "колен" ;
|
||||||
oper plecho : CommNoun = oEndInAnimateDecl "плеч" ;
|
oper plecho : CommNoun = oEndInAnimateDecl "плеч" ;
|
||||||
oper ukho : CommNoun = oEnd_KH_InAnimateDecl "у" ;
|
oper ukho : CommNoun = oEnd_KH_InAnimateDecl "у" ;
|
||||||
oper zhivot : CommNoun = nullEndInAnimateDecl1 "живот" ;
|
oper zhivot : CommNoun = nullEndInAnimateDecl1 "живот" ;
|
||||||
oper grud : CommNoun = softSignEndDeclFem "груд" ;
|
|
||||||
oper spina : CommNoun = aEndG_K_KH_Decl "спин" ;
|
|
||||||
oper grud : CommNoun = softSignEndDeclFem "груд" ;
|
oper grud : CommNoun = softSignEndDeclFem "груд" ;
|
||||||
|
oper ruka : CommNoun = aEndG_K_KH_Decl "рук" ;
|
||||||
|
oper spina : CommNoun = aEndInAnimateDecl "спин" ;
|
||||||
oper stopa : CommNoun = aEndInAnimateDecl "стоп" ;
|
oper stopa : CommNoun = aEndInAnimateDecl "стоп" ;
|
||||||
|
|
||||||
|
oper astma : CommNoun = aEndInAnimateDecl "астм" ;
|
||||||
|
oper angina : CommNoun = aEndInAnimateDecl "ангин" ;
|
||||||
|
oper revmatizm : CommNoun = nullEndInAnimateDecl1 "ревматизм" ;
|
||||||
|
oper zapor : CommNoun = nullEndInAnimateDecl1 "запор" ;
|
||||||
|
oper ponos : CommNoun = nullEndInAnimateDecl1 "понос" ;
|
||||||
|
oper artrit : CommNoun = nullEndInAnimateDecl1 "артрит" ;
|
||||||
|
oper diabet : CommNoun = nullEndInAnimateDecl1 "диабет" ;
|
||||||
|
oper tsistit : CommNoun = nullEndInAnimateDecl1 "цистит" ;
|
||||||
|
oper izzhoga : CommNoun = aEndG_K_KH_Decl "изжог" ;
|
||||||
oper allergiya : CommNoun = i_yaEndDecl "аллерги" ;
|
oper allergiya : CommNoun = i_yaEndDecl "аллерги" ;
|
||||||
|
|
||||||
|
oper viagra : CommNoun = aEndInAnimateDecl "виагр" ;
|
||||||
|
oper antidepressant : CommNoun = nullEndInAnimateDecl1 "антидепрессант" ;
|
||||||
|
oper insulin : CommNoun = nullEndInAnimateDecl1 "инсулин" ;
|
||||||
|
oper vitamin : CommNoun = nullEndInAnimateDecl1 "витамин" ;
|
||||||
|
oper antibiotik : CommNoun = nullEndInAnimateDecl3 "антибиотик" ;
|
||||||
|
oper kaplya : CommNoun = (l_yaEndInAnimateDecl "кап") ** {g = Fem; anim = Inanimate} ;
|
||||||
|
oper snotvornoe : CommNoun = oeEndInAnimateDecl "снотворн" ;
|
||||||
|
oper uspokoitelnoe : CommNoun = oeEndInAnimateDecl "успокоительн" ;
|
||||||
|
oper slabitelnoe : CommNoun = oeEndInAnimateDecl "слабительн" ;
|
||||||
|
|
||||||
|
oper urolog : CommNoun = nullEndAnimateDecl "уролог" ;
|
||||||
|
oper ginekolog : CommNoun = nullEndAnimateDecl "гинеколог" ;
|
||||||
|
oper nevropatolog : CommNoun = nullEndAnimateDecl "невропатолог" ;
|
||||||
|
oper dermatolog : CommNoun = nullEndAnimateDecl "дерматолог" ;
|
||||||
|
oper kardiolog : CommNoun = nullEndAnimateDecl "кардиолог" ;
|
||||||
|
oper terapevt : CommNoun = nullEndAnimateDecl2 "терапевт" ;
|
||||||
|
oper okulist : CommNoun = nullEndAnimateDecl2 "окулист" ;
|
||||||
|
oper pediatr : CommNoun = nullEndAnimateDecl2 "педиатр" ;
|
||||||
oper khirurg : CommNoun = nullEndAnimateDecl2 "хирург" ;
|
oper khirurg : CommNoun = nullEndAnimateDecl2 "хирург" ;
|
||||||
|
|
||||||
oper muzhchina : CommNoun = (aEndAnimateDecl "мужчин") ** { g = Masc ; anim = Animate } ;
|
oper muzhchina : CommNoun = (aEndAnimateDecl "мужчин") ** { g = Masc ; anim = Animate } ;
|
||||||
@@ -382,6 +411,22 @@ oper nullEndAnimateDecl: Str -> CommNoun = \stomatolog ->
|
|||||||
|
|
||||||
SF Pl Acc => stomatolog+"ов" ;
|
SF Pl Acc => stomatolog+"ов" ;
|
||||||
SF Pl Inst => stomatolog+"ами" ;
|
SF Pl Inst => stomatolog+"ами" ;
|
||||||
|
SF Pl Prepos => stomatolog+"ах" } ;
|
||||||
|
g = Masc ; anim = Animate
|
||||||
|
} ;
|
||||||
|
oper nullEndAnimateDecl2: Str -> CommNoun = \stomatolog ->
|
||||||
|
{s = table
|
||||||
|
{ SF Sg Nom => stomatolog ;
|
||||||
|
SF Sg Gen => stomatolog+"а" ;
|
||||||
|
SF Sg Dat => stomatolog+"у" ;
|
||||||
|
SF Sg Acc => stomatolog +"а" ;
|
||||||
|
SF Sg Inst => stomatolog+"ом" ;
|
||||||
|
SF Sg Prepos => stomatolog+"е" ;
|
||||||
|
SF Pl Nom => stomatolog+"ы" ;
|
||||||
|
SF Pl Gen => stomatolog+"ов" ;
|
||||||
|
SF Pl Dat => stomatolog+"ам" ;
|
||||||
|
|
||||||
|
SF Pl Acc => stomatolog+"ов" ;
|
||||||
SF Pl Inst => stomatolog+"ами" ;
|
SF Pl Inst => stomatolog+"ами" ;
|
||||||
SF Pl Prepos => stomatolog+"ах" } ;
|
SF Pl Prepos => stomatolog+"ах" } ;
|
||||||
g = Masc ; anim = Animate
|
g = Masc ; anim = Animate
|
||||||
@@ -423,6 +468,7 @@ oper nullEndInAnimateDecl2: Str -> CommNoun = \gripp ->
|
|||||||
{ SF Sg Nom => gripp ;
|
{ SF Sg Nom => gripp ;
|
||||||
|
|
||||||
SF Sg Gen => gripp+"а" ;
|
SF Sg Gen => gripp+"а" ;
|
||||||
|
SF Sg Dat => gripp+"у" ;
|
||||||
SF Sg Acc => gripp ;
|
SF Sg Acc => gripp ;
|
||||||
SF Sg Inst => gripp+"ом" ;
|
SF Sg Inst => gripp+"ом" ;
|
||||||
SF Sg Prepos => gripp+"е" ;
|
SF Sg Prepos => gripp+"е" ;
|
||||||
@@ -430,6 +476,24 @@ oper nullEndInAnimateDecl2: Str -> CommNoun = \gripp ->
|
|||||||
SF Pl Gen => gripp+"ов" ;
|
SF Pl Gen => gripp+"ов" ;
|
||||||
|
|
||||||
|
|
||||||
|
SF Pl Dat => gripp+"ам" ;
|
||||||
|
SF Pl Acc => gripp +"а";
|
||||||
|
SF Pl Inst => gripp+"ами" ;
|
||||||
|
SF Pl Prepos => gripp+"ах"
|
||||||
|
|
||||||
|
} ;
|
||||||
|
g = Masc ; anim = Inanimate
|
||||||
|
} ;
|
||||||
|
oper nullEndInAnimateDecl3: Str -> CommNoun = \antibiotik ->
|
||||||
|
{s = table
|
||||||
|
{ SF Sg Nom => antibiotik ;
|
||||||
|
|
||||||
|
SF Sg Gen => antibiotik+"а" ;
|
||||||
|
SF Sg Dat => antibiotik+"у" ;
|
||||||
|
SF Sg Acc => antibiotik ;
|
||||||
|
SF Sg Inst => antibiotik+"ом" ;
|
||||||
|
SF Sg Prepos => antibiotik+"е" ;
|
||||||
|
SF Pl Nom => antibiotik+"и" ;
|
||||||
SF Pl Gen => antibiotik+"ов" ;
|
SF Pl Gen => antibiotik+"ов" ;
|
||||||
|
|
||||||
|
|
||||||
@@ -450,6 +514,24 @@ oper eeEndInAnimateDecl: Str -> CommNoun = \obezbolivauch ->
|
|||||||
SF Sg Dat => obezbolivauch+"ему" ;
|
SF Sg Dat => obezbolivauch+"ему" ;
|
||||||
SF Sg Acc => obezbolivauch +"ее";
|
SF Sg Acc => obezbolivauch +"ее";
|
||||||
SF Sg Inst => obezbolivauch+"им" ;
|
SF Sg Inst => obezbolivauch+"им" ;
|
||||||
|
SF Sg Prepos => obezbolivauch+"ем" ;
|
||||||
|
SF Pl Nom => obezbolivauch+"ие" ;
|
||||||
|
SF Pl Gen => obezbolivauch+"их" ;
|
||||||
|
SF Pl Dat => obezbolivauch+"им" ;
|
||||||
|
SF Pl Acc => obezbolivauch+"ие" ;
|
||||||
|
SF Pl Inst => obezbolivauch+"ими" ;
|
||||||
|
SF Pl Prepos => obezbolivauch+"их"
|
||||||
|
} ;
|
||||||
|
g = Neut ; anim = Inanimate
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper oeEndInAnimateDecl: Str -> CommNoun = \snotvorn ->
|
||||||
|
{ s = table
|
||||||
|
{ SF Sg Nom => snotvorn +"ое";
|
||||||
|
SF Sg Gen => snotvorn+"ого" ;
|
||||||
|
SF Sg Dat => snotvorn+"ому" ;
|
||||||
|
SF Sg Acc => snotvorn +"ое";
|
||||||
|
SF Sg Inst => snotvorn+"ым" ;
|
||||||
SF Sg Prepos => snotvorn+"ом" ;
|
SF Sg Prepos => snotvorn+"ом" ;
|
||||||
SF Pl Nom => snotvorn+"ые" ;
|
SF Pl Nom => snotvorn+"ые" ;
|
||||||
SF Pl Gen => snotvorn+"ых" ;
|
SF Pl Gen => snotvorn+"ых" ;
|
||||||
@@ -468,9 +550,9 @@ oper eEndInAnimateDecl: Str -> CommNoun = \proizvedeni ->
|
|||||||
SF Sg Gen => proizvedeni+"я" ;
|
SF Sg Gen => proizvedeni+"я" ;
|
||||||
SF Sg Dat => proizvedeni+"ю" ;
|
SF Sg Dat => proizvedeni+"ю" ;
|
||||||
SF Sg Acc => proizvedeni +"е";
|
SF Sg Acc => proizvedeni +"е";
|
||||||
SF Pl Acc => proizvedeni+"я" ;
|
SF Sg Inst => proizvedeni+"ем" ;
|
||||||
SF Pl Inst => proizvedeni+"ями" ;
|
SF Sg Prepos => proizvedeni+"и" ;
|
||||||
SF Pl Prepos => proizvedeni+"ях"
|
SF Pl Nom => proizvedeni+"я" ;
|
||||||
SF Pl Gen => proizvedeni+"й" ;
|
SF Pl Gen => proizvedeni+"й" ;
|
||||||
SF Pl Dat => proizvedeni+"ям" ;
|
SF Pl Dat => proizvedeni+"ям" ;
|
||||||
SF Pl Acc => proizvedeni+"я" ;
|
SF Pl Acc => proizvedeni+"я" ;
|
||||||
@@ -491,6 +573,42 @@ oper oEndInAnimateDecl3: Str -> Str -> CommNoun = \chisl, chisel ->
|
|||||||
SF Sg Dat => chisl+"у" ;
|
SF Sg Dat => chisl+"у" ;
|
||||||
SF Sg Acc => chisl +"о";
|
SF Sg Acc => chisl +"о";
|
||||||
SF Sg Inst => chisl+"ом" ;
|
SF Sg Inst => chisl+"ом" ;
|
||||||
|
SF Sg Prepos => chisl+"е" ;
|
||||||
|
SF Pl Nom => chisl+"а" ;
|
||||||
|
SF Pl Gen => chisel;
|
||||||
|
SF Pl Dat => chisl+"ам" ;
|
||||||
|
SF Pl Acc => chisl+"а" ;
|
||||||
|
SF Pl Inst => chisl+"ами" ;
|
||||||
|
SF Pl Prepos => chisl+"ах"
|
||||||
|
} ;
|
||||||
|
g = Neut ; anim = Inanimate
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper oEndInAnimateDecl: Str -> CommNoun = \plech ->
|
||||||
|
{ s = table
|
||||||
|
{ SF Sg Nom => plech+"о" ;
|
||||||
|
SF Sg Gen => plech+"а" ;
|
||||||
|
SF Sg Dat => plech+"у" ;
|
||||||
|
SF Sg Acc => plech+"о" ;
|
||||||
|
SF Sg Inst => plech+"ом" ;
|
||||||
|
|
||||||
|
|
||||||
|
SF Sg Prepos => plech+"е" ;
|
||||||
|
SF Pl Nom => plech+"и" ;
|
||||||
|
SF Pl Gen => plech;
|
||||||
|
SF Pl Dat => plech+"ам" ;
|
||||||
|
SF Pl Acc => plech+"и" ;
|
||||||
|
SF Pl Inst => plech+"ами" ;
|
||||||
|
SF Pl Prepos => plech+"ях"
|
||||||
|
|
||||||
|
} ;
|
||||||
|
g = Neut ; anim = Inanimate
|
||||||
|
} ;
|
||||||
|
oper oEnd_KH_InAnimateDecl: Str -> CommNoun = \u ->
|
||||||
|
{ s = table
|
||||||
|
{ SF Sg Nom => u+"хо" ;
|
||||||
|
SF Sg Gen => u+"ха" ;
|
||||||
|
SF Sg Dat => u+"ху" ;
|
||||||
SF Sg Acc => u+"хо" ;
|
SF Sg Acc => u+"хо" ;
|
||||||
SF Sg Inst => u+"хом" ;
|
SF Sg Inst => u+"хом" ;
|
||||||
|
|
||||||
@@ -589,12 +707,12 @@ oper aEndG_K_KH_Decl: Str -> CommNoun = \nog ->
|
|||||||
} ;
|
} ;
|
||||||
g = Masc ; anim = Inanimate
|
g = Masc ; anim = Inanimate
|
||||||
} ;
|
} ;
|
||||||
SF Sg Inst => nog+"ой" ;
|
|
||||||
SF Sg Prepos => nog+"е" ;
|
oper noga : CommNoun = aEndG_K_KH_Decl "ног" ;
|
||||||
SF Pl Nom => nog+"и" ;
|
oper doroga : CommNoun = aEndG_K_KH_Decl "дорог" ;
|
||||||
SF Pl Gen => nog ;
|
oper dvojka : CommNoun = aEndG_K_KH_Decl "двойк" ;
|
||||||
oper butyulka : CommNoun = aEndG_K_KH_Decl "бутылк" ;
|
oper butyulka : CommNoun = aEndG_K_KH_Decl "бутылк" ;
|
||||||
SF Pl Acc => nog+ "и" ;
|
oper aEndG_K_KH_Decl: Str -> CommNoun = \nog ->
|
||||||
{ s = table {
|
{ s = table {
|
||||||
SF Sg Nom => nog+"а" ;
|
SF Sg Nom => nog+"а" ;
|
||||||
SF Sg Gen => nog+"и" ;
|
SF Sg Gen => nog+"и" ;
|
||||||
@@ -611,7 +729,7 @@ oper aEndInanimateDecl: Str -> CommNoun = \golov ->
|
|||||||
|
|
||||||
SF Pl Prepos => nog+"ах"
|
SF Pl Prepos => nog+"ах"
|
||||||
} ;
|
} ;
|
||||||
SF Sg Dat => golov+"е" ;
|
g = Fem ; anim = Inanimate
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
oper golova : CommNoun = aEndInAnimateDecl "голов" ;
|
oper golova : CommNoun = aEndInAnimateDecl "голов" ;
|
||||||
@@ -647,6 +765,22 @@ oper yaEndAnimateDecl: Str -> SubstFormDecl = \nyan ->
|
|||||||
|
|
||||||
SF Sg Prepos => ediniz+"е" ;
|
SF Sg Prepos => ediniz+"е" ;
|
||||||
SF Pl Nom => ediniz+"ы" ;
|
SF Pl Nom => ediniz+"ы" ;
|
||||||
|
SF Pl Gen => ediniz ;
|
||||||
|
SF Pl Dat => ediniz+"ам" ;
|
||||||
|
SF Pl Acc => ediniz+ "ы" ;
|
||||||
|
SF Pl Inst => ediniz+"ами" ;
|
||||||
|
SF Pl Prepos => ediniz+"ах"
|
||||||
|
} ;
|
||||||
|
g = Fem ; anim = Inanimate
|
||||||
|
} ;
|
||||||
|
|
||||||
|
|
||||||
|
oper dyadya : CommNoun = (yaEndAnimateDecl "дяд") ** {g = Masc; anim = Animate} ;
|
||||||
|
oper yaEndAnimateDecl: Str -> SubstFormDecl = \nyan ->
|
||||||
|
{s = table {
|
||||||
|
SF Sg Nom => nyan + "я" ;
|
||||||
|
|
||||||
|
SF Sg Gen => nyan + "и" ;
|
||||||
SF Sg Dat => nyan + "е" ;
|
SF Sg Dat => nyan + "е" ;
|
||||||
SF Sg Acc => nyan + "ю" ;
|
SF Sg Acc => nyan + "ю" ;
|
||||||
SF Sg Inst => nyan + "ей" ;
|
SF Sg Inst => nyan + "ей" ;
|
||||||
@@ -737,6 +871,7 @@ oper
|
|||||||
|
|
||||||
-- Note: Now we consider only the plural form of the pronoun "все" (all)
|
-- Note: Now we consider only the plural form of the pronoun "все" (all)
|
||||||
-- treated as an adjective (see AllDetPl definition).
|
-- treated as an adjective (see AllDetPl definition).
|
||||||
|
-- The meaning "entire" is not considered, which allows us to form
|
||||||
-- the pronoun-adjective from the substantive form below:
|
-- the pronoun-adjective from the substantive form below:
|
||||||
|
|
||||||
oper eEnd_Decl: Str -> CommNoun = \vs ->
|
oper eEnd_Decl: Str -> CommNoun = \vs ->
|
||||||
|
|||||||
@@ -267,8 +267,8 @@ oper
|
|||||||
anim = anim
|
anim = anim
|
||||||
} ** {lock_N = <>} ;
|
} ** {lock_N = <>} ;
|
||||||
|
|
||||||
nMashina = \s -> aEndInanimateDecl s ** {lock_N = <>};
|
nMashina = \s -> aEndInAnimateDecl s ** {lock_N = <>};
|
||||||
nEdinica = \s -> ej_aEndInanimateDecl s ** {lock_N = <>};
|
nEdinica = \s -> ej_aEndInAnimateDecl s ** {lock_N = <>};
|
||||||
nZhenchina = \s -> (aEndAnimateDecl s) ** { g = Fem ; anim = Animate } ** {lock_N = <>};
|
nZhenchina = \s -> (aEndAnimateDecl s) ** { g = Fem ; anim = Animate } ** {lock_N = <>};
|
||||||
nNoga = \s -> aEndG_K_KH_Decl s ** {lock_N = <>};
|
nNoga = \s -> aEndG_K_KH_Decl s ** {lock_N = <>};
|
||||||
nMalyariya = \s -> i_yaEndDecl s ** {lock_N = <>};
|
nMalyariya = \s -> i_yaEndDecl s ** {lock_N = <>};
|
||||||
|
|||||||
Reference in New Issue
Block a user