mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-05 17:22:51 -06:00
fixed some bugs in translation quiz
This commit is contained in:
@@ -46,8 +46,10 @@ translationList mex pgf ig og typ number = do
|
||||
Nothing -> generateRandom gen pgf typ
|
||||
return $ map mkOne $ ts
|
||||
where
|
||||
mkOne t = (norml (linearize pgf ig t), map (norml . linearize pgf og) (homonyms t))
|
||||
mkOne t = (norml (linearize pgf ig t),
|
||||
map norml (concatMap lins (homonyms t)))
|
||||
homonyms = parse pgf ig typ . linearize pgf ig
|
||||
lins = nub . concatMap (map snd) . tabularLinearizes pgf og
|
||||
|
||||
morphologyList ::
|
||||
Maybe Expr -> PGF -> Language -> Type -> Int -> IO [(String,[String])]
|
||||
|
||||
Reference in New Issue
Block a user