Class DISC2Unisyn

  • All Implemented Interfaces:
    Function<String,​String>, UnaryOperator<String>

    public class DISC2Unisyn
    extends PhonemeTranslator
    Translates CELEX-DISC-encoded transcriptions like "tr{n-'skrIp-S@n to Unisyn-encoded phonemic transcriptions like ~ t r a n . * s k r i p . sh @ n.

    This converts not only the phonemes, but also syllabification and stress markers:

    • ' → * - primary stress
    • " → ~ - secondary stress
    • , → - - tertiary stress
    • - → . - syllable boundary
    Mapping
    DISCUnisynExample
    Stress and syllabification
    ' → * primary stress
    " → ~ secondary stress
    , → - tertiary stress
    - → . syllable boundary
    Vowels
    E → e DRESS
    { → a TRAP
    # → ah START
    5 → ou GOATbut a monophthong for edi
    Q → o LOT
    $ → oo THOUGHT(but a diphthong in some en-US)
    i → ii FLEECE
    I → i KIT
    @ → @ schwa
    V → uh STRUT
    U → u FOOT
    u → uu GOOSE
    1 → ei FACE
    2 → ai PRICE
    4 → oi CHOICE
    6 → ow MOUTH
    7 → i@ NEAR
    3 → @@r NURSE
    8 → eir SQUARING(actually a monophthong in many)
    9 → ur JURY
    Missing
    c → o LOT
    q → o LOT
    0 → o LOT
    ~ → o LOT
    Consonants
    j → y
    J → ch
    _ → jh
    S → sh
    Z → zh
    T → th
    D → dh
    L → t^ butter/merry flap
    F → m! chasm
    H → n! mission
    N → ng
    P → l! cattle
    Author:
    Robert Fromont robert@fromont.net.nz
    See Also:
    Unisyn2DISC
    • Constructor Detail

      • DISC2Unisyn

        public DISC2Unisyn()
        Default constructor.
    • Method Detail

      • apply

        public String apply​(String source)
        Translates a phonemic transcription from the source encoding to the destination encoding.
        Specified by:
        apply in interface Function<String,​String>
        Overrides:
        apply in class PhonemeTranslator
        Parameters:
        source - Phonemic transcription in the source encoding.
        Returns:
        Phonemic transcription in the destination encoding.