Package ca.phon.syllable.phonex
Class StressPluginProvider
java.lang.Object
ca.phon.syllable.phonex.StressPluginProvider
- All Implemented Interfaces:
PluginProvider
@PhonexPlugin(name="stress",
description="Match stress",
arguments="type")
public class StressPluginProvider
extends Object
implements PluginProvider
Provides the plug-in matcher for syllable stress. Stress type
is identified by the following list:
- U - No Stress
- 1 - Primary Stress
- 2 - Secondary Stress
- S - Any Stress
\c:stress("U")Stress types may also be 'or'-ed using the pipe ('|') symbol. E.g., Search for stressed (primary or secondary) consonants
\c:stress("1|2")
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateMatcher
(List<String> args) Create a new matcher for the given input string.
-
Constructor Details
-
StressPluginProvider
public StressPluginProvider()
-
-
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
-