Copyright | (c) 2021 Rory Tyler Hayford |
---|---|
License | BSD-3-Clause |
Maintainer | rory.hayford@protonmail.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Typeclass for representing speech sounds in IPA/X-Sampa notation
Synopsis
- class ReprIPA a where
- class ReprXSampa a where
- toXSampa :: a -> Maybe XSampa
- parseXSampa :: Text -> Either IPAException a
Converting to IPA representations
class ReprIPA a where Source #
Entities representable through IPA transcription
toIPA :: a -> Maybe IPA Source #
Produces an IPA
transcription given a valid Segment
; a result
of Nothing
indicates either an unattested-yet-possible segment, or one
considered impossible
parseIPA :: Text -> Either IPAException a Source #
Parse text in IPA notation
class ReprXSampa a where Source #
Entities representable through X-SAMPA transcription, an ASCII subset of the IPA
toXSampa :: a -> Maybe XSampa Source #
parseXSampa :: Text -> Either IPAException a Source #
Parse text in X-SAMPA notation
Instances
ReprXSampa Segment Source # | |
Defined in Language.IPA.Class | |
MultiSegment t => ReprXSampa (Syllable t) Source # | |
Defined in Language.IPA.Class |