Class DISC2Kirshenbaum

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

    public class DISC2Kirshenbaum
    extends PhonemeTranslator
    Translates CELEX-DISC-encoded transcriptions like tr{nskrIpS@n to Kirshenbaum-encoded phonemic transcriptions like tr&nskrIpS@n.
    Mapping
    DISCKirshenbaum
    Vowels
    { → &
    i → i:
    # → A:
    Q → A.
    $ → O:
    u → u:
    3 → V"
    1 → eI
    2 → aI
    4 → OI
    5 → @U
    6 → aU
    7 → I@
    8 → E@
    9 → U@
    c → &~
    q → A~:
    0 → &~:
    ~ → A.~:
    Consonants
    J → tS
    _ → dZ
    R → r*
    C → N-
    F → m-
    H → n-
    P → l-
    Author:
    Robert Fromont robert@fromont.net.nz
    See Also:
    Kirshenbaum2DISC
    • Constructor Detail

      • DISC2Kirshenbaum

        public DISC2Kirshenbaum()
        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.