summaryrefslogtreecommitdiff
path: root/examples/disamb/ConversationEng.gf
blob: 127ec54bd53d51c3062d91a6a55351def0e56c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--# -path=.:prelude

concrete ConversationEng of Conversation = open Prelude in {

  lincat 
    Q, NP, A = {s : Str} ;
    Gender, Number, Politeness = {s : Str} ;

  lin
    PredA np a = ss ("are" ++ np.s ++ a.s) ;

    GMasc = ss (optStr "man") ;
    GFem  = ss (optStr "woman") ;
    NSg   = ss (optStr "one") ;
    NPl   = ss (optStr "many") ;
    PFamiliar = ss (optStr "friend") ;
    PPolite   = ss (optStr "respected") ;

    You n p g = ss ("you" ++ n.s ++ p.s ++ g.s) ;

    Ready = ss "ready" ;

}