started a separate module for names

This commit is contained in:
Krasimir Angelov
2023-07-24 17:24:13 +02:00
parent 8b1309c99d
commit 645de9955a
100 changed files with 611 additions and 227 deletions

View File

@@ -95,7 +95,7 @@ concrete CatFin of Cat = CommonX ** open ResFin, StemFin, Prelude in {
N = SNoun ;
N2 = SNoun ** {c2 : Compl ; isPre : Bool ; postmod : Number => Str} ;
N3 = SNoun ** {c2,c3 : Compl ; isPre,isPre2 : Bool} ;
GN, SN, PN = SPN ;
GN, SN, LN, PN = SPN ;
linref
SSlash = \ss -> ss.s ++ ss.c2.s.p1 ;

View File

@@ -241,10 +241,4 @@ lin UttAccNP np = {s = P.addNegation np.isNeg ++ np.s ! NPAcc} ;
lin AdjAsCN ap = {s = ap.s ! True ; postmod = \\_ => ap.p ; h = Back} ; ---- Harmony just a guess
lin AdjAsNP ap = MassNP (AdjAsCN ap) ;
lin GivenName, MaleSurname, FemaleSurname = \n -> n ;
lin FullName gn sn = {
s = \\c => gn.s ! Nom ++ sn.s ! c
} ;
}

View File

@@ -14,7 +14,8 @@ concrete GrammarFin of Grammar =
TextX,
IdiomFin,
StructuralFin,
TenseX
TenseX,
NamesFin
** {
flags startcat = Phr ; unlexer = finnish ; lexer = text ;

14
src/finnish/NamesFin.gf Normal file
View File

@@ -0,0 +1,14 @@
concrete NamesFin of Names = CatFin ** open ResFin, StemFin, Prelude in {
lin GivenName, MaleSurname, FemaleSurname = \n -> {
s = snoun2np Sg n ;
a = agrP3 Sg ;
isPron = False ; isNeg = False
} ;
lin FullName gn sn = {
s = snoun2np Sg {s = \\c => gn.s ! Nom ++ sn.s ! c} ;
a = agrP3 Sg ;
isPron = False ; isNeg = False
} ;
}