Skip to content

Commit

Permalink
Fixed dictLineToWord error but not the hang yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas McAvoy committed Dec 17, 2011
1 parent 4662912 commit 52f045e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMUPronouncingDictionary.hs
Expand Up @@ -48,7 +48,7 @@ dictLineToWord :: String -> Word
dictLineToWord line = Word strWord syllableCount stress phonemes where
(strWord, phonemes) = case (words line) of
[] -> ("", [])
(x:xs) -> (x, xs)
(x:xs) -> (map toLower x, xs)
stress = stressPattern phonemes
stressPhonemes = filter isStressPhoneme phonemes
syllableCount = length stressPhonemes
Expand Down

0 comments on commit 52f045e

Please sign in to comment.