Package ca.phon.phonex.plugins
Class PrefixDiacriticPluginProvider
java.lang.Object
ca.phon.phonex.plugins.PrefixDiacriticPluginProvider
- All Implemented Interfaces:
PluginProvider
@PhonexPlugin(name="prefix",
description="Match prefix diacritics",
arguments="diacritics")
public class PrefixDiacriticPluginProvider
extends Object
implements PluginProvider
Provides a matcher for prefix diacritics. Takes a single argument which is a string list of allowed/forbidden diacritics. Forbidden diacritics are prefixed with '-'.
Usage: comb("<list of diacritics>")
invalid input: '<'/br/>
E.g., Look for a consonant that has the '߽' diacritic but not
the 'ࠀ' diacritic.
\c:prefix("߽-ࠀ")
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateMatcher
(List<String> args) Create a new matcher for the given input string.
-
Constructor Details
-
PrefixDiacriticPluginProvider
public PrefixDiacriticPluginProvider()
-
-
Method Details
-
createMatcher
Description copied from interface:PluginProvider
Create a new matcher for the given input string.- Specified by:
createMatcher
in interfacePluginProvider
- Returns:
- PhoneMatcher
- Throws:
IllegalArgumentException
- if there was a problem creating the plug-in matcher
-