| Copyright | (c) Noah Goodman 2018 |
|---|---|
| License | BSD3 |
| Stability | experimental |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Text.Pronounce.ParseDict
Description
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 EntryWord = Text Source #
Represents an entry word in the cmu pronouncing dictionary (simply an alias
for Text to improve type specificity and readability
Represents a string containing the phonetic breakdown of a word, in a
similar manner to the EntryWord type
type CMUdict = Map EntryWord [Phones] Source #
A Map from EntryWords to lists of possible pronunciations (Phones), serving as our
representation of the CMU Pronouncing Dictionary
initDict :: Maybe FilePath -> Bool -> IO CMUdict Source #
Initializes the cmu pronunctiation dictionary into our program, given an optional file name of the dictionary