Interface PluginProvider
- All Known Implementing Classes:
AnyDiacriticPluginProvider,CombiningDiacriticPluginProvider,DiphthongPluginProvider,PrefixDiacriticPluginProvider,SonorityMdcPlugin,StressPluginProvider,SuffixDiacriticPluginProvider,SyllableConstituentPluginProvider,ToneNumberPluginProvider
public interface PluginProvider
Extension point for the phonex language. To add a new plug-in matcher for the phonex langauge, perform the following steps:
- Create a type implementing this interface
- Add to the new type an annotation '@PhonexPlugin("<name>")', where name is the identifier for the plug-in matcher.
- Create (or modifiy) a file META-INF/services/ca.phon.phonex.PluginProvider with a line containing the full name of the new type.
For an example, see
.invalid reference
SyllabificationPhonexPlugin
-
Method Summary
Modifier and TypeMethodDescriptioncreateMatcher(List<String> args) Create a new matcher for the given input string.
-
Method Details
-
createMatcher
Create a new matcher for the given input string.- Returns:
- PhoneMatcher
- Throws:
IllegalArgumentException- if there was a problem creating the plug-in matcherNullPointerException- if the provided argument list isnull
-