peacekeeping: add a module with phrases which are very different in different languages, e.g. greetings. The english and swedish implementations do not yet use the resource grammars, and the finnish is empty.

This commit is contained in:
bringert
2006-04-20 22:46:41 +00:00
parent 50c51c50bf
commit 1861c23414
8 changed files with 56 additions and 4 deletions

View File

@@ -1 +1,4 @@
abstract Peace = PeaceSyntax, PeaceLexCommon, PeaceLexExt ** {}
abstract Peace =
PeaceSyntax, PeaceLexCommon,
PeaceLexExt, PeacePhrases
** {}

View File

@@ -0,0 +1,9 @@
abstract PeacePhrases = Cat ** {
fun
Hello : Phr ;
GoodMorning : Phr ;
GoodEvening : Phr ;
WhatIsNamePron : Pron -> Phr ;
}

View File

@@ -0,0 +1,12 @@
--# -path=.:..:present:prelude
concrete PeacePhrases_Eng of PeacePhrases =
PeaceCat_Eng ** open ResEng in {
lin
Hello = { s = "hello" ++ "." } ;
GoodMorning = { s = ["good morning"] ++ "." } ;
GoodEvening = { s = ["good evening"] ++ "." } ;
WhatIsNamePron p = { s = ["what is"] ++ p.s!Gen ++ "name" ++ "?"; };
}

View File

@@ -1,3 +1,6 @@
--# -path=.:..:present:prelude
concrete Peace_Eng of Peace = PeaceSyntax_Eng, PeaceLexCommon_Eng, PeaceLexExt_Eng ** {}
concrete Peace_Eng of Peace =
PeaceSyntax_Eng, PeaceLexCommon_Eng,
PeaceLexExt_Eng, PeacePhrases_Eng
** {}

View File

@@ -0,0 +1,7 @@
--# -path=.:..:present:prelude
concrete PeacePhrases_Fin of PeacePhrases =
PeaceCat_Fin ** {
}

View File

@@ -1,3 +1,6 @@
--# -path=.:..:present:prelude
concrete Peace_Fin of Peace = PeaceSyntax_Fin, PeaceLexCommon_Fin, PeaceLexExt_Fin ** {}
concrete Peace_Fin of Peace =
PeaceSyntax_Fin, PeaceLexCommon_Fin,
PeaceLexExt_Fin, PeacePhrases_Fin
** {}

View File

@@ -0,0 +1,12 @@
--# -path=.:..:present:prelude
concrete PeacePhrases_Swe of PeacePhrases =
PeaceCat_Swe ** open CommonScand in {
lin
Hello = { s = "hej" ++ "." } ;
GoodMorning = { s = ["god morgon"] ++ "." } ;
GoodEvening = { s = ["god kväll"] ++ "." } ;
WhatIsNamePron p = { s = ["vad heter"] ++ p.s!NPNom ++ "?"; };
}

View File

@@ -1,3 +1,6 @@
--# -path=.:..:present:prelude
concrete Peace_Swe of Peace = PeaceSyntax_Swe, PeaceLexCommon_Swe, PeaceLexExt_Swe ** {}
concrete Peace_Swe of Peace =
PeaceSyntax_Swe, PeaceLexCommon_Swe,
PeaceLexExt_Swe, PeacePhrases_Swe
** {}