summaryrefslogtreecommitdiff
path: root/examples/foods/FoodsCze.gf
blob: 3fec681416010edfd2547f00b081ae8ce90dbbc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-- (c) 2011 Katerina Bohmova under LGPL

concrete FoodsCze of Foods = open ResCze in {
  flags 
    coding = utf8 ;
  lincat
    Comment = {s : Str} ; 
    Quality = Adjective ; 
    Kind = Noun ; 
    Item = NounPhrase ;
  lin
    Pred item quality = 
      {s = item.s ++ copula ! item.n ++ 
           quality.s ! item.g ! item.n} ;
    This  = det Sg "tento" "tato" "toto" ;
    That  = det Sg "tamten" "tamta" "tamto" ;
    These = det Pl "tyto" "tyto" "tato" ;
    Those = det Pl "tamty" "tamty" "tamta" ;
    Mod quality kind = {
      s = \\n => quality.s ! kind.g ! n ++ kind.s ! n ;
      g = kind.g
      } ;
    Wine = noun "víno" "vína" Neutr ;
    Cheese = noun "sýr" "sýry" Masc ;
    Fish = noun "ryba" "ryby" Fem ;
    Pizza = noun "pizza" "pizzy" Fem ;
    Very qual = {s = \\g,n => "velmi" ++ qual.s ! g ! n} ;
    Fresh = regAdj "čerstv" ;
    Warm = regAdj "tepl" ;
    Italian = regAdj "italsk" ;
    Expensive = regAdj "drah" ;
    Delicious = regnfAdj "vynikající" ;
    Boring = regAdj "nudn" ;
}