mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
embedded questions in phrasebook
This commit is contained in:
@@ -70,7 +70,8 @@ abstract Sentences = Numeral ** {
|
|||||||
|
|
||||||
-- This is the way to build propositions about inanimate items.
|
-- This is the way to build propositions about inanimate items.
|
||||||
|
|
||||||
Is : Item -> Quality -> Proposition ; -- this pizza is good
|
Is : Item -> Quality -> Proposition ; -- this pizza is good
|
||||||
|
IsMass : MassKind -> Quality -> Proposition ; -- Belgian beer is good
|
||||||
|
|
||||||
-- To use propositions on higher levels.
|
-- To use propositions on higher levels.
|
||||||
|
|
||||||
@@ -146,10 +147,8 @@ abstract Sentences = Numeral ** {
|
|||||||
ByTransp : Transport -> ByTransport ; -- by bus
|
ByTransp : Transport -> ByTransport ; -- by bus
|
||||||
|
|
||||||
AKnowSentence : Person -> Sentence -> Action ; -- you know that I am in the bar
|
AKnowSentence : Person -> Sentence -> Action ; -- you know that I am in the bar
|
||||||
AKnowPerson : Person -> Person -> Action ; -- you know me
|
AKnowPerson : Person -> Person -> Action ; -- you know me
|
||||||
|
AKnowQuestion : Person -> Question -> Action ; -- you know how far the bar is
|
||||||
-- in Words, as long as Lexicon doesn't have it
|
|
||||||
-- AKnowQuestion : Person -> Question -> Action ; -- you know how far the bar is
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
concrete SentencesCat of Sentences = NumeralCat ** SentencesI - [
|
concrete SentencesCat of Sentences = NumeralCat ** SentencesI - [
|
||||||
|
IsMass,
|
||||||
IFemale, YouFamFemale, YouPolFemale, IMale, YouFamMale, YouPolMale,
|
IFemale, YouFamFemale, YouPolFemale, IMale, YouFamMale, YouPolMale,
|
||||||
WherePlace, WherePerson, ABePlace,
|
WherePlace, WherePerson, ABePlace,
|
||||||
Superlative
|
Superlative
|
||||||
@@ -15,6 +16,7 @@ lincat
|
|||||||
Superlative = OrdSuperlative ; -- {ord: Ord ; isPre: Bool}
|
Superlative = OrdSuperlative ; -- {ord: Ord ; isPre: Bool}
|
||||||
|
|
||||||
lin
|
lin
|
||||||
|
IsMass m q = mkCl (mkNP the_Det m) q ; -- le vin allemand est bon
|
||||||
|
|
||||||
IFemale =
|
IFemale =
|
||||||
{name = mkNP (ProDrop i8fem_Pron) ; isPron = True ; poss = mkQuant i_Pron} ;
|
{name = mkNP (ProDrop i8fem_Pron) ; isPron = True ; poss = mkQuant i_Pron} ;
|
||||||
@@ -61,4 +63,4 @@ oper
|
|||||||
at = SyntaxCat.mkAdv kind.at name ;
|
at = SyntaxCat.mkAdv kind.at name ;
|
||||||
to = SyntaxCat.mkAdv kind.to name ;
|
to = SyntaxCat.mkAdv kind.to name ;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
concrete SentencesFin of Sentences = NumeralFin ** SentencesI -
|
concrete SentencesFin of Sentences = NumeralFin ** SentencesI -
|
||||||
[Is, NameNN, ObjMass,
|
[Is, IsMass, NameNN, ObjMass,
|
||||||
IFemale, YouFamFemale, YouPolFemale, IMale, YouFamMale, YouPolMale
|
IFemale, YouFamFemale, YouPolFemale, IMale, YouFamMale, YouPolMale
|
||||||
] with
|
] with
|
||||||
(Syntax = SyntaxFin),
|
(Syntax = SyntaxFin),
|
||||||
@@ -7,7 +7,8 @@ concrete SentencesFin of Sentences = NumeralFin ** SentencesI -
|
|||||||
(Lexicon = LexiconFin) ** open SyntaxFin, ExtraFin, (P = ParadigmsFin), (V = VerbFin) in {
|
(Lexicon = LexiconFin) ** open SyntaxFin, ExtraFin, (P = ParadigmsFin), (V = VerbFin) in {
|
||||||
|
|
||||||
lin
|
lin
|
||||||
Is item prop = mkCl item (V.UseComp (CompPartAP prop)) ; -- pizza on herkullista
|
Is item prop = mkCl item (V.UseComp (CompPartAP prop)) ; -- tämä pizza on herkullista
|
||||||
|
IsMass mass prop = mkCl (mkNP a_Det mass) (V.UseComp (CompPartAP prop)) ; -- pizza on herkullista
|
||||||
NameNN = mkNP (P.mkPN (P.mkN "NN" "NN:iä")) ;
|
NameNN = mkNP (P.mkPN (P.mkN "NN" "NN:iä")) ;
|
||||||
|
|
||||||
IMale, IFemale =
|
IMale, IFemale =
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
concrete SentencesFre of Sentences = NumeralFre ** SentencesI - [
|
concrete SentencesFre of Sentences = NumeralFre ** SentencesI - [
|
||||||
|
IsMass,
|
||||||
QProp,
|
QProp,
|
||||||
IFemale, YouFamFemale, YouPolFemale,
|
IFemale, YouFamFemale, YouPolFemale,
|
||||||
PYesToNo,
|
PYesToNo,
|
||||||
@@ -14,6 +15,7 @@ concrete SentencesFre of Sentences = NumeralFre ** SentencesI - [
|
|||||||
lincat
|
lincat
|
||||||
Superlative = {s : Ord ; isPre : Bool} ;
|
Superlative = {s : Ord ; isPre : Bool} ;
|
||||||
lin
|
lin
|
||||||
|
IsMass m q = mkCl (mkNP the_Det m) q ; -- le vin allemand est bon
|
||||||
QProp a =
|
QProp a =
|
||||||
lin QS {s = \\_ => (EstcequeS (mkS a)).s} ;
|
lin QS {s = \\_ => (EstcequeS (mkS a)).s} ;
|
||||||
IFemale =
|
IFemale =
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ incomplete concrete SentencesI of Sentences = Numeral **
|
|||||||
PYesToNo = mkPhrase yes_Utt ;
|
PYesToNo = mkPhrase yes_Utt ;
|
||||||
|
|
||||||
Is = mkCl ;
|
Is = mkCl ;
|
||||||
|
IsMass m q = mkCl (mkNP m) q ;
|
||||||
|
|
||||||
SProp = mkS ;
|
SProp = mkS ;
|
||||||
SPropNot = mkS negativePol ;
|
SPropNot = mkS negativePol ;
|
||||||
@@ -134,6 +135,7 @@ incomplete concrete SentencesI of Sentences = Numeral **
|
|||||||
ByTransp t = t.by ;
|
ByTransp t = t.by ;
|
||||||
|
|
||||||
AKnowSentence p s = mkCl p.name Lexicon.know_VS s ;
|
AKnowSentence p s = mkCl p.name Lexicon.know_VS s ;
|
||||||
|
AKnowQuestion p s = mkCl p.name Lexicon.know_VQ s ;
|
||||||
AKnowPerson p q = mkCl p.name Lexicon.know_V2 q.name ;
|
AKnowPerson p q = mkCl p.name Lexicon.know_V2 q.name ;
|
||||||
|
|
||||||
oper
|
oper
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
concrete SentencesIta of Sentences = NumeralIta ** SentencesI - [
|
concrete SentencesIta of Sentences = NumeralIta ** SentencesI - [
|
||||||
|
IsMass,
|
||||||
IFemale, YouFamFemale, YouPolFemale, IMale, YouFamMale, YouPolMale,
|
IFemale, YouFamFemale, YouPolFemale, IMale, YouFamMale, YouPolMale,
|
||||||
mkPerson, Superlative, SHaveNoMass
|
mkPerson, Superlative, SHaveNoMass
|
||||||
]
|
]
|
||||||
@@ -13,6 +14,8 @@ concrete SentencesIta of Sentences = NumeralIta ** SentencesI - [
|
|||||||
Superlative = {s : A ; isPre : Bool} ;
|
Superlative = {s : A ; isPre : Bool} ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
|
IsMass m q = mkCl (mkNP the_Det m) q ; -- le vin allemand est bon
|
||||||
|
|
||||||
IFemale =
|
IFemale =
|
||||||
{name = mkNP (ProDrop i8fem_Pron) ; isPron = True ; poss = PossFamQuant i_Pron} ;
|
{name = mkNP (ProDrop i8fem_Pron) ; isPron = True ; poss = PossFamQuant i_Pron} ;
|
||||||
YouFamFemale =
|
YouFamFemale =
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
concrete SentencesRon of Sentences = NumeralRon ** SentencesI - [
|
concrete SentencesRon of Sentences = NumeralRon ** SentencesI - [
|
||||||
|
IsMass,
|
||||||
IFemale, YouFamFemale, YouPolFemale, IMale, YouFamMale, YouPolMale,
|
IFemale, YouFamFemale, YouPolFemale, IMale, YouFamMale, YouPolMale,
|
||||||
ThePlace, Nationality, CitiNat, Citizenship, ACitizen, PCitizenship, PropCit
|
ThePlace, Nationality, CitiNat, Citizenship, ACitizen, PCitizenship, PropCit
|
||||||
]
|
]
|
||||||
@@ -39,6 +40,8 @@ lincat
|
|||||||
Citizenship = CitizenshipRon ;
|
Citizenship = CitizenshipRon ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
|
IsMass m q = mkCl (mkNP the_Det m) q ; -- le vin allemand est bon
|
||||||
|
|
||||||
IFemale = {name = mkNP i8fem_Pron ; isPron = True ; poss = mkQuant i_Pron} ;
|
IFemale = {name = mkNP i8fem_Pron ; isPron = True ; poss = mkQuant i_Pron} ;
|
||||||
YouFamFemale = {name = mkNP youSg8fem_Pron ; isPron = True ; poss = mkQuant youSg_Pron} ;
|
YouFamFemale = {name = mkNP youSg8fem_Pron ; isPron = True ; poss = mkQuant youSg_Pron} ;
|
||||||
YouPolFemale = {name = mkNP youPol8fem_Pron ; isPron = True ; poss = mkQuant youPol_Pron};
|
YouPolFemale = {name = mkNP youPol8fem_Pron ; isPron = True ; poss = mkQuant youPol_Pron};
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
concrete SentencesSpa of Sentences = NumeralSpa ** SentencesI - [
|
concrete SentencesSpa of Sentences = NumeralSpa ** SentencesI - [
|
||||||
|
IsMass,
|
||||||
IFemale, YouFamFemale, YouPolFemale, IMale, YouFamMale, YouPolMale,
|
IFemale, YouFamFemale, YouPolFemale, IMale, YouFamMale, YouPolMale,
|
||||||
WherePlace, WherePerson, ABePlace,
|
WherePlace, WherePerson, ABePlace,
|
||||||
Superlative
|
Superlative
|
||||||
@@ -16,6 +17,8 @@ flags coding = utf8 ;
|
|||||||
|
|
||||||
lin
|
lin
|
||||||
|
|
||||||
|
IsMass m q = mkCl (mkNP the_Det m) q ; -- le vin allemand est bon
|
||||||
|
|
||||||
IFemale =
|
IFemale =
|
||||||
{name = mkNP (ProDrop i8fem_Pron) ; isPron = True ; poss = mkQuant i_Pron} ;
|
{name = mkNP (ProDrop i8fem_Pron) ; isPron = True ; poss = mkQuant i_Pron} ;
|
||||||
YouFamFemale =
|
YouFamFemale =
|
||||||
@@ -69,4 +72,4 @@ oper
|
|||||||
at = SyntaxSpa.mkAdv kind.at name ;
|
at = SyntaxSpa.mkAdv kind.at name ;
|
||||||
to = SyntaxSpa.mkAdv kind.to name ;
|
to = SyntaxSpa.mkAdv kind.to name ;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user