# How findings map to the guides

Source: https://watership.ca/api-docs/docs/concepts/findings-and-guides

Where rules come from, how a rule id is built, and why one finding can name rules in two guides.

A finding isn't the API's opinion. It points to a rule that a person wrote, in a guide anyone can read. This page explains how that link works, from the guides to the rule ids to the checks.

## Three guides, one set of ids [#three-guides-one-set-of-ids]

The rules come from three Watership guides, each a separate site that exports its rules as JSON:

| Guide | `guide` value | Rules | What it covers |
|---|---|---|---|
| [Style guide](https://watership.ca/style-guide/) | `style-guide` | 512 | Voice, spelling, capitalization, punctuation, numbers, procedures, interface text, links, inclusive language, terminology |
| [UX writing guide](https://watership.ca/ux-writing/) | `ux-writing` | 34 | Text inside a product: buttons, errors, empty states, dialogs |
| [Slop guard](https://watership.ca/slop-guard/) | `slop-guard` | 31 | The habits that make prose read as machine-made |

The slop guard applies under every guide and every voice. The style guide and the UX writing guide cover different kinds of writing and share the same tiers.

Every rule has an id that's unique across all three guides. The id is built from the section and the rule's name: `punct-semicolon` is in the punctuation section, `term-please` in terminology, and `floor-banned-words` in the slop guard, whose rules all start with `floor-`. Ids don't change when a rule's wording changes, so you can store them, filter on them, and link to them.

## From rule to finding [#from-rule-to-finding]

The checks are the [Watership Vale package](https://watership.ca/parts.html#vale-watership), a set of patterns for the [Vale](https://vale.sh) linter. Each check names the rule ids it enforces. The API is designed to run those checks through the Watership JavaScript engine, which applies them the way Vale does.

So a finding is the end of a chain:

1. A guide states a rule, with an id, a tier, and examples.
2. A check in the Vale package encodes the pattern for it and names the id.
3. The engine runs the check on your text and reports a match with the id, the tier, and a link back to the guide.

Because each step names the same id, you can follow a finding back to the rule, and from a rule forward to every check that enforces it. The `link` on a finding goes straight to the rule's section in its guide.

## Why one finding can name two rules [#why-one-finding-can-name-two-rules]

Some rules overlap across guides. The slop guard bans the em dash because readers now take it as a sign of machine text. The style guide's punctuation section also flags it, as a matter of house style. One pattern finds both, so the `EmDash` check reports `punct-em-dash` and `floor-no-em-dashes` together.

The API reports one finding with both ids, not two findings for the same character. A reader sees the problem once. A tool that counts by rule still sees both rules.

## Company checks [#company-checks]

An organization can add its own checks on top of the stock ones. The API's `company` group holds one kind: claims. A claims check flags wording that an organization's claims policy bans or restricts, such as a promise of perfect availability. These come from the company, not from a Watership guide, so they have `style: Company`, no rule ids, and a `link` to the organization's claims policy instead of a guide. Watership ships no claims lists, so the group stays empty until an organization adds its own.

## Related [#related]

- [`GET /v1/rules`](https://watership.ca/api-docs/docs/reference/api/rules/list-rules) lists every rule with its guide and section.
- [Look up a rule from a finding](https://watership.ca/api-docs/docs/tasks/look-up-a-rule) shows how to follow the id.
