public class SuggestionReplacer extends Object
| Constructor and Description |
|---|
SuggestionReplacer(PlainTextMapping textMapping,
String originalText) |
SuggestionReplacer(PlainTextMapping textMapping,
String originalText,
ErrorMarker errorMarker) |
| Modifier and Type | Method and Description |
|---|---|
List<RuleMatchApplication> |
applySuggestionsToOriginalText(RuleMatch match)
Applies the suggestions from the rule to the original text.
|
public SuggestionReplacer(PlainTextMapping textMapping, String originalText)
originalText - the original text that includes markuppublic SuggestionReplacer(PlainTextMapping textMapping, String originalText, ErrorMarker errorMarker)
public List<RuleMatchApplication> applySuggestionsToOriginalText(RuleMatch match)