Module check

Module check 

Source
Expand description

Structures for check requests and responses.

Structs§

Category
A rule category.
Context
Match context in check response.
Data
Alternative text to be checked.
DataAnnotation
A portion of text to be checked.
DetectedLanguage
Detected language from check request.
LanguageResponse
Language information in check response.
Match
Grammatical error match.
MatchPositions
Iterator over matches and their corresponding line number and line offset.
MoreContext
More context, post-processed in check response.
Replacement
Possible replacement for a given match in check response.
Request
LanguageTool POST check request.
Response
LanguageTool POST check response.
ResponseWithContext
Check response with additional context.
Rule
The rule that was not satisfied in a given match.
Software
LanguageTool software details.
Type
Type of given match.
Url
A possible url of a rule in a check response.
Warnings
Warnings about check response.

Enums§

Level
Possible levels for additional rules.

Constants§

DEFAULT_LANGUAGE
Default value for Request::language.

Functions§

parse_language_codecli
Parse v is valid language code.
split_len
Split a string into as few fragments as possible, where each fragment contains (if possible) a maximum of n characters. Pattern str pat is used for splitting.