# The finding object

Source: https://watership.ca/api-docs/docs/reference/finding

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 [#example]

This finding is the check engine's output for the draft in [Check your first draft](https://watership.ca/api-docs/docs/tutorials/check-your-first-draft).

```json
{
  "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 [#fields]

| Field | Type | Always present | Description |
|---|---|---|---|
| `check` | string | yes | The check that matched, by its name in the Watership Vale package, such as `SlashDates`. |
| `style` | string | yes | `Watership` for a stock check. `Company` for a company claims check. |
| `rule_ids` | array of strings | yes | The rules the check enforces. Usually one. Empty for a company claims check. |
| `tier` | string or `null` | yes | The strictest tier among `rule_ids`: `never`, `avoid`, or `prefer`. `null` when `rule_ids` is empty. |
| `level` | string | yes | `error`, `warning`, or `suggestion`. See [Level and tier](https://watership.ca/api-docs/docs/reference/finding#level-and-tier). |
| `group` | string | yes | The check group, such as `numbers` or `slop`. |
| `message` | string | yes | What to change, in one sentence. |
| `match` | string | yes | The text that matched. |
| `span` | object | yes | Where the match is. See [Span](https://watership.ca/api-docs/docs/reference/finding#span). |
| `replacement` | string | no | The suggested replacement, when the check has one, such as `select` for `click`. The API never applies it. |
| `link` | string (URI) | yes | The rule's page in its guide, or the organization's claims policy for a company claims check. |

## Span [#span]

| Field | Type | Description |
|---|---|---|
| `index` | integer | Where 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. |
| `length` | integer | The length of the match, in UTF-16 code units. |
| `line` | integer | The line the match starts on, counting from 1. |
| `column` | integer | The 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 [#level-and-tier]

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

| Tier | Level | Meaning |
|---|---|---|
| <Tier name="never" /> | `error` | The strongest tier. Reported first; your review policy says when it must be fixed. |
| <Tier name="avoid" /> | `warning` | Edit on one sighting, or keep it with a stated reason. |
| <Tier name="prefer" /> | `suggestion` | Optional. 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 [#groups]

| Group | Covers |
|---|---|
| `voice` | Voice and plain words |
| `spelling` | Spelling |
| `caps` | Capitalization |
| `punctuation` | Punctuation |
| `numbers` | Numbers, dates, and units |
| `interface` | Interface text |
| `links` | Links and images |
| `inclusive` | Inclusive language |
| `terms` | Terminology |
| `structure` | Lists, abbreviations, tables, and headings |
| `slop` | Slop guard |
| `company` | Company claims |

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