Class TransliterationDictionary
java.lang.Object
ca.phon.ipadictionary.impl.TransliterationDictionary
- All Implemented Interfaces:
IPADictionarySPI,LanguageInfo,Metadata,NameInfo
public class TransliterationDictionary
extends Object
implements IPADictionarySPI, LanguageInfo, NameInfo, Metadata
An IPADictionary implementation that uses a tokenizer and lookup
table for generating ipa transcriptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the language handled by this dictionary.getMetadataValue(String key) Get value for a given metadata key.getName()Returns a string identifier for this dictionary.voidinstall(IPADictionary dict) Install this SPI into the given IPADictionaryString[]Lookup IPA transcriptions for a given orthographic string.Get the iteator for metadata keys.
-
Constructor Details
-
TransliterationDictionary
-
-
Method Details
-
getName
Description copied from interface:NameInfoReturns a string identifier for this dictionary. While not required, the name should be unique to help users identify dictionaries which handle the same language. -
getLanguage
Description copied from interface:LanguageInfoReturns the language handled by this dictionary.- Specified by:
getLanguagein interfaceLanguageInfo- Returns:
- the
Languagefor this dictionary
-
lookup
Description copied from interface:IPADictionarySPILookup IPA transcriptions for a given orthographic string.- Specified by:
lookupin interfaceIPADictionarySPI- Parameters:
orthography-- Returns:
- a list of IPA transcriptions associated with the given orthography
- Throws:
IPADictionaryException
-
getMetadataValue
Description copied from interface:MetadataGet value for a given metadata key.- Specified by:
getMetadataValuein interfaceMetadata- Parameters:
key- the metadata key. Common keys are 'provider' and 'website'- Returns:
- the value for the specified key or
nullif no data is available. SeeMetadata.metadataKeyIterator()
-
metadataKeyIterator
Description copied from interface:MetadataGet the iteator for metadata keys.- Specified by:
metadataKeyIteratorin interfaceMetadata- Returns:
- an iterator for the metadata keys available
-
install
Description copied from interface:IPADictionarySPIInstall this SPI into the given IPADictionary- Specified by:
installin interfaceIPADictionarySPI
-