Copyright | (c) Noah Goodman 2018 |
---|---|
License | BSD3 |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
This module has functions for parsing the CMU pronouncing dictionary, and exports the
CMUdict
type and the function initDict
to the main module Text.Pronounce
Documentation
type CMUdict = Map Text [Text] Source #
A Map from Entries to lists of possible pronunciations, serving as our representation of the CMU Pronouncing Dictionary
A type used to represent the option of decoding the dictionary from a binary file or parsing it from text
initDict :: Maybe FilePath -> UsesBin -> IO CMUdict Source #
Initializes the cmu pronunctiation dictionary into our program, given an optional file name of the dictionary