Package ca.phon.ipadictionary.impl
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
-
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.void
install
(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:NameInfo
Returns 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:LanguageInfo
Returns the language handled by this dictionary.- Specified by:
getLanguage
in interfaceLanguageInfo
- Returns:
- the
Language
for this dictionary
-
lookup
Description copied from interface:IPADictionarySPI
Lookup IPA transcriptions for a given orthographic string.- Specified by:
lookup
in interfaceIPADictionarySPI
- Returns:
- a list of IPA transcriptions associated with the given orthography
- Throws:
IPADictionaryExecption
-
getMetadataValue
Description copied from interface:Metadata
Get value for a given metadata key.- Specified by:
getMetadataValue
in interfaceMetadata
- Parameters:
key
- the metadata key. Common keys are 'provider' and 'website'- Returns:
- the value for the specified key or
null
if no data is available. SeeMetadata.metadataKeyIterator()
-
metadataKeyIterator
Description copied from interface:Metadata
Get the iteator for metadata keys.- Specified by:
metadataKeyIterator
in interfaceMetadata
- Returns:
- an iterator for the metadata keys available
-
install
Description copied from interface:IPADictionarySPI
Install this SPI into the given IPADictionary- Specified by:
install
in interfaceIPADictionarySPI
-