public class GovernmentChecker extends AbstractChecker
| Constructor and Description |
|---|
GovernmentChecker() |
| Modifier and Type | Method and Description |
|---|---|
List<Mistake> |
check(Sentence sentence)
Check the sentence for errors.
|
List<Token> |
findNouns(Sentence sentence)
Looks for a noun in the sentence's objects.
|
Token |
findPrep(Sentence sentence,
Token token) |
Token |
findVerb(Sentence sentence)
Looks in a sentence for a verb.
|
String |
getIdPrefix()
Each checker should have IDs with a fixed prefix so CheckerComposite can
route the ignore message to the correct checker.
|
int |
getPriority()
Priority of this checker.
|
add, getRuleDefinition, getRulesDefinition, ignore, resetIgnoredequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRulesDefinition, ignore, resetIgnoredpublic String getIdPrefix()
GenericCheckerpublic int getPriority()
GenericCheckerpublic List<Mistake> check(Sentence sentence)
GenericCheckersentence - the sentencepublic List<Token> findNouns(Sentence sentence)
sentence - entered by the userpublic Token findVerb(Sentence sentence)
sentence - entered by the userCopyright © 2012–2017 CoGrOO. All rights reserved.