Skip to content

Commit

Permalink
added missing InLN and dayMonthYearAdv in Fin
Browse files Browse the repository at this point in the history
  • Loading branch information
aarneranta committed Jan 30, 2024
1 parent 4a12ecd commit d98bb99
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/finnish/CatFin.gf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ concrete CatFin of Cat = CommonX ** open ResFin, StemFin, Prelude in {
N2 = SNoun ** {c2 : Compl ; isPre : Bool ; postmod : Number => Str} ;
N3 = SNoun ** {c2,c3 : Compl ; isPre,isPre2 : Bool} ;
PN = SPN ;
LN = SPN ** {n : Number} ;
LN = SPN ** {n : Number ; extCase : Bool} ; -- extCase=True -> Adessive, Ablative, Allative
GN = SPN ** {g : Sex} ;
SN = {s : Sex => SPN; pl : SPN} ;

Expand Down
7 changes: 4 additions & 3 deletions src/finnish/ConstructionFin.gf
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ lin
yearAdv y = SyntaxFin.mkAdv (prePrep nominative "vuonna") y ;
dayMonthAdv d m = ParadigmsFin.mkAdv ((mkUtt d).s ++ BIND ++ "." ++ (mkUtt (mkNP m)).s) ;
monthYearAdv m y = SyntaxFin.mkAdv in_Prep (mkNP (mkNP m) (SyntaxFin.mkAdv (casePrep nominative) y)) ;
---- dayMonthYearAdv d m y =
---- lin Adv {s = d.s ! R.NPCase R.Nom ++ BIND ++ "." ++ m.s ! R.NCase R.Sg R.Part ++ y.s ! R.NPCase R.Nom} ;

dayMonthYearAdv d m y =
ParadigmsFin.mkAdv ((mkUtt d).s ++ BIND ++ "." ++
(SyntaxFin.mkAdv part_Prep (mkNP m)).s ++
(SyntaxFin.mkAdv (casePrep nominative) y).s) ;
intYear = symb ;
intMonthday = symb ;

Expand Down
10 changes: 3 additions & 7 deletions src/finnish/NamesFin.gf
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ lin UseLN, PlainLN = \ln -> {
isPron = False ; isNeg = False
} ;

lin InLP ln = {
s = appCompl True Pos ln.c { s = snoun2np ln.n ln ;
a = agrP3 ln.n ;
isPron = False ;
isNeg = False
}
} ;
lin InLN ln =
let c = case ln.extCase of {True => Adess ; False => Iness}
in {s = ln.s ! c} ;

}
10 changes: 6 additions & 4 deletions src/finnish/ParadigmsFin.gf
Original file line number Diff line number Diff line change
Expand Up @@ -843,10 +843,12 @@ mkVS = overload {
} ;

mkLN = overload {
mkLN : Str -> LN = \s -> lin LN (snoun2spn (mk1N s) ** {n = Sg}) ;
mkLN : Str -> Number -> LN = \s,n -> lin LN (snoun2spnGen (mk1N s) n ** {n = n}) ;
mkLN : N -> LN = \noun -> lin LN (snoun2spn noun ** {n = Sg}) ;
mkLN : N -> Number -> LN = \noun,n -> lin LN (snoun2spnGen noun n ** {n = n}) ;
mkLN : Str -> LN = \s -> lin LN (snoun2spn (mk1N s) ** {n = Sg ; extCase = False}) ;
mkLN : Str -> Number -> LN = \s,n -> lin LN (snoun2spnGen (mk1N s) n ** {n = n ; extCase = False}) ;
mkLN : N -> LN = \noun -> lin LN (snoun2spn noun ** {n = Sg ; extCase = False}) ;
mkLN : N -> Number -> LN = \noun,n -> lin LN (snoun2spnGen noun n ** {n = n ; extCase = False}) ;
mkLN : Str -> Number -> Bool -> LN = \s,n,c -> lin LN (snoun2spnGen (mk1N s) n ** {n = n ; extCase = c}) ;
mkLN : N -> Number -> Bool -> LN = \noun,n,c -> lin LN (snoun2spnGen noun n ** {n = n ; extCase = c}) ;
} ;

mkGN = overload {
Expand Down

0 comments on commit d98bb99

Please sign in to comment.