mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 08:12:51 -06:00
checkd BasicNor and half of SwadeshNor
This commit is contained in:
@@ -106,3 +106,15 @@ prQuot s = "\"" ++ s ++ "\""
|
||||
isConsonant = not . isVowel
|
||||
|
||||
isVowel = flip elem "aeiouyäöå"
|
||||
|
||||
-- Norwegian 13/3
|
||||
|
||||
groupLines :: [String] -> [String]
|
||||
groupLines ss = [unwords [a, b, c] | [a,_,b,c,_] <- grps ss] where
|
||||
grps ls = let (g,rest) = splitAt 5 ls in g:grps rest
|
||||
|
||||
lin2fun s = case words s of
|
||||
_:fun:_:_ -> " fun " ++ fun ++ " : " ++ cat fun ++ " ;"
|
||||
_ -> s
|
||||
where
|
||||
cat fun = reverse (takeWhile (/='_') (reverse fun))
|
||||
|
||||
Reference in New Issue
Block a user