mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-29 22:42:52 -06:00
removed bogus subcats from TopDictionary files, an commented them out in Dictionary and DictionaryEng
This commit is contained in:
@@ -3,6 +3,12 @@ import Data.List
|
||||
|
||||
langs = words "Bul Chi Dut Eng Fin Fre Ger Hin Ita Spa Swe"
|
||||
|
||||
-- apply a function to every line
|
||||
changeLinesLang :: (String -> String) -> String -> IO ()
|
||||
changeLinesLang f lang = do
|
||||
dict <- readFile (gfFile "Dictionary" lang) >>= return . lines
|
||||
writeFile (gfFile "tmp/Dictionary" lang) $ unlines $ map f dict
|
||||
|
||||
createAllConcretes = do
|
||||
createAbstract
|
||||
mapM_ createConcrete langs
|
||||
|
||||
Reference in New Issue
Block a user