removed bogus subcats from TopDictionary files, an commented them out in Dictionary and DictionaryEng

This commit is contained in:
aarne
2014-05-09 09:16:18 +00:00
parent a057bb95b2
commit 52e5536bfe
18 changed files with 756 additions and 11380 deletions

View File

@@ -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