Modifier and Type | Method and Description |
---|---|
String |
applyRules(String text)
Implementations of this interface must implement this method to translate text based on rules.
|
static GrammarRules |
getInstance()
Returns the sole instance of this class.
|
String |
reverseRules(String text)
This method can be used to reverse the rules which have been applied in
RuleGroup.applyRules(String) . |
public static GrammarRules getInstance()
public String applyRules(String text)
RuleGroup
applyRules
in interface RuleGroup
text
- The text to be translated.public String reverseRules(String text)
RuleGroup
RuleGroup.applyRules(String)
.reverseRules
in interface RuleGroup
text
- The text to be translated.Copyright © 2013 EMBL-EBI. All rights reserved.