mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-19 06:23:10 -06:00
MissApp.hs: a function for preparing a list of lin rules for missing words
This commit is contained in:
1 parent
52d3839271
commit
82a7e22d2e
1 file changed
+4
@@ -48,3 +48,7 @@ parts f = words (map (\c -> if c =='_' then ' ' else c) f)
|
|||||||
|
|
||||||
catOf :: Fun -> String
|
catOf :: Fun -> String
|
||||||
catOf = last . parts
|
catOf = last . parts
|
||||||
|
|
||||||
|
prepareMissing :: MissMap -> Lang -> String -> IO ()
|
||||||
|
prepareMissing mm lang cat = putStrLn $ unlines
|
||||||
|
[ "lin " ++ p ++ " = mk" ++ cat ++ " \"\" ;"| (l,ps) <- allMissingSuchFuns mm (\f -> catOf f == cat), l == lang, p <- ps]
|
||||||
Reference in new issue
Block a user