forked from GitHub/gf-rgl
(Swa) Rename Kiswahili to Swahili
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
concrete CatKis of Cat = CommonX - [Pol]
|
|
||||||
** CatBantu with (ResBantu = ResKis);
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
concrete ConjunctionKis of Conjunction = CatKis ** ConjunctionBantu with
|
|
||||||
(ResBantu = ResKis);
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
--# -path=.:../abstract:../common:prelude
|
|
||||||
|
|
||||||
concrete GrammarKis of Grammar =
|
|
||||||
NounKis,
|
|
||||||
VerbKis,
|
|
||||||
AdjectiveKis,
|
|
||||||
AdverbKis,
|
|
||||||
NumeralKis,
|
|
||||||
SentenceKis,
|
|
||||||
QuestionKis,
|
|
||||||
RelativeKis,
|
|
||||||
ConjunctionKis,
|
|
||||||
PhraseKis,
|
|
||||||
TextX - [Pol,PPos,PNeg,Pres],
|
|
||||||
StructuralKis,
|
|
||||||
IdiomKis,
|
|
||||||
TenseX - [Pol,PPos,PNeg,Pres]
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags startcat = Phr ; unlexer = text ; lexer = text;
|
|
||||||
|
|
||||||
--lin
|
|
||||||
--PPos = {s = [] ; p = CPos} ;
|
|
||||||
-- PNeg = {s = [] ; p = CNeg True} ; -- contracted: don't
|
|
||||||
--PPos = {s = [] ; b = True} ;
|
|
||||||
-- PNeg = {s = [] ; b = False} ;
|
|
||||||
-- TPres = {s = [] ; t = ResKis.Pres} ;
|
|
||||||
-- TPast = {s = [] ; t = ResKis.Past };
|
|
||||||
-- TFut = {s = [] ; t = ResKis.Fut };
|
|
||||||
} ;
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
--# -path=.:../abstract:../common:../api
|
|
||||||
|
|
||||||
concrete LangKis of Lang =
|
|
||||||
GrammarKis,
|
|
||||||
LexiconKis
|
|
||||||
-- ,ConstructionSwa
|
|
||||||
** {
|
|
||||||
} ;
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
concrete NounKis of Noun =
|
|
||||||
CatKis ** NounBantu with (Structural = StructuralKis), (ResBantu = ResKis);
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
concrete PhraseKis of Phrase = CatKis ** PhraseBantu with
|
|
||||||
(ResBantu = ResKis);
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
concrete QuestionKis of Question = CatKis ** QuestionBantu with
|
|
||||||
(ResBantu = ResKis);
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
concrete RelativeKis of Relative = CatKis ** RelativeBantu with
|
|
||||||
(ResBantu = ResKis);
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
concrete SentenceKis of Sentence = CatKis ** SentenceBantu with
|
|
||||||
(ResBantu = ResKis);
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
concrete VerbKis of Verb = CatKis ** VerbBantu with
|
|
||||||
(ResBantu = ResKis);
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
concrete AdjectiveKis of Adjective = CatKis **AdjectiveBantu-[ComparA,UseComparA,ComplA2]
|
concrete AdjectiveSwa of Adjective = CatSwa **AdjectiveBantu-[ComparA,UseComparA,ComplA2]
|
||||||
with (ResBantu = ResKis)** open DiffKis in
|
with (ResBantu = ResSwa)** open DiffSwa in
|
||||||
{
|
{
|
||||||
flags coding=utf8;
|
flags coding=utf8;
|
||||||
lin
|
lin
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
concrete AdverbKis of Adverb = CatKis **AdverbBantu -[ComparAdvAdj,ComparAdvAdjS] with
|
concrete AdverbSwa of Adverb = CatSwa **AdverbBantu -[ComparAdvAdj,ComparAdvAdjS] with
|
||||||
(ResBantu = ResKis)** open DiffKis in
|
(ResBantu = ResSwa)** open DiffSwa in
|
||||||
{
|
{
|
||||||
flags coding=utf8;
|
flags coding=utf8;
|
||||||
lin
|
lin
|
||||||
2
src/swahili/CatSwa.gf
Normal file
2
src/swahili/CatSwa.gf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
concrete CatSwa of Cat = CommonX
|
||||||
|
** CatBantu with (ResBantu = ResSwa);
|
||||||
2
src/swahili/ConjunctionSwa.gf
Normal file
2
src/swahili/ConjunctionSwa.gf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
concrete ConjunctionSwa of Conjunction = CatSwa ** ConjunctionBantu with
|
||||||
|
(ResBantu = ResSwa);
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
instance DiffKis of DiffBantu = open CommonBantu, Prelude in {
|
instance DiffSwa of DiffBantu = open CommonBantu, Prelude in {
|
||||||
|
|
||||||
param
|
param
|
||||||
GenderKis = G1|G2|G3|G4|G5|G6|G7|G8|G9|G10|G11|G12|G13 ;
|
GenderSwa = G1|G2|G3|G4|G5|G6|G7|G8|G9|G10|G11|G12|G13 ;
|
||||||
oper
|
oper
|
||||||
Gender = GenderKis ;
|
Gender = GenderSwa ;
|
||||||
firstGender = G1 ; secondGender = G2 ;
|
firstGender = G1 ; secondGender = G2 ;
|
||||||
conjThan = "kuliko" ;
|
conjThan = "kuliko" ;
|
||||||
conjThat = "kuvita" ;
|
conjThat = "kuvita" ;
|
||||||
21
src/swahili/GrammarSwa.gf
Normal file
21
src/swahili/GrammarSwa.gf
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
--# -path=.:../abstract:../common:../bantu:prelude
|
||||||
|
|
||||||
|
concrete GrammarSwa of Grammar =
|
||||||
|
NounSwa,
|
||||||
|
VerbSwa,
|
||||||
|
AdjectiveSwa,
|
||||||
|
AdverbSwa,
|
||||||
|
NumeralSwa,
|
||||||
|
SentenceSwa,
|
||||||
|
QuestionSwa,
|
||||||
|
RelativeSwa,
|
||||||
|
ConjunctionSwa,
|
||||||
|
PhraseSwa,
|
||||||
|
TextX,
|
||||||
|
StructuralSwa,
|
||||||
|
IdiomSwa,
|
||||||
|
TenseX
|
||||||
|
** {
|
||||||
|
|
||||||
|
flags startcat = Phr ;
|
||||||
|
} ;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
concrete IdiomKis of Idiom = CatKis ** open Prelude, ResKis in {
|
concrete IdiomSwa of Idiom = CatSwa ** open Prelude, ResSwa in {
|
||||||
|
|
||||||
flags optimize=all_subs ;
|
flags optimize=all_subs ;
|
||||||
{-
|
{-
|
||||||
8
src/swahili/LangSwa.gf
Normal file
8
src/swahili/LangSwa.gf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
--# -path=.:../abstract:../bantu:../common:../api
|
||||||
|
|
||||||
|
concrete LangSwa of Lang =
|
||||||
|
GrammarSwa,
|
||||||
|
LexiconSwa
|
||||||
|
-- ,ConstructionSwa
|
||||||
|
** {
|
||||||
|
} ;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
--# -path=.:prelude
|
--# -path=.:prelude
|
||||||
|
|
||||||
concrete LexiconKis of Lexicon = CatKis **
|
concrete LexiconSwa of Lexicon = CatSwa **
|
||||||
open ParadigmsKis,StructuralKis, Prelude in {
|
open ParadigmsSwa,StructuralSwa, Prelude in {
|
||||||
|
|
||||||
flags
|
flags
|
||||||
optimize=values ;
|
optimize=values ;
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
-- Benson Kituku 2017-2018
|
-- Benson Kituku 2017-2018
|
||||||
|
|
||||||
|
|
||||||
resource MorphoKis = CommonBantu ,ResKis
|
resource MorphoSwa = CommonBantu ,ResSwa
|
||||||
** open Prelude, Predef
|
** open Prelude, Predef
|
||||||
in {
|
in {
|
||||||
|
|
||||||
2
src/swahili/NounSwa.gf
Normal file
2
src/swahili/NounSwa.gf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
concrete NounSwa of Noun =
|
||||||
|
CatSwa ** NounBantu with (Structural = StructuralSwa), (ResBantu = ResSwa);
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
concrete NumeralKis of Numeral = CatKis [Numeral,Digits] **
|
concrete NumeralSwa of Numeral = CatSwa [Numeral,Digits] **
|
||||||
open Prelude,DiffKis,MorphoKis in {
|
open Prelude,DiffSwa,MorphoSwa in {
|
||||||
|
|
||||||
lincat
|
lincat
|
||||||
Digit = {s : DForm => CardOrd => Gender => Str} ;
|
Digit = {s : DForm => CardOrd => Gender => Str} ;
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
--# -path=.:../abstract:../../prelude:../common
|
--# -path=.:../abstract:../../prelude:../common
|
||||||
|
|
||||||
resource ParadigmsKis = open
|
resource ParadigmsSwa = open
|
||||||
(Predef=Predef),
|
(Predef=Predef),
|
||||||
Prelude,
|
Prelude,
|
||||||
MorphoKis,
|
MorphoSwa,
|
||||||
ResKis,
|
ResSwa,
|
||||||
CatKis
|
CatSwa
|
||||||
in {
|
in {
|
||||||
|
|
||||||
oper
|
oper
|
||||||
@@ -199,9 +199,9 @@ mkInterj : Str -> Interj
|
|||||||
-- The definitions should not bother the user of the API. So they are
|
-- The definitions should not bother the user of the API. So they are
|
||||||
-- hidden from the document.
|
-- hidden from the document.
|
||||||
|
|
||||||
Gender = MorphoKis.Gender ;
|
Gender = MorphoSwa.Gender ;
|
||||||
Number = MorphoKis.Number ;
|
Number = MorphoSwa.Number ;
|
||||||
Case = MorphoKis.NPCase ;
|
Case = MorphoSwa.NPCase ;
|
||||||
a_wa = G1 ;--%
|
a_wa = G1 ;--%
|
||||||
u_i = G2 ;
|
u_i = G2 ;
|
||||||
li_ya = G3 ;
|
li_ya = G3 ;
|
||||||
@@ -223,8 +223,8 @@ mkInterj : Str -> Interj
|
|||||||
npNumber np = (agrFeatures np.a).n ;
|
npNumber np = (agrFeatures np.a).n ;
|
||||||
|
|
||||||
|
|
||||||
regN = MorphoKis.regN ;
|
regN = MorphoSwa.regN ;
|
||||||
iregN = MorphoKis.iregN ;
|
iregN = MorphoSwa.iregN ;
|
||||||
|
|
||||||
|
|
||||||
compoundN s n = lin N {s = \\x,y => s ++ n.s ! x ! y ; g=n.g} ;
|
compoundN s n = lin N {s = \\x,y => s ++ n.s ! x ! y ; g=n.g} ;
|
||||||
@@ -370,9 +370,9 @@ mkN2 = overload {
|
|||||||
|
|
||||||
regN2 : N -> N2 ;
|
regN2 : N -> N2 ;
|
||||||
|
|
||||||
regA : Str -> A = \s -> lin A (MorphoKis.regA s) ;
|
regA : Str -> A = \s -> lin A (MorphoSwa.regA s) ;
|
||||||
cregA : Str -> A = \s -> lin A (MorphoKis.cregA s) ;
|
cregA : Str -> A = \s -> lin A (MorphoSwa.cregA s) ;
|
||||||
iregA : (fat,fatter : Str) -> A =\a,b -> lin A (MorphoKis.iregA a b);
|
iregA : (fat,fatter : Str) -> A =\a,b -> lin A (MorphoSwa.iregA a b);
|
||||||
mkA = overload {
|
mkA = overload {
|
||||||
mkA : Str -> A = \a -> lin A (regA a |cregA a);
|
mkA : Str -> A = \a -> lin A (regA a |cregA a);
|
||||||
mkA : (fat,fatter : Str) -> A =\a,b -> lin A (iregA a b);
|
mkA : (fat,fatter : Str) -> A =\a,b -> lin A (iregA a b);
|
||||||
@@ -388,7 +388,7 @@ mkN2 = overload {
|
|||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|
||||||
regV=MorphoKis.regV ;
|
regV=MorphoSwa.regV ;
|
||||||
{-
|
{-
|
||||||
mkV = overload {
|
mkV = overload {
|
||||||
mkV : Str -> V =\v ->lin V(regV v) ;
|
mkV : Str -> V =\v ->lin V(regV v) ;
|
||||||
3
src/swahili/PhraseSwa.gf
Normal file
3
src/swahili/PhraseSwa.gf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
concrete PhraseSwa of Phrase = CatSwa ** PhraseBantu with
|
||||||
|
(ResBantu = ResSwa);
|
||||||
|
|
||||||
2
src/swahili/QuestionSwa.gf
Normal file
2
src/swahili/QuestionSwa.gf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
concrete QuestionSwa of Question = CatSwa ** QuestionBantu with
|
||||||
|
(ResBantu = ResSwa);
|
||||||
2
src/swahili/RelativeSwa.gf
Normal file
2
src/swahili/RelativeSwa.gf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
concrete RelativeSwa of Relative = CatSwa ** RelativeBantu with
|
||||||
|
(ResBantu = ResSwa);
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
--1 Swalish auxiliary operations.
|
--1 Swalish auxiliary operations.
|
||||||
|
|
||||||
instance ResKis of ResBantu = DiffKis, CommonBantu ** open Prelude in {
|
instance ResSwa of ResBantu = DiffSwa, CommonBantu ** open Prelude in {
|
||||||
|
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
2
src/swahili/SentenceSwa.gf
Normal file
2
src/swahili/SentenceSwa.gf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
concrete SentenceSwa of Sentence = CatSwa ** SentenceBantu with
|
||||||
|
(ResBantu = ResSwa);
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
concrete StructuralKis of Structural = CatKis **
|
concrete StructuralSwa of Structural = CatSwa **
|
||||||
open MorphoKis, ParadigmsKis,
|
open MorphoSwa, ParadigmsSwa,
|
||||||
(C = ConstructX), Prelude in {
|
(C = ConstructX), Prelude in {
|
||||||
flags optimize=all ;
|
flags optimize=all ;
|
||||||
lin
|
lin
|
||||||
@@ -50,7 +50,7 @@ concrete StructuralKis of Structural = CatKis **
|
|||||||
n= Pl
|
n= Pl
|
||||||
} ;
|
} ;
|
||||||
more_Adv = mkAdv "zaidi" ;
|
more_Adv = mkAdv "zaidi" ;
|
||||||
most_Predet = {s = \\g => MorphoKis.Mostpredetprefix g + "ngi"} ;
|
most_Predet = {s = \\g => MorphoSwa.Mostpredetprefix g + "ngi"} ;
|
||||||
-- must_VV = {
|
-- must_VV = {
|
||||||
---b no_Phr = ss "no" ;
|
---b no_Phr = ss "no" ;
|
||||||
no_Utt = ss "hapana" ;
|
no_Utt = ss "hapana" ;
|
||||||
@@ -61,7 +61,7 @@ concrete StructuralKis of Structural = CatKis **
|
|||||||
otherwise_PConj = ss "ila" ;
|
otherwise_PConj = ss "ila" ;
|
||||||
please_Voc = ss "tafadhari" ;
|
please_Voc = ss "tafadhari" ;
|
||||||
part_Prep, possess_Prep = let
|
part_Prep, possess_Prep = let
|
||||||
questo : ParadigmsKis.Number => MorphoKis.Gender => Str = table {
|
questo : ParadigmsSwa.Number => MorphoSwa.Gender => Str = table {
|
||||||
Sg => \\g=> case <g> of { <G3> => "la" ;
|
Sg => \\g=> case <g> of { <G3> => "la" ;
|
||||||
<G4> => "cha" ;
|
<G4> => "cha" ;
|
||||||
<G5> => "ya" ;
|
<G5> => "ya" ;
|
||||||
@@ -94,7 +94,7 @@ concrete StructuralKis of Structural = CatKis **
|
|||||||
something_NP = regNP "kitu fulani" ki_vi singular ;
|
something_NP = regNP "kitu fulani" ki_vi singular ;
|
||||||
somewhere_Adv = mkAdv "seheme fulani" ;
|
somewhere_Adv = mkAdv "seheme fulani" ;
|
||||||
that_Quant = let
|
that_Quant = let
|
||||||
questo : ParadigmsKis.Number => MorphoKis.Gender => Str = table {
|
questo : ParadigmsSwa.Number => MorphoSwa.Gender => Str = table {
|
||||||
Sg => \\g=> case <g> of {
|
Sg => \\g=> case <g> of {
|
||||||
<G1> => "huyo" ;
|
<G1> => "huyo" ;
|
||||||
<G2 > => "huo";
|
<G2 > => "huo";
|
||||||
@@ -134,7 +134,7 @@ concrete StructuralKis of Structural = CatKis **
|
|||||||
therefore_PConj = ss "kwa ajili" ;
|
therefore_PConj = ss "kwa ajili" ;
|
||||||
they_Pron =mkPron "wao" "ao" G1 Pl P3 ;
|
they_Pron =mkPron "wao" "ao" G1 Pl P3 ;
|
||||||
this_Quant = let
|
this_Quant = let
|
||||||
questo : ParadigmsKis.Number => MorphoKis.Gender => Str = table {
|
questo : ParadigmsSwa.Number => MorphoSwa.Gender => Str = table {
|
||||||
Sg => \\g=> case <g> of {
|
Sg => \\g=> case <g> of {
|
||||||
<G1> => "huyu" ;
|
<G1> => "huyu" ;
|
||||||
<G11> => "hapa" ;
|
<G11> => "hapa" ;
|
||||||
2
src/swahili/VerbSwa.gf
Normal file
2
src/swahili/VerbSwa.gf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
concrete VerbSwa of Verb = CatSwa ** VerbBantu with
|
||||||
|
(ResBantu = ResSwa);
|
||||||
Reference in New Issue
Block a user