diff options
| author | aarne <aarne@cs.chalmers.se> | 2006-05-17 21:04:54 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2006-05-17 21:04:54 +0000 |
| commit | 747eccf2df19fa85a09b72cd1786372367c21976 (patch) | |
| tree | 244af5e437267bc12bcba49e439952fc89924f2d /examples/dialogue/DialogueI.gf | |
| parent | cc0789034453f31bb86ad27030ec0549efa05e06 (diff) | |
some godis additions to dialogue
Diffstat (limited to 'examples/dialogue/DialogueI.gf')
| -rw-r--r-- | examples/dialogue/DialogueI.gf | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/examples/dialogue/DialogueI.gf b/examples/dialogue/DialogueI.gf index e88497135..20da618ac 100644 --- a/examples/dialogue/DialogueI.gf +++ b/examples/dialogue/DialogueI.gf @@ -3,6 +3,8 @@ incomplete concrete DialogueI of Dialogue = open Lang, Prelude in { lincat Move = Phr ; Action = {s : ActType => Str} ; + Proposition = Phr ; ---- + Question = Phr ; Kind = CN ; Object = NP ; Oper0 = V ; @@ -11,9 +13,17 @@ incomplete concrete DialogueI of Dialogue = open Lang, Prelude in { lin MRequest a = ss (a.s ! ARequest) ; - MAnswer a = ss (a.s ! AAnswer) ; + MConfirm a = ss (a.s ! AConfirm) ; + MAnswer a = a ; + MIssue a = a ; - MQuery k = + MYes = yes_Phr ; + MNo = no_Phr ; + MObject _ ob = PhrUtt NoPConj (UttNP ob) optPlease ; + + PAction a = ss (a.s ! AConfirm) ; + + QKind k = PhrUtt NoPConj (UttQS (UseQCl TPres ASimul PPos (ExistIP (IDetCN whichPl_IDet NoNum NoOrd k)))) NoVoc ; @@ -21,12 +31,12 @@ incomplete concrete DialogueI of Dialogue = open Lang, Prelude in { AOper1 _ op x = mkAction (ComplV2 op x) ; AOper2 _ _ op x y = mkAction (ComplV3 op x y) ; - OAll k = PredetNP all_Predet (DetCN (DetPl (PlQuant IndefArt) NoNum NoOrd) k) ; + OAll k = PredetNP all_Predet (DetCN (DetPl (PlQuant IndefArt) NoNum NoOrd) k) ; OIndef k = DetCN (DetSg (SgQuant IndefArt) NoOrd) k ; - ODef k = DetCN (DetSg (SgQuant DefArt) NoOrd) k ; + ODef k = DetCN (DetSg (SgQuant DefArt) NoOrd) k ; param - ActType = ARequest | AAnswer ; -- and some others + ActType = ARequest | AConfirm ; -- and some others oper @@ -37,29 +47,27 @@ incomplete concrete DialogueI of Dialogue = open Lang, Prelude in { s = table { ARequest => variants { aImp vp ; - aImpPlease vp ; aWant vp ; aCanYou vp } ; - AAnswer => variants { + AConfirm => variants { aInf vp } } } ; - aImp : VP -> Str = \vp -> - (PhrUtt NoPConj (UttImpSg PPos (ImpVP vp)) NoVoc).s ; + optPlease : Voc = variants {NoVoc ; please_Voc} ; - aImpPlease : VP -> Str = \vp -> - (PhrUtt NoPConj (UttImpSg PPos (ImpVP vp)) please_Voc).s ; + aImp : VP -> Str = \vp -> + (PhrUtt NoPConj (UttImpSg PPos (ImpVP vp)) optPlease).s ; aWant : VP -> Str = \vp -> (PhrUtt NoPConj (UttS (UseCl TPres ASimul PPos (PredVP (UsePron i_Pron) - (ComplVV want_VV vp)))) NoVoc).s ; + (ComplVV want_VV vp)))) optPlease).s ; aCanYou : VP -> Str = \vp -> (PhrUtt NoPConj (UttQS (UseQCl TPres ASimul PPos (QuestCl (PredVP - (UsePron youSg_Pron) (ComplVV can_VV vp))))) NoVoc).s ; + (UsePron youSg_Pron) (ComplVV can_VV vp))))) optPlease).s ; aInf : VP -> Str = \vp -> (PhrUtt NoPConj (UttVP vp) NoVoc).s ; |
