diff options
| author | adam.slaski <adam.slaski@gmail.com> | 2010-05-30 09:05:48 +0000 |
|---|---|---|
| committer | adam.slaski <adam.slaski@gmail.com> | 2010-05-30 09:05:48 +0000 |
| commit | 6794d44aeaff1bd80f56b7680068a23bd4d1c934 (patch) | |
| tree | f1dffdb1c2dda9c2085412fa8e061a5640c6a9a7 /examples/phrasebook/SentencesPol.gf | |
| parent | d73ed8ba2e8483b41740b7f8b612c64b93d53d3b (diff) | |
bugfix for Polish Phrasebook
Diffstat (limited to 'examples/phrasebook/SentencesPol.gf')
| -rw-r--r-- | examples/phrasebook/SentencesPol.gf | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/examples/phrasebook/SentencesPol.gf b/examples/phrasebook/SentencesPol.gf index 2c733f274..ef728298a 100644 --- a/examples/phrasebook/SentencesPol.gf +++ b/examples/phrasebook/SentencesPol.gf @@ -1,12 +1,14 @@ concrete SentencesPol of Sentences = NumeralPol ** SentencesI - [ - Day,PDay,OnDay,Language,PLanguage, + Day,PDay,OnDay,Language,PLanguage,Citizenship, + PCitizenship,CitiNat,PropCit,ACitizen, Nationality,Transport,PTransport,ByTransp, IFemale,YouFamFemale,YouPolFemale,YouPolMale] with (Syntax = SyntaxPol), (Symbolic = SymbolicPol), - (Lexicon = LexiconPol) ** open (R = ResPol), (Pron = PronounMorphoPol), Prelude in { + (Lexicon = LexiconPol) ** + open (N = NounPol),(R = ResPol), (Pron = PronounMorphoPol), Prelude in { flags optimize =values ; coding =utf8 ; @@ -14,19 +16,25 @@ concrete SentencesPol of Sentences = lincat Day = { name,hab,adv:Str } ; Language = A ; - Citizenship = A ; - Nationality = { lang: A; prop: A; country: NP } ; - Transport = CN ; + Citizenship = { prop:A; citizenMSg:Str; citizenMPl:Str; citizenF:Str} ; + Nationality = { lang: A; prop: A; country: NP; citizenMSg:Str; citizenMPl:Str; citizenF:Str } ; + Transport = { cn:CN; verb:Str} ; lin PDay d = (ss d.name) ** {lock_Text = <>}; OnDay d = (ss d.adv) ** {lock_Adv = <>}; PLanguage l = (ss l.pos.s1) ** {lock_Text = <>}; - PTransport t = mkPhrase (mkUtt t) ; - ByTransp t = (ss (t.s!R.Sg!R.Instr)) ** {lock_Adv = <>}; + PTransport t = mkPhrase (mkUtt t.cn) ; + ByTransp t = { s=t.cn.s!R.Sg!R.Instr; lock_Adv = <>} ; + PCitizenship c = mkPhrase (mkUtt (mkAP c.prop)) ; + CitiNat n = {prop=n.prop; citizenMSg=n.citizenMSg; citizenMPl=n.citizenMPl; citizenF=n.citizenF}; + PropCit c = c.prop; + ACitizen p n = mkCl p.name {s= case p.name.gn of { + R.MascPersSg=>n.citizenMSg; R.FemSg=>n.citizenF; _=>n.citizenMPl + }; + lock_Adv=<>}; IFemale = mkPerson (Pron.pronJaFoo (R.PGen R.Fem)); YouFamFemale = mkPerson (Pron.pronTyFoo (R.PGen R.Fem)); YouPolFemale = mkPerson (Pron.pronPani); YouPolMale = mkPerson (Pron.pronPan); - } |
