Class PhonemeTranslator

    • Constructor Detail

      • PhonemeTranslator

        public PhonemeTranslator()
        Default constructor.
    • Method Detail

      • getSourceEncoding

        public String getSourceEncoding()
        Getter for sourceEncoding: The name of the source encoding.
        Returns:
        The name of the source encoding.
      • getDestinationEncoding

        public String getDestinationEncoding()
        Getter for destinationEncoding: The name of the destination encoding.
        Returns:
        The name of the destination encoding.
      • apply

        public String apply​(String source)
        Translates a phonemic transcription from the source encoding to the destination encoding.

        The default implementation simply returns the source transcription.

        Specified by:
        apply in interface Function<String,​String>
        Parameters:
        source - Phonemic transcription in the source encoding.
        Returns:
        Phonemic transcription in the destination encoding.