mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-23 18:02:54 -06:00
extended phrasebook for Swedish (almost complete)
This commit is contained in:
@@ -61,6 +61,8 @@ abstract Sentences = Numeral ** {
|
|||||||
PCitizenship : Citizenship -> Phrase ;
|
PCitizenship : Citizenship -> Phrase ;
|
||||||
PCountry : Country -> Phrase ;
|
PCountry : Country -> Phrase ;
|
||||||
PDay : Day -> Phrase ;
|
PDay : Day -> Phrase ;
|
||||||
|
PByTransport : ByTransport -> Phrase ;
|
||||||
|
PTransport : Transport -> Phrase ;
|
||||||
|
|
||||||
PYes, PNo : Phrase ;
|
PYes, PNo : Phrase ;
|
||||||
|
|
||||||
@@ -130,5 +132,7 @@ abstract Sentences = Numeral ** {
|
|||||||
ACitizen : Person -> Citizenship -> Action ; -- you are Swedish
|
ACitizen : Person -> Citizenship -> Action ; -- you are Swedish
|
||||||
ABePlace : Person -> Place -> Action ; -- you are in the bar
|
ABePlace : Person -> Place -> Action ; -- you are in the bar
|
||||||
|
|
||||||
|
ByTransp : Transport -> ByTransport ; -- by bus
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ incomplete concrete SentencesI of Sentences = Numeral **
|
|||||||
Name = NP ;
|
Name = NP ;
|
||||||
Number = Card ;
|
Number = Card ;
|
||||||
ByTransport = Adv ;
|
ByTransport = Adv ;
|
||||||
Transport = {name : NP ; by : Adv} ;
|
Transport = {name : CN ; by : Adv} ;
|
||||||
Superlative = Det ;
|
Superlative = Det ;
|
||||||
lin
|
lin
|
||||||
PSentence s = mkText s | lin Text (mkUtt s) ; -- optional '.'
|
PSentence s = mkText s | lin Text (mkUtt s) ; -- optional '.'
|
||||||
@@ -53,6 +53,8 @@ incomplete concrete SentencesI of Sentences = Numeral **
|
|||||||
PCountry x = mkPhrase (mkUtt x) ;
|
PCountry x = mkPhrase (mkUtt x) ;
|
||||||
PCitizenship x = mkPhrase (mkUtt (mkAP x)) ;
|
PCitizenship x = mkPhrase (mkUtt (mkAP x)) ;
|
||||||
PDay d = mkPhrase (mkUtt d.name) ;
|
PDay d = mkPhrase (mkUtt d.name) ;
|
||||||
|
PTransport t = mkPhrase (mkUtt t.name) ;
|
||||||
|
PByTransport t = mkPhrase (mkUtt t) ;
|
||||||
|
|
||||||
PYes = mkPhrase yes_Utt ;
|
PYes = mkPhrase yes_Utt ;
|
||||||
PNo = mkPhrase no_Utt ;
|
PNo = mkPhrase no_Utt ;
|
||||||
@@ -88,18 +90,8 @@ incomplete concrete SentencesI of Sentences = Numeral **
|
|||||||
Too property = mkAP too_AdA (mkAP property) ;
|
Too property = mkAP too_AdA (mkAP property) ;
|
||||||
PropQuality property = mkAP property ;
|
PropQuality property = mkAP property ;
|
||||||
|
|
||||||
ThePlace kind =
|
ThePlace kind = placeNP the_Det kind ;
|
||||||
let name : NP = mkNP the_Quant kind.name in {
|
APlace kind = placeNP a_Det kind ;
|
||||||
name = name ;
|
|
||||||
at = mkAdv kind.at name ;
|
|
||||||
to = mkAdv kind.to name
|
|
||||||
} ;
|
|
||||||
APlace kind =
|
|
||||||
let name : NP = mkNP a_Quant kind.name in {
|
|
||||||
name = name ;
|
|
||||||
at = mkAdv kind.at name ;
|
|
||||||
to = mkAdv kind.to name
|
|
||||||
} ;
|
|
||||||
|
|
||||||
IMale, IFemale = mkPerson i_Pron ;
|
IMale, IFemale = mkPerson i_Pron ;
|
||||||
YouFamMale, YouFamFemale = mkPerson youSg_Pron ;
|
YouFamMale, YouFamFemale = mkPerson youSg_Pron ;
|
||||||
@@ -123,7 +115,7 @@ incomplete concrete SentencesI of Sentences = Numeral **
|
|||||||
AHave p kind = mkCl p.name have_V2 (mkNP kind) ;
|
AHave p kind = mkCl p.name have_V2 (mkNP kind) ;
|
||||||
ACitizen p n = mkCl p.name n ;
|
ACitizen p n = mkCl p.name n ;
|
||||||
ABePlace p place = mkCl p.name place.at ;
|
ABePlace p place = mkCl p.name place.at ;
|
||||||
|
ByTransp t = t.by ;
|
||||||
|
|
||||||
oper
|
oper
|
||||||
|
|
||||||
@@ -161,6 +153,13 @@ oper
|
|||||||
to = t
|
to = t
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
placeNP : Det -> CNPlace -> NPPlace = \det,kind ->
|
||||||
|
let name : NP = mkNP det kind.name in {
|
||||||
|
name = name ;
|
||||||
|
at = mkAdv kind.at name ;
|
||||||
|
to = mkAdv kind.to name
|
||||||
|
} ;
|
||||||
|
|
||||||
NPPerson : Type = {name : NP ; isPron : Bool ; poss : Quant} ;
|
NPPerson : Type = {name : NP ; isPron : Bool ; poss : Quant} ;
|
||||||
|
|
||||||
relativePerson : GNumber -> CN -> (Num -> NP -> CN -> NP) -> NPPerson -> NPPerson =
|
relativePerson : GNumber -> CN -> (Num -> NP -> CN -> NP) -> NPPerson -> NPPerson =
|
||||||
|
|||||||
@@ -40,41 +40,43 @@ abstract Words = Sentences ** {
|
|||||||
-- kinds of places
|
-- kinds of places
|
||||||
|
|
||||||
Airport : PlaceKind ;
|
Airport : PlaceKind ;
|
||||||
|
AmusementPark : PlaceKind ;
|
||||||
|
Bank : PlaceKind ;
|
||||||
Bar : PlaceKind ;
|
Bar : PlaceKind ;
|
||||||
|
Cafeteria : PlaceKind ;
|
||||||
|
Center : PlaceKind ;
|
||||||
Cinema : PlaceKind ;
|
Cinema : PlaceKind ;
|
||||||
Church : PlaceKind ;
|
Church : PlaceKind ;
|
||||||
|
Disco : PlaceKind ;
|
||||||
Hospital : PlaceKind ;
|
Hospital : PlaceKind ;
|
||||||
Hotel : PlaceKind ;
|
Hotel : PlaceKind ;
|
||||||
Museum : PlaceKind ;
|
Museum : PlaceKind ;
|
||||||
Park : PlaceKind ;
|
Park : PlaceKind ;
|
||||||
|
Parking : PlaceKind ;
|
||||||
|
Pharmacy : PlaceKind ;
|
||||||
|
PostOffice : PlaceKind ;
|
||||||
|
Pub : PlaceKind ;
|
||||||
Restaurant : PlaceKind ;
|
Restaurant : PlaceKind ;
|
||||||
School : PlaceKind ;
|
School : PlaceKind ;
|
||||||
Shop : PlaceKind ;
|
Shop : PlaceKind ;
|
||||||
Station : PlaceKind ;
|
Station : PlaceKind ;
|
||||||
|
Supermarket : PlaceKind ;
|
||||||
Theatre : PlaceKind ;
|
Theatre : PlaceKind ;
|
||||||
Toilet : PlaceKind ;
|
Toilet : PlaceKind ;
|
||||||
University : PlaceKind ;
|
University : PlaceKind ;
|
||||||
|
Zoo : PlaceKind ;
|
||||||
|
|
||||||
CitRestaurant : Citizenship -> PlaceKind ;
|
CitRestaurant : Citizenship -> PlaceKind ;
|
||||||
Parking : PlaceKind ;
|
|
||||||
Supermarket : PlaceKind ;
|
|
||||||
Pharmacy : PlaceKind ;
|
|
||||||
Center : PlaceKind ;
|
|
||||||
Cafeteria : PlaceKind ;
|
|
||||||
Disco : PlaceKind ;
|
|
||||||
Pub : PlaceKind ;
|
|
||||||
AmusementPark : PlaceKind ;
|
|
||||||
|
|
||||||
-- currency units
|
-- currency units
|
||||||
|
|
||||||
DanishCrown : Currency ;
|
DanishCrown : Currency ;
|
||||||
Dollar : Currency ;
|
Dollar : Currency ;
|
||||||
Euro : Currency ; -- Germany, France, Italy, Finland, Spain, Netherlands
|
Euro : Currency ; -- Germany, France, Italy, Finland, Spain, The Netherlands
|
||||||
Lei : Currency ; -- Romania
|
Lei : Currency ; -- Romania
|
||||||
Leva : Currency ; -- Bulgaria
|
Leva : Currency ; -- Bulgaria
|
||||||
NorwegianCrown : Currency ;
|
NorwegianCrown : Currency ;
|
||||||
Ruble : Currency ; -- Russia
|
Rouble : Currency ; -- Russia
|
||||||
SwedishCrown : Currency ;
|
SwedishCrown : Currency ;
|
||||||
Zloty : Currency ; -- Poland
|
Zloty : Currency ; -- Poland
|
||||||
|
|
||||||
@@ -83,39 +85,34 @@ abstract Words = Sentences ** {
|
|||||||
|
|
||||||
Belgian : Citizenship ;
|
Belgian : Citizenship ;
|
||||||
Belgium : Country ;
|
Belgium : Country ;
|
||||||
|
Bulgarian : Nationality ;
|
||||||
|
Catalan : Nationality ;
|
||||||
|
Danish : Nationality ;
|
||||||
|
Dutch : Nationality ;
|
||||||
English : Nationality ;
|
English : Nationality ;
|
||||||
Finnish : Nationality ;
|
Finnish : Nationality ;
|
||||||
Flemish : Language ;
|
Flemish : Language ;
|
||||||
French : Nationality ;
|
French : Nationality ;
|
||||||
Italian : Nationality ;
|
|
||||||
Romanian : Nationality ;
|
|
||||||
Swedish : Nationality ;
|
|
||||||
|
|
||||||
-- ** added
|
|
||||||
Spanish : Nationality ;
|
|
||||||
Norwegian : Nationality ;
|
|
||||||
Danish : Nationality ;
|
|
||||||
-- Dane : Citizenship ;
|
|
||||||
Dutch : Nationality ;
|
|
||||||
Polish : Nationality ;
|
|
||||||
Catalan : Language ; -- ???
|
|
||||||
German : Nationality ;
|
German : Nationality ;
|
||||||
|
Italian : Nationality ;
|
||||||
|
Norwegian : Nationality ;
|
||||||
|
Polish : Nationality ;
|
||||||
|
Romanian : Nationality ;
|
||||||
Russian : Nationality ;
|
Russian : Nationality ;
|
||||||
Bulgarian : Nationality ;
|
Spanish : Nationality ;
|
||||||
|
Swedish : Nationality ;
|
||||||
|
|
||||||
|
|
||||||
-- means of transportation
|
-- means of transportation
|
||||||
|
|
||||||
Train : Transport ;
|
|
||||||
Bus : Transport ;
|
|
||||||
Plane : Transport ;
|
|
||||||
Ferry : Transport ;
|
|
||||||
Subway : Transport ;
|
|
||||||
Tram : Transport ;
|
|
||||||
Taxi : Transport ;
|
|
||||||
Car : Transport ;
|
|
||||||
Bike : Transport ;
|
Bike : Transport ;
|
||||||
|
Bus : Transport ;
|
||||||
|
Car : Transport ;
|
||||||
|
Ferry : Transport ;
|
||||||
|
Plane : Transport ;
|
||||||
|
Subway : Transport ;
|
||||||
|
Taxi : Transport ;
|
||||||
|
Train : Transport ;
|
||||||
|
Tram : Transport ;
|
||||||
|
|
||||||
ByFoot : ByTransport ;
|
ByFoot : ByTransport ;
|
||||||
|
|
||||||
@@ -178,21 +175,21 @@ abstract Words = Sentences ** {
|
|||||||
|
|
||||||
HowFar : Place -> Question ; -- how far is the zoo ?
|
HowFar : Place -> Question ; -- how far is the zoo ?
|
||||||
HowFarFrom : Place -> Place -> Question ; -- how far is the center from the hotel ?
|
HowFarFrom : Place -> Place -> Question ; -- how far is the center from the hotel ?
|
||||||
HowFarFromBy : Place -> Place -> ByTransport -> Question ; -- how far is the airport from the hotel by taxi ?
|
HowFarFromBy : Place -> Place -> ByTransport -> Question ;
|
||||||
|
-- how far is the airport from the hotel by taxi ?
|
||||||
HowFarBy : Place -> Transport -> Question ; -- how far is the museum by bus ?
|
HowFarBy : Place -> Transport -> Question ; -- how far is the museum by bus ?
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
WhichTranspPlace : Transport -> Place -> Question ; -- which bus goes to the hotel
|
WhichTranspPlace : Transport -> Place -> Question ; -- which bus goes to the hotel
|
||||||
IsTranspPlace : Transport -> Place -> Question ; -- is there a metro to the airport ?
|
IsTranspPlace : Transport -> Place -> Question ; -- is there a metro to the airport ?
|
||||||
ByTransp : Transport -> ByTransport ; -- by bus
|
|
||||||
|
-- modifiers of places
|
||||||
|
|
||||||
TheBest : Superlative ;
|
TheBest : Superlative ;
|
||||||
TheClosest : Superlative ;
|
TheClosest : Superlative ;
|
||||||
TheCheapest : Superlative ;
|
TheCheapest : Superlative ;
|
||||||
|
TheMostExpensive : Superlative ;
|
||||||
|
TheMostPopular : Superlative ;
|
||||||
TheWorst : Superlative ;
|
TheWorst : Superlative ;
|
||||||
MostExpensive : Superlative ;
|
|
||||||
MostPopular : Superlative ;
|
|
||||||
|
|
||||||
SuperlPlace : Superlative -> PlaceKind -> Place ; -- the best bar
|
SuperlPlace : Superlative -> PlaceKind -> Place ; -- the best bar
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- (c) 2009 Aarne Ranta under LGPL
|
-- (c) 2010 Aarne Ranta under LGPL
|
||||||
|
|
||||||
concrete WordsSwe of Words = SentencesSwe **
|
concrete WordsSwe of Words = SentencesSwe **
|
||||||
open SyntaxSwe, ParadigmsSwe, IrregSwe, (L = LexiconSwe), ExtraSwe, Prelude in {
|
open SyntaxSwe, ParadigmsSwe, IrregSwe, (L = LexiconSwe), ExtraSwe, Prelude in {
|
||||||
@@ -38,20 +38,33 @@ concrete WordsSwe of Words = SentencesSwe **
|
|||||||
-- places
|
-- places
|
||||||
|
|
||||||
Airport = mkPlace (mkN "flygplats" "flygplatser") "på" ;
|
Airport = mkPlace (mkN "flygplats" "flygplatser") "på" ;
|
||||||
|
AmusementPark = mkPlace (mkN "nöjespark" "nöjesparken") "i" ;
|
||||||
|
Bank = mkPlace (mkN "bank" "banker") "i" ;
|
||||||
Bar = mkPlace (mkN "bar" "barer") "i" ;
|
Bar = mkPlace (mkN "bar" "barer") "i" ;
|
||||||
|
Cafeteria = mkPlace (mkN "café" "café") "på" ;
|
||||||
|
Center = mkPlace (mkN "innerstad" "innerstäder") "på" ; ----
|
||||||
Church = mkPlace (mkN "kyrka") "i" ;
|
Church = mkPlace (mkN "kyrka") "i" ;
|
||||||
Cinema = mkPlace (mkN "bio" "bio" "bion" "biona") "på" ; ---- ?
|
Cinema = mkPlace (mkN "bio" "bio" "bion" "biona") "på" ; ---- ?
|
||||||
|
Disco = mkPlace (mkN "diskotek" "diskotek") "på" ;
|
||||||
Hospital = mkPlace (mkN "sjukhus" "sjukhus") "på" ;
|
Hospital = mkPlace (mkN "sjukhus" "sjukhus") "på" ;
|
||||||
Hotel = mkPlace (mkN "hotell" "hotell") "på" ;
|
Hotel = mkPlace (mkN "hotell" "hotell") "på" ;
|
||||||
Museum = mkPlace (mkN "museum" "museet" "museer" "museerna") "på" ;
|
Museum = mkPlace (mkN "museum" "museet" "museer" "museerna") "på" ;
|
||||||
Park = mkPlace (mkN "park" "parker") "i" ;
|
Park = mkPlace (mkN "park" "parker") "i" ;
|
||||||
|
Parking = mkPlace (mkN "parkering") "på" ;
|
||||||
|
Pharmacy = mkPlace (mkN "apotek" "apotek") "i" ;
|
||||||
|
PostOffice = mkPlace (mkN "post" "poster") "på" ;
|
||||||
|
Pub = mkPlace (mkN "pub" "pubben") "på" ;
|
||||||
Restaurant = mkPlace (mkN "restaurang" "restauranger") "på" ;
|
Restaurant = mkPlace (mkN "restaurang" "restauranger") "på" ;
|
||||||
Shop = mkPlace (mkN "affär" "affär") "i" ;
|
Shop = mkPlace (mkN "affär" "affär") "i" ;
|
||||||
School = mkPlace (mkN "skola") "på" ;
|
School = mkPlace (mkN "skola") "på" ;
|
||||||
Station = mkPlace (mkN "station" "stationer") "på" ;
|
Station = mkPlace (mkN "station" "stationer") "på" ;
|
||||||
|
Supermarket = mkPlace (mkN "snabbköp" "snabbköp") "på" ;
|
||||||
Theatre = mkPlace (mkN "teater" "teatrar") "på" ;
|
Theatre = mkPlace (mkN "teater" "teatrar") "på" ;
|
||||||
Toilet = mkPlace (mkN "toalett" "toaletter") "på" ;
|
Toilet = mkPlace (mkN "toalett" "toaletter") "på" ;
|
||||||
University = mkPlace (mkN "universitet" "universitet") "på" ;
|
University = mkPlace (mkN "universitet" "universitet") "på" ;
|
||||||
|
Zoo = mkPlace (mkN "djurpark" "djurparker") "i" ;
|
||||||
|
|
||||||
|
CitRestaurant cit = mkCNPlace (mkCN cit (mkN "restaurang" "restauranger")) on_Prep to_Prep ;
|
||||||
|
|
||||||
-- currencies
|
-- currencies
|
||||||
|
|
||||||
@@ -59,20 +72,47 @@ concrete WordsSwe of Words = SentencesSwe **
|
|||||||
Dollar = mkCN (mkN "dollar" "dollar") ;
|
Dollar = mkCN (mkN "dollar" "dollar") ;
|
||||||
Euro = mkCN (mkN "euro" "euro") ;
|
Euro = mkCN (mkN "euro" "euro") ;
|
||||||
Lei = mkCN (mkN "lei" "lei") ;
|
Lei = mkCN (mkN "lei" "lei") ;
|
||||||
|
Leva = mkCN (mkN "leva" "leva") ;
|
||||||
|
NorwegianCrown = mkCN (mkA "norsk") (mkN "krona") | mkCN (mkN "krona") ;
|
||||||
|
Rouble = mkCN (mkN "rubel" "rubeln" "rubel" "rubeln") ; ---- ?
|
||||||
SwedishCrown = mkCN (mkA "svensk") (mkN "krona") | mkCN (mkN "krona") ;
|
SwedishCrown = mkCN (mkA "svensk") (mkN "krona") | mkCN (mkN "krona") ;
|
||||||
|
Zloty = mkCN (mkN "zloty" "zloty") ;
|
||||||
|
|
||||||
-- nationalities
|
-- nationalities
|
||||||
|
|
||||||
Belgian = mkA "belgisk" ;
|
Belgian = mkA "belgisk" ;
|
||||||
Belgium = mkNP (mkPN "Belgien") ;
|
Belgium = mkNP (mkPN "Belgien") ;
|
||||||
|
Bulgarian = mkNat "bulgarisk" "Bulgarien" ;
|
||||||
|
Catalan = mkNat "katalansk" "Katalonien" ;
|
||||||
|
Danish = mkNat "dansk" "Danmark" ;
|
||||||
|
Dutch = mkNat "nederländsk" "Nederländerna" ;
|
||||||
English = mkNat "engelsk" "England" ;
|
English = mkNat "engelsk" "England" ;
|
||||||
Finnish = mkNat "finsk" "Finland" ;
|
Finnish = mkNat "finsk" "Finland" ;
|
||||||
Flemish = mkNP (mkPN "flamländska") ;
|
Flemish = mkNP (mkPN "flamländska") ;
|
||||||
French = mkNat "fransk" "Frankrike" ;
|
French = mkNat "fransk" "Frankrike" ;
|
||||||
|
German = mkNat "tysk" "Tyskland" ;
|
||||||
Italian = mkNat "italiensk" "Italien" ;
|
Italian = mkNat "italiensk" "Italien" ;
|
||||||
|
Norwegian = mkNat "norsk" "Norge" ;
|
||||||
|
Polish = mkNat "polsk" "Polen" ;
|
||||||
Romanian = mkNat "rumänsk" "Rumänien" ;
|
Romanian = mkNat "rumänsk" "Rumänien" ;
|
||||||
|
Russian = mkNat "rysk" "Ryssland" ;
|
||||||
|
Spanish = mkNat "spansk" "Spanien" ;
|
||||||
Swedish = mkNat "svensk" "Sverige" ;
|
Swedish = mkNat "svensk" "Sverige" ;
|
||||||
|
|
||||||
|
-- means of transportation
|
||||||
|
|
||||||
|
Bike = mkTransport L.bike_N ;
|
||||||
|
Bus = mkTransport (mkN "bus" "bussar") ;
|
||||||
|
Car = mkTransport L.car_N ;
|
||||||
|
Ferry = mkTransport (mkN "färja") ;
|
||||||
|
Plane = mkTransport L.airplane_N ;
|
||||||
|
Subway = mkTransport (mkN "metro" "metron" "metro" "metrona") ; ----
|
||||||
|
Taxi = mkTransport (mkN "taxi" "taxin" "taxibilar" "taxibilarna") ; ----
|
||||||
|
Train = mkTransport (mkN "tåg" "tåg") ;
|
||||||
|
Tram = mkTransport (mkN "spårvagn") ;
|
||||||
|
|
||||||
|
ByFoot = ParadigmsSwe.mkAdv "till fots" ;
|
||||||
|
|
||||||
-- actions
|
-- actions
|
||||||
|
|
||||||
AHasAge p num = mkCl p.name (mkNP num L.year_N) ;
|
AHasAge p num = mkCl p.name (mkNP num L.year_N) ;
|
||||||
@@ -144,6 +184,32 @@ concrete WordsSwe of Words = SentencesSwe **
|
|||||||
|
|
||||||
Tomorrow = ParadigmsSwe.mkAdv "imorgon" ;
|
Tomorrow = ParadigmsSwe.mkAdv "imorgon" ;
|
||||||
|
|
||||||
|
-- transports
|
||||||
|
|
||||||
|
HowFar place = mkQS (mkQCl (ExtraSwe.IAdvAdv L.far_Adv) place.name) ;
|
||||||
|
{-
|
||||||
|
HowFarFrom : Place -> Place -> Question ; -- how far is the center from the hotel ?
|
||||||
|
HowFarFromBy : Place -> Place -> ByTransport -> Question ;
|
||||||
|
-- how far is the airport from the hotel by taxi ?
|
||||||
|
HowFarBy : Place -> Transport -> Question ; -- how far is the museum by bus ?
|
||||||
|
-}
|
||||||
|
WhichTranspPlace trans place =
|
||||||
|
mkQS (mkQCl (mkIP which_IDet trans.name) (mkVP (mkVP L.go_V) place.to)) ;
|
||||||
|
|
||||||
|
IsTranspPlace trans place =
|
||||||
|
mkQS (mkQCl (mkCl (mkCN trans.name place.to))) ;
|
||||||
|
|
||||||
|
-- modifiers of places
|
||||||
|
|
||||||
|
TheBest = mkSuperl L.good_A ;
|
||||||
|
TheClosest = mkSuperl L.near_A ;
|
||||||
|
TheCheapest = mkSuperl (mkA "billig") ;
|
||||||
|
TheMostExpensive = mkSuperl (mkA "dyr") ;
|
||||||
|
TheMostPopular = mkSuperl (mkA "populär") ;
|
||||||
|
TheWorst = mkSuperl L.bad_A ;
|
||||||
|
|
||||||
|
SuperlPlace sup p = placeNP sup p ;
|
||||||
|
|
||||||
oper
|
oper
|
||||||
mkNat : Str -> Str -> NPNationality = \nat,co ->
|
mkNat : Str -> Str -> NPNationality = \nat,co ->
|
||||||
mkNPNationality (mkNP (mkPN (nat + "a"))) (mkNP (mkPN co)) (mkA nat) ;
|
mkNPNationality (mkNP (mkPN (nat + "a"))) (mkNP (mkPN co)) (mkA nat) ;
|
||||||
@@ -162,5 +228,10 @@ concrete WordsSwe of Words = SentencesSwe **
|
|||||||
xOf : GNumber -> N -> NPPerson -> NPPerson = \n,x,p ->
|
xOf : GNumber -> N -> NPPerson -> NPPerson = \n,x,p ->
|
||||||
relativePerson n (mkCN x) (\a,b,c -> mkNP (GenNP b) a c) p ;
|
relativePerson n (mkCN x) (\a,b,c -> mkNP (GenNP b) a c) p ;
|
||||||
|
|
||||||
|
mkTransport : N -> {name : CN ; by : Adv} = \n -> {
|
||||||
|
name = mkCN n ;
|
||||||
|
by = SyntaxSwe.mkAdv with_Prep (mkNP n)
|
||||||
|
} ;
|
||||||
|
|
||||||
|
mkSuperl : A -> Det = \a -> mkDet the_Art (mkOrd a) ;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user