cleaned up French verbs

This commit is contained in:
aarne
2005-02-09 16:50:49 +00:00
parent 375a4fba7a
commit a7020895d2
12 changed files with 1011 additions and 183 deletions

View File

@@ -14,6 +14,13 @@ noComm s = case s of
"" -> False
_ -> True
-- remove tailing comments
remTail s = case s of
'-':'-':_ -> []
c:cs -> c : remTail cs
_ -> s
-- postfix with category
postfix p s = takeWhile (not . isSpace) s ++ "_" ++ p
@@ -70,3 +77,11 @@ mkIdent s = case words s of
"SomewhereNP" -> "SomewhereAdv"
"AgentPrep" -> "By8agentPrep"
_ -> w
-- massage French verbs 9/2/2005
freVerb s = case words s of
v:_ -> " " ++ v ++ " : " ++ cat v ++ " ;"
_ -> []
where
cat v = dropWhile (not . isUpper) v