forked from GitHub/gf-core
mkSeparateN in Fin for multiword "compounds"
This commit is contained in:
@@ -434,6 +434,11 @@ mkVS = overload {
|
|||||||
: Str) -> N = \a,b,c,d,e,f,g,h,i,j ->
|
: Str) -> N = \a,b,c,d,e,f,g,h,i,j ->
|
||||||
lin N (nforms2snoun (nForms10 a b c d e f g h i j)) ;
|
lin N (nforms2snoun (nForms10 a b c d e f g h i j)) ;
|
||||||
|
|
||||||
|
mkSeparateN : Str -> N -> N = \unissa,kulkija -> {
|
||||||
|
s = \\c => unissa ++ kulkija.s ! c ;
|
||||||
|
h = kulkija.h ;
|
||||||
|
lock_N = <>
|
||||||
|
} ;
|
||||||
mkStrN : Str -> N -> N = \sora,tie -> {
|
mkStrN : Str -> N -> N = \sora,tie -> {
|
||||||
s = \\c => sora + tie.s ! c ;
|
s = \\c => sora + tie.s ! c ;
|
||||||
h = tie.h ;
|
h = tie.h ;
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ oper
|
|||||||
|
|
||||||
-- lexicon constructors
|
-- lexicon constructors
|
||||||
|
|
||||||
separateN : Str -> N -> N = \s,n -> mkN (s + "_") n ;
|
separateN : Str -> N -> N = mkSeparateN ; -- pennin raha
|
||||||
|
--- separateN : Str -> N -> N = \s,n -> mkN (s + "_") n ; -- pennin_raha
|
||||||
|
|
||||||
compoundN : Str -> NForms -> N = \s,nf -> lin N (mkStrN s (nforms2snoun nf)) ;
|
compoundN : Str -> NForms -> N = \s,nf -> lin N (mkStrN s (nforms2snoun nf)) ;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user