ipa-0.3.1.1: Internal Phonetic Alphabet (IPA)
Copyright(c) 2021 Rory Tyler Hayford
LicenseBSD-3-Clause
Maintainerrory.hayford@protonmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Language.IPA.Class

Description

Typeclass for representing speech sounds in IPA/X-Sampa notation

Synopsis

Converting to IPA representations

class ReprIPA a where Source #

Entities representable through IPA transcription

Methods

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

Instances

Instances details
ReprIPA Segment Source # 
Instance details

Defined in Language.IPA.Class

MultiSegment t => ReprIPA (Syllable t) Source # 
Instance details

Defined in Language.IPA.Class

class ReprXSampa a where Source #

Entities representable through X-SAMPA transcription, an ASCII subset of the IPA

Methods

toXSampa :: a -> Maybe XSampa Source #

Similar to toIPA; produces an XSampa transcription given a valid Segment.

parseXSampa :: Text -> Either IPAException a Source #

Parse text in X-SAMPA notation