Package org.eolang.lints.misc
Class LtTestNotVerb
java.lang.Object
org.eolang.lints.misc.LtTestNotVerb
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCtor.LtTestNotVerb
(edu.stanford.nlp.pipeline.StanfordCoreNLP pipe) Primary ctor.LtTestNotVerb
(Properties props) Ctor. -
Method Summary
-
Constructor Details
-
LtTestNotVerb
Ctor.- Parameters:
props
- Pipeline properties
-
LtTestNotVerb
public LtTestNotVerb()Ctor. -
LtTestNotVerb
public LtTestNotVerb(edu.stanford.nlp.pipeline.StanfordCoreNLP pipe) Primary ctor.- Parameters:
pipe
- NLP pipeline
-
-
Method Details
-
defects
Description copied from interface:Lint
Find and return defects.- Specified by:
defects
in interfaceLint<com.jcabi.xml.XML>
- Parameters:
xmir
- The entity to analyze (could beXML
orPath
)- Returns:
- Defects
- Throws:
IOException
-
motive
Description copied from interface:Lint
Returns motive for a lint, explaining why this lint exists. -
name
Description copied from interface:Lint
Name of the lint.
-