Let a place carry its own label and preposition, keep the count in every place title, and test that slugs follow names

A registry entry may now set label and prep. A plateau reads "Plateau" and "on the Colorado
Plateau", the Mogollon Rim "Escarpment" and "along the Mogollon Rim", a national monument or a
parkway its own word; the default is still "Mountain range" and "in the". Every national park,
provincial park, monument, recreation area and parkway in the registry is labelled.

A place title no longer gives up its ": N Trails" ending when it is long: it drops the state first
and then keeps the count over the cap, and the state is left out where the name already holds
it (Oregon Cascades, California Coast Ranges). A test checks that every slug is the slug of its
display name, with the Arizona White Mountains as the one stated exception.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-11-20 12:28:03 -07:00
1 parent a97ea85093
commit 30d03b8069
10 files changed
+307 -43

No files matched your search

+3 -1
View File
@@ -422,7 +422,9 @@ One file at the top level, one `[[place]]` entry per place that at least one rec
| --- | --- | --- | --- |
| `slug` | string | The place's slug, unique within its kind. | `"wind-river-range"` |
| `kind` | string | `park`, `range` or `wilderness`. | `"range"` |
| `name` | string | The display name. | `"Wind River Range"` |
| `name` | string | The display name. The slug is the slug of this name (`white-mountains-arizona` is the one stated exception, as the other White Mountains have the plain slug). | `"Wind River Range"` |
| `label` | string, where present | What kind of place it is, for the page's kicker. Defaults to the kind's own: `Park`, `Mountain range`, `Wilderness area`. Set it where that is wrong: `Plateau` for the Colorado Plateau, `National monument` for a national monument. | `"Plateau"` |
| `prep` | string, where present | The preposition a title or lede uses for the place: `in the` (the default for a range or a wilderness area), `in` (the default for a park), `on the`, `along the`. | `"on the"` |
| `where` | array of strings | The state or province codes the place is in, as records write them (`"WY"`, `"ON"`). Proposed by the tool from the `regions` codes shared by at least half of the place's measured trails, and confirmed by a reviewer. | `["WY"]` |
| `within` | array of strings, where present | The slugs of parent places, ranges within ranges. Each names an existing `range` entry, and the chains never circle. A trail in a nested range is also in every parent; records never store the parents. | `["rocky-mountains"]` |
| `source` | string | Which published outline set the boundary came from: `nps`, `wilderness-connect`, `cpcad` or `gmba-v2`. | `"gmba-v2"` |