Class BasicSyllabifier

java.lang.Object
ca.phon.syllabifier.basic.BasicSyllabifier
All Implemented Interfaces:
IExtendable, Syllabifier

public class BasicSyllabifier extends Object implements Syllabifier, IExtendable
Class to perform syllabification based on a syllabifier definition.
  • Field Details

    • TRACK_STAGES_PROP

      public static final String TRACK_STAGES_PROP
  • Method Details

    • getDefinition

      public SyllabifierDef getDefinition()
    • getSonorityScale

      public SonorityValues getSonorityScale()
    • getName

      public String getName()
      Description copied from interface: Syllabifier
      Syllabifier name. Preferably unique for identify syllabifiers in the UI.
      Specified by:
      getName in interface Syllabifier
      Returns:
      name
    • getLanguage

      public Language getLanguage()
      Description copied from interface: Syllabifier
      Syllabifier language.
      Specified by:
      getLanguage in interface Syllabifier
      Returns:
      language for the syllabifier
    • syllabify

      public void syllabify(List<IPAElement> phones)
      Description copied from interface: Syllabifier
      Apply consituent type annotations on given phones.
      Specified by:
      syllabify in interface Syllabifier
    • getExtensions

      public Set<Class<?>> getExtensions()
      Description copied from interface: IExtendable
      Return all extension types supported
      Specified by:
      getExtensions in interface IExtendable
    • getExtension

      public <T> T getExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Get the requested extension if available.
      Specified by:
      getExtension in interface IExtendable
      Returns:
      the capability object or null if the cability is not available
    • putExtension

      public <T> T putExtension(Class<T> cap, T impl)
      Description copied from interface: IExtendable
      Add a new extension.
      Specified by:
      putExtension in interface IExtendable
      Parameters:
      cap - the extension to add
      Returns:
      the added extension implementation
    • removeExtension

      public <T> T removeExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Remove a capability.
      Specified by:
      removeExtension in interface IExtendable
      Parameters:
      cap - the capability to remove
    • equals

      public boolean equals(Object b)
      Overrides:
      equals in class Object