forked from GitHub/gf-core
updates in Phrasebook and resources
This commit is contained in:
@@ -145,5 +145,11 @@ abstract Sentences = Numeral ** {
|
||||
|
||||
ByTransp : Transport -> ByTransport ; -- by bus
|
||||
|
||||
AKnowSentence : Person -> Sentence -> Action ; -- you know that I am in the bar
|
||||
AKnowPerson : Person -> Person -> Action ; -- you know me
|
||||
|
||||
-- in Words, as long as Lexicon doesn't have it
|
||||
-- AKnowQuestion : Person -> Question -> Action ; -- you know how far the bar is
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@ concrete SentencesBul of Sentences =
|
||||
NumeralBul ** SentencesI - [IMale, IFemale, YouFamMale, YouFamFemale, YouPolMale,
|
||||
YouPolFemale, ACitizen, Citizenship, PCitizenship,
|
||||
LangNat, CitiNat, CountryNat, PropCit,
|
||||
Nationality, Country, Language, PLanguage, PCountry] with
|
||||
Nationality, Country, Language, PLanguage, PCountry
|
||||
] with
|
||||
(Syntax = SyntaxBul),
|
||||
(Symbolic = SymbolicBul),
|
||||
(Lexicon = LexiconBul) ** open ExtraBul, (R = ResBul) in {
|
||||
|
||||
@@ -133,6 +133,9 @@ incomplete concrete SentencesI of Sentences = Numeral **
|
||||
ABePlace p place = mkCl p.name place.at ;
|
||||
ByTransp t = t.by ;
|
||||
|
||||
AKnowSentence p s = mkCl p.name Lexicon.know_VS s ;
|
||||
AKnowPerson p q = mkCl p.name Lexicon.know_V2 q.name ;
|
||||
|
||||
oper
|
||||
|
||||
-- These operations are used internally in Sentences.
|
||||
|
||||
@@ -33,7 +33,7 @@ concrete WordsGer of Words = SentencesGer **
|
||||
Fresh = mkA "frisch" ;
|
||||
Good = L.good_A ;
|
||||
Warm = L.warm_A ;
|
||||
Suspect = mkA "vermut" ;
|
||||
Suspect = mkA "verdächtig" ;
|
||||
|
||||
-- places
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Test:
|
||||
-- which can be provided by 'runghc Make present lang api langs=Eng' in lib/src/
|
||||
% gf QueryEng.gf
|
||||
-- parse a sentence and see all variants
|
||||
> "p "Bulgarian people working at Google" | l -all
|
||||
> p "Bulgarian people working at Google" | l -all
|
||||
|
||||
Regression test:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user