// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial /** * The `wikidata-vital-places` training rows: each inventory place rendered as * `venue` rows, with an entity-grouped holdout. * * A settlement or administrative area is left to Who's On First, since its rows already teach the name. * Every other place becomes rows of three forms: each language's label bare, * the label followed by the country's name in that language for the languages written * with a comma separator, and the first English alias bare. * * The holdout is chosen by a hash of the QID, so every form and language of a * held-out place stays out of training. */ import type { ComponentTag } from "@mailwoman/codex/component" import { sha256Hex } from "@mailwoman/core/crypto/hash" import { SourceRegister } from "#registers" import { type ClassRoots, ROAD_ROOTS, SETTLEMENT_ROOTS, SITE_ROOTS } from "#tools/fetch/wikidata/vital-places/classify" import type { VitalPlace } from "#tools/fetch/wikidata/vital-places/inventory" /** * The `source` written on every row. */ export const VITAL_PLACES_SOURCE = "wikidata-vital-places" /** * The languages whose `