preserve 1.0

This commit is contained in:
aarne
2006-06-22 22:27:48 +00:00
parent 251bc4c738
commit 4821244741
569 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
-- to make certain verbs transitive
mkV2 file = do
ls <- readFile file >>= return . lines
mapM_ (putStrLn . mkOne) ls
mkOne = mkOneV2
--mkOne = mkOneQuote
mkOneQuote li = if elem '"' li then "-- " ++ li else li
mkOneV2 li = case words li of
v : e : ws | elem v v2s ->
" " ++ unwords (v : e : "dirV2" : ["(" ++ unwords (init ws) ++ ") ;"])
_ -> li
-- grep dirV2 SwadeshEng.gf >v2s
-- readFile "v2s" >>= print . map (head . words) . lines
v2s = ["bite_V","breathe_V","count_V","cut_V","drink_V","eat_V","fear_V","fight_V","hear_V","hit_V","hold_V","hunt_V","kill_V","know_V","pull_V","push_V","rub_V","scratch_V","see_V","smell_V","split_V","squeeze_V","stab_V","suck_V","throw_V","tie_V","wash_V","wipe_V"]