mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-11 13:59:31 -06:00
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 ->
|
||||
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 -> {
|
||||
s = \\c => sora + tie.s ! c ;
|
||||
h = tie.h ;
|
||||
|
||||
@@ -11,7 +11,8 @@ oper
|
||||
|
||||
-- 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)) ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user