Skip to content
Design preview: examples use a local mock server.

The finding object

Every field of a finding from POST /v1/checks, with its type and what it means.

A finding is one place in the text where a check matched. POST /v1/checks responds with them in findings, sorted by position, then by level from most to least serious.

Example

This finding is the check engine’s output for the draft in Check your first draft.

{
  "check": "SlashDates",
  "style": "Watership",
  "rule_ids": ["num-no-slash-dates"],
  "tier": "never",
  "level": "error",
  "group": "numbers",
  "message": "Write the date “11/04/2026” with the month in full, such as September 15, 2026, or in the ISO form, such as 2026-09-15, where a machine reads it.",
  "match": "11/04/2026",
  "span": { "index": 275, "length": 10, "line": 5, "column": 89 },
  "link": "https://watership.ca/style-guide/numbers-dates-and-units/#num-no-slash-dates"
}

Fields

FieldTypeAlways presentDescription
checkstringyesThe check that matched, by its name in the Watership Vale package, such as SlashDates.
stylestringyesWatership for a stock check. Company for a company claims check.
rule_idsarray of stringsyesThe rules the check enforces. Usually one. Empty for a company claims check.
tierstring or nullyesThe strictest tier among rule_ids: never, avoid, or prefer. null when rule_ids is empty.
levelstringyeserror, warning, or suggestion. See Level and tier.
groupstringyesThe check group, such as numbers or slop.
messagestringyesWhat to change, in one sentence.
matchstringyesThe text that matched.
spanobjectyesWhere the match is. See Span.
replacementstringnoThe suggested replacement, when the check has one, such as select for click. The API never applies it.
linkstring (URI)yesThe rule’s page in its guide, or the organization’s claims policy for a company claims check.

Span

FieldTypeDescription
indexintegerWhere the match starts, in UTF-16 code units from the start of the text you sent. This is the position JavaScript’s String.prototype.slice uses.
lengthintegerThe length of the match, in UTF-16 code units.
lineintegerThe line the match starts on, counting from 1.
columnintegerThe column the match starts at, counting from 1, in Unicode code points. This matches the columns Vale reports.

index and length refer to the text exactly as you sent it, including \r\n line endings. To get the matched text back in JavaScript, use text.slice(index, index + length). In a language that counts code points, such as Python, convert the offsets first, or use line and column.

Level and tier

The tier is a property of the rule. The level is how the check reports it. They map like this:

TierLevelMeaning
nevererrorThe strongest tier. Reported first; your review policy says when it must be fixed.
avoidwarningEdit on one sighting, or keep it with a stated reason.
prefersuggestionOptional. Act on it when other problems appear in the same passage.

Every Watership check reports at the level of its rule’s tier. A company claims check has no tier and sets its own level. To act on every rule of a tier, filter on tier.

Groups

GroupCovers
voiceVoice and plain words
spellingSpelling
capsCapitalization
punctuationPunctuation
numbersNumbers, dates, and units
interfaceInterface text
linksLinks and images
inclusiveInclusive language
termsTerminology
structureLists, abbreviations, tables, and headings
slopSlop guard
companyCompany claims

New groups can appear within v1. Treat a group you don’t recognize like any other.

On this page