org.languagetool.rules.en
Class CompoundRule

Object
  extended by Rule
      extended by AbstractCompoundRule
          extended by CompoundRule

public class CompoundRule
extends AbstractCompoundRule

Checks that compounds (if in the list) are not written as separate words.

Author:
Marcin MiƂkowski, based on code by Daniel Naber

Constructor Summary
CompoundRule(ResourceBundle messages)
           
 
Method Summary
 String getDescription()
           
 String getId()
          An ASCII-only string used to identify the rule in e.g. configuration files.
 
Methods inherited from class AbstractCompoundRule
getMaxUnHyphenatedWordCount, isHyphenIgnored, match, reset, setHyphenIgnored, setMaxUnHyphenatedWordCount, setShort
 
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
 

Constructor Detail

CompoundRule

public CompoundRule(ResourceBundle messages)
             throws IOException
Throws:
IOException
Method Detail

getId

public String getId()
Description copied from class: Rule
An ASCII-only string used to identify the rule in e.g. configuration files. This string is supposed to be unique and to stay the same in all upcoming versions of LanguageTool.

Specified by:
getId in class AbstractCompoundRule

getDescription

public String getDescription()
Specified by:
getDescription in class AbstractCompoundRule


Copyright © 2005-2011 Daniel Naber