Class TokenAgreementNounVerbRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.uk.TokenAgreementNounVerbRule

public class TokenAgreementNounVerbRule extends Rule
A rule that checks if noun and verb agree
Since:
3.6
Author:
Andriy Rysin
  • Constructor Details

  • Method Details

    • getId

      public final String getId()
      Specified by:
      getId in class Rule
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class Rule
    • getShort

      public String getShort()
    • isCaseSensitive

      public boolean isCaseSensitive()
      Indicates if the rule is case-sensitive.
      Returns:
      true if the rule is case-sensitive, false otherwise.
    • match

      public final RuleMatch[] match(AnalyzedSentence sentence)
      Specified by:
      match in class Rule