Class LtTestNotVerb

java.lang.Object
org.eolang.lints.misc.LtTestNotVerb
All Implemented Interfaces:
Lint<com.jcabi.xml.XML>

public final class LtTestNotVerb extends Object implements Lint<com.jcabi.xml.XML>
Lint that checks test object name is a verb in singular. This lint uses Stanford CoreNLP model with POS tagging capabilities in order to determine the part of speech and tense for test object name. Originally, we used OpenNLP library to do that, but switched to the Stanford CoreNLP, due to merging all verb tags into single `VERB` POS tag, that sacrifices important information for us about verb tenses, and appeared in OpenNLP 2.4.0+. You can read more about the reason of this here and here.
Since:
0.0.22
  • Constructor Details

    • LtTestNotVerb

      public LtTestNotVerb(Properties props)
      Ctor.
      Parameters:
      props - Pipeline properties
    • LtTestNotVerb

      public LtTestNotVerb()
      Ctor.
  • Method Details

    • defects

      public Collection<Defect> defects(com.jcabi.xml.XML xmir) throws IOException
      Description copied from interface: Lint
      Find and return defects.
      Specified by:
      defects in interface Lint<com.jcabi.xml.XML>
      Parameters:
      xmir - The entity to analyze (could be XML or Path)
      Returns:
      Defects
      Throws:
      IOException
    • motive

      public String motive() throws IOException
      Description copied from interface: Lint
      Returns motive for a lint, explaining why this lint exists.
      Specified by:
      motive in interface Lint<com.jcabi.xml.XML>
      Returns:
      Motive text about lint
      Throws:
      IOException - if something went wrong
    • name

      public String name()
      Description copied from interface: Lint
      Name of the lint.
      Specified by:
      name in interface Lint<com.jcabi.xml.XML>
      Returns:
      Lint name