Package | Description |
---|---|
cc.redpen.formatter |
Formatter and the implementations are provided.
|
cc.redpen.model |
Elements of Documents such as List, Sentence are provided.
|
cc.redpen.validator |
Validators and the factory classes are provided.
|
cc.redpen.validator.sentence |
SentenceValidators are provided.
|
org.asciidoctor |
Modifier and Type | Method and Description |
---|---|
protected org.json.JSONObject |
JSONFormatter.asJSON(Sentence sentence,
LineOffset startLineOffset,
LineOffset endLineOffset)
Render a start and end line offsets (ie: source text coordinates) as a description of a section of the sentence.getContent() string
|
Modifier and Type | Method and Description |
---|---|
Sentence |
Section.getHeaderContent(int id)
Get iterator of header sentences.
|
Sentence |
Section.getJoinedHeaderContents()
Get iterator of header sentences.
|
Sentence |
Paragraph.getSentence(int sentenceNumber)
Get the specified sentence.
|
Sentence |
ListElement.getSentence(int id)
Given sentence id, return the content of sentence.
|
Modifier and Type | Method and Description |
---|---|
List<Sentence> |
Section.getHeaderContents()
Get iterator of header sentences.
|
List<Sentence> |
Paragraph.getSentences()
Get the iterator of sentences.
|
List<Sentence> |
ListElement.getSentences()
Get content of list element.
|
Modifier and Type | Method and Description |
---|---|
Document.DocumentBuilder |
Document.DocumentBuilder.addSentence(Sentence sentence)
Add a sentence.
|
void |
Paragraph.appendSentence(Sentence sentence)
Append a sentence.
|
Modifier and Type | Method and Description |
---|---|
Document.DocumentBuilder |
Document.DocumentBuilder.addListElement(int level,
List<Sentence> contents)
Add list element to the last list block.
|
Document.DocumentBuilder |
Document.DocumentBuilder.addSection(int level,
List<Sentence> header)
Add a section to the document.
|
void |
ListBlock.appendElement(int level,
List<Sentence> contents)
Append ListElement.
|
void |
Section.appendListElement(int listLevel,
List<Sentence> contents)
Append List element.
|
Constructor and Description |
---|
ListElement(int listLevel,
List<Sentence> listContents)
Constructor.
|
Section(int sectionLevel,
List<Sentence> header)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Sentence |
ValidationError.getSentence()
Get sentence containing the error.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Validator.addError(String message,
Sentence sentenceWithError)
create a ValidationError for the specified position with specified message
|
void |
JavaScriptValidator.addError(String message,
Sentence sentenceWithError) |
protected void |
Validator.addErrorWithPosition(String message,
Sentence sentenceWithError,
int start,
int end)
create a ValidationError for the specified position with specified message
|
void |
JavaScriptValidator.addErrorWithPosition(String message,
Sentence sentenceWithError,
int start,
int end) |
protected void |
Validator.addLocalizedError(Sentence sentenceWithError,
Object... args)
create a ValidationError for the specified position with localized default error message
|
void |
JavaScriptValidator.addLocalizedError(Sentence sentenceWithError,
Object... args) |
protected void |
Validator.addLocalizedError(String messageKey,
Sentence sentenceWithError,
Object... args)
create a ValidationError for the specified position with localized message with specified message key
|
void |
JavaScriptValidator.addLocalizedError(String messageKey,
Sentence sentenceWithError,
Object... args) |
protected void |
Validator.addLocalizedErrorFromToken(Sentence sentenceWithError,
TokenElement token)
create a ValidationError using the details within the given token & localized message
|
void |
JavaScriptValidator.addLocalizedErrorFromToken(Sentence sentenceWithError,
TokenElement token) |
protected void |
Validator.addLocalizedErrorWithPosition(Sentence sentenceWithError,
int start,
int end,
Object... args)
create a ValidationError for the specified position with default localized error message
|
void |
JavaScriptValidator.addLocalizedErrorWithPosition(Sentence sentenceWithError,
int start,
int end,
Object... args) |
protected void |
Validator.addLocalizedErrorWithPosition(String messageKey,
Sentence sentenceWithError,
int start,
int end,
Object... args)
create a ValidationError for the specified position with specified message key
|
protected void |
Validator.addValidationError(Sentence sentenceWithError,
Object... args)
Deprecated.
use
Validator.addLocalizedError(Sentence, Object...) instead |
protected void |
Validator.addValidationError(String messageKey,
Sentence sentenceWithError,
Object... args)
Deprecated.
|
protected void |
Validator.addValidationErrorFromToken(Sentence sentenceWithError,
TokenElement token)
Deprecated.
|
protected void |
Validator.addValidationErrorWithPosition(Sentence sentenceWithError,
Optional<LineOffset> start,
Optional<LineOffset> end,
Object... args)
Deprecated.
|
protected void |
Validator.addValidationErrorWithPosition(String messageKey,
Sentence sentenceWithError,
Optional<LineOffset> start,
Optional<LineOffset> end,
Object... args)
Deprecated.
|
void |
Validator.preValidate(Sentence sentence)
Process input blocks before run validation.
|
void |
JavaScriptValidator.preValidate(Sentence sentence) |
void |
Validator.validate(Sentence sentence)
validate the input document and returns the invalid points.
|
void |
JavaScriptValidator.validate(Sentence sentence) |
Modifier and Type | Method and Description |
---|---|
void |
SpaceBeginningOfSentenceValidator.preValidate(Sentence sentence) |
void |
KatakanaSpellCheckValidator.preValidate(Sentence sentence) |
void |
JapaneseStyleValidator.preValidate(Sentence sentence) |
void |
ContractionValidator.preValidate(Sentence sentence) |
void |
WordNumberValidator.validate(Sentence sentence) |
void |
WeakExpressionValidator.validate(Sentence sentence)
Build up sequences of tokens and see if that sequence exists in the weak-expression dictionary
|
void |
SymbolWithSpaceValidator.validate(Sentence sentence) |
void |
SuggestExpressionValidator.validate(Sentence sentence) |
void |
SuccessiveWordValidator.validate(Sentence sentence) |
void |
StartWithCapitalLetterValidator.validate(Sentence sentence) |
void |
SpellingValidator.validate(Sentence sentence) |
void |
SpaceBetweenAlphabeticalWordValidator.validate(Sentence sentence) |
void |
SpaceBeginningOfSentenceValidator.validate(Sentence sentence) |
void |
SentenceLengthValidator.validate(Sentence sentence) |
void |
QuotationValidator.validate(Sentence sentence) |
void |
ParenthesizedSentenceValidator.validate(Sentence sentence)
Look for parenthesized expressions in the sentence and generate an error where appropriate
|
void |
OkuriganaValidator.validate(Sentence sentence) |
void |
NumberFormatValidator.validate(Sentence sentence)
Search for numbers in the sentence and ensure they are correctly formatted
|
void |
KatakanaSpellCheckValidator.validate(Sentence sentence) |
void |
KatakanaEndHyphenValidator.validate(Sentence sentence) |
void |
JapaneseStyleValidator.validate(Sentence sentence) |
void |
InvalidWordValidator.validate(Sentence sentence) |
void |
InvalidSymbolValidator.validate(Sentence sentence) |
void |
InvalidExpressionValidator.validate(Sentence sentence) |
void |
HyphenationValidator.validate(Sentence sentence) |
void |
HankakuKanaValidator.validate(Sentence sentence) |
void |
EndOfSentenceValidator.validate(Sentence sentence) |
void |
DoubleNegativeValidator.validate(Sentence sentence) |
void |
DoubledWordValidator.validate(Sentence sentence) |
void |
DoubledJoshiValidator.validate(Sentence sentence) |
void |
ContractionValidator.validate(Sentence sentence) |
void |
CommaNumberValidator.validate(Sentence sentence) |
Modifier and Type | Method and Description |
---|---|
protected LineOffset |
RedPenTreeProcessor.addSentence(LineOffset lineOffset,
String processed,
String source,
SentenceExtractor sentenceExtractor,
List<Sentence> sentences)
Add a processed AsciiDoc sentence, using the raw source sentence to guide the character offsets.
|
protected void |
RedPenTreeProcessor.processParagraph(String paragraph,
String sourceText,
List<Sentence> sentences)
Process a paragraph of processed text.
|
Copyright © 2015. All rights reserved.