org.languagetool.rules.uk
Class PunctuationCheckRule

java.lang.Object
  extended by org.languagetool.rules.Rule
      extended by org.languagetool.rules.AbstractPunctuationCheckRule
          extended by org.languagetool.rules.uk.PunctuationCheckRule

public class PunctuationCheckRule
extends AbstractPunctuationCheckRule

A rule that matches "..", "::", "-," but not "...", "!..", "?!!", ",-" etc TODO: spaces seem to be special, extract from regexp?

Author:
Andriy Rysin

Field Summary
 
Fields inherited from class org.languagetool.rules.Rule
messages
 
Constructor Summary
PunctuationCheckRule(ResourceBundle messages)
           
 
Method Summary
protected  boolean isPunctsJoinOk(String tokens)
           
protected  boolean isPunctuation(String token)
           
 void reset()
           
 
Methods inherited from class org.languagetool.rules.AbstractPunctuationCheckRule
getDescription, getId, match
 
Methods inherited from class org.languagetool.rules.Rule
addRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getLocQualityIssueType, getMatches, getMatchesIndex, getUrl, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, isSpellingRule, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setLocQualityIssueType, setParagraphBackTrack, setUrl, supportsLanguage, toRuleMatchArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PunctuationCheckRule

public PunctuationCheckRule(ResourceBundle messages)
Method Detail

isPunctsJoinOk

protected final boolean isPunctsJoinOk(String tokens)
Specified by:
isPunctsJoinOk in class AbstractPunctuationCheckRule

isPunctuation

protected final boolean isPunctuation(String token)
Specified by:
isPunctuation in class AbstractPunctuationCheckRule

reset

public void reset()
Overrides:
reset in class AbstractPunctuationCheckRule


Copyright © 2013. All Rights Reserved.