de.danielnaber.languagetool.rules
Class UnpairedQuotesBracketsRule
Object
Rule
UnpairedQuotesBracketsRule
public class UnpairedQuotesBracketsRule
- extends Rule
Rule that finds unpaired quotes, brackets etc.
|
Method Summary |
String |
getDescription()
|
String |
getId()
|
RuleMatch[] |
match(AnalyzedSentence text)
Check whether the given text matche this error rule, i.e. whether the
text contains this error. |
void |
reset()
Reset the state information for the rule,
including paragraph-level information. |
| Methods inherited from class Rule |
addRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getMatches, getMatchesIndex, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setParagraphBackTrack, supportsLanguage |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnpairedQuotesBracketsRule
public UnpairedQuotesBracketsRule(ResourceBundle messages,
Language language)
getId
public final String getId()
- Specified by:
getId in class Rule
getDescription
public final String getDescription()
- Specified by:
getDescription in class Rule
match
public final RuleMatch[] match(AnalyzedSentence text)
- Description copied from class:
Rule
- Check whether the given text matche this error rule, i.e. whether the
text contains this error.
- Specified by:
match in class Rule
- Parameters:
text - a pre-analyzed sentence
- Returns:
- an array of RuleMatch object for each match.
reset
public final void reset()
- Reset the state information for the rule,
including paragraph-level information.
- Specified by:
reset in class Rule
Copyright © 2005-2007 Daniel Naber