summaryrefslogtreecommitdiff
path: root/examples/lrec-tutorial/ZeroHebTr.gf
blob: d60290f921920b284fa4aae06c2e28f66e3f9431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
concrete ZeroHebTr of Zero = {
  lincat
    S = Str ;
    NP = {s : Str ; g : Gender} ;
    VP, V2 = Gender => Str ;
  lin
    Pred np vp = np.s ++ vp ! np.g ;
    Compl v2 np = table {g => v2 ! g ++ "At" ++ np.s} ;
    John = {s = "gg1wN" ; g = Masc} ;
    Mary = {s = "mry" ; g = Fem} ;
    love = table {Masc => "Awhb" ; Fem => "Awhbt"} ;
  param
    Gender = Masc | Fem ;
}

--.
-- illustrates: transliteration, inherent features, agreement
-- > gr | l -to_hebrew
-- > ut -hebrew
-- > rf -file=ZeroHeb.gf | ps -env=quotes -to_hebrew