From ae50e62535f17803ff00139cf5d248706ac7f7a2 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 04:21:29 +0000 Subject: [PATCH 1/5] =?UTF-8?q?Night=201:=20DESIGN.md=20v1=20freeze,=20?= =?UTF-8?q?=C2=A72.1=20starter=20decks,=20=C2=A78=20top-heavy=20target,=20?= =?UTF-8?q?trendDown=20off=20(#23)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Supersedes #18 and #21. Co-Authored-By: Claude Opus 5.5 --- docs/game/DESIGN.md | 107 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 101 insertions(+), 6 deletions(-) diff --git a/docs/game/DESIGN.md b/docs/game/DESIGN.md index 11cd6ba..262efcd 100644 --- a/docs/game/DESIGN.md +++ b/docs/game/DESIGN.md @@ -52,7 +52,8 @@ The engine never reads raw 0–100 stats as power. Every game card is derived ** CardInput = { cardId, pageId, title, category, rarity, snapshot: MintStatsSnapshot, // at mint, immutable live: { trendPercent: number | null, dailyAverage: number | null }, // frozen at match start - check: 'verified' | 'unverified' | 'unchecked' | 'loaner' } // set by the host (§1.10) + check: 'verified' | 'unverified' | 'unchecked' | 'loaner', // set by the host (§1.10) + pinned?: { cost, home, faction } } // loaners only (§2.1): replaces §1.1–1.5 ``` ### 1.1 Percentiles (rank-normalisation) @@ -91,8 +92,9 @@ big cards are flexible. mono-faction deck gains no consistency edge (§10: no v1 keyword scales with faction count). ### 1.6 Trend (live, small, capped) -`trend` = +1 if `live.trendPercent ≥ trendUp` (default 25), −1 if `≤ trendDown` (default −25), -otherwise 0. A `null` value gives 0. Trend also needs `live.dailyAverage ≥ trendMinDaily` (default +`trend` = +1 if `live.trendPercent ≥ trendUp` (default 25), −1 if `≤ trendDown` (default **−200**, +which means there is **no down arrow in v1**: 69% of cards trend negative, so a ▼ would mostly land as +a quiet penalty on famous owned cards; modes can turn it back on), otherwise 0. A `null` value gives 0. Trend also needs `live.dailyAverage ≥ trendMinDaily` (default **20**), because percentages on tiny articles are noise; otherwise trend is 0. The host computes it **once at match start**, and it is frozen for the match. It shows as an arrow (▲/▼), not a number. It adds to power in every Topic. @@ -140,7 +142,7 @@ The engine does no I/O and only ever sees one version of each card. - **Loaner cards:** off-chain preview cards with a fixed `CardInput`, shipped with the game data (`docs/game/starter-cards.json`, picked by council-data: about 24 pageIds across all 6 categories, with frozen, hand-checked snapshot stats, including the 4 cards in `shared/catalog.ts`). - Loaners follow the same derivation, so they are no weaker or stronger than owned cards. + Loaners follow the same curve (§2.1 pins their cost, home and faction), so they are no weaker or stronger than owned cards. - **Starter decks:** `starterDecks` (default: 4 fixed 12-card loaner decks). Each one has two leading factions and an average cost of 3.0–3.3, and is **curve-shaped**: at least 3 cards of cost 4 or more, and at most 4 of cost 1. A new player picks one and can play at once. @@ -148,6 +150,99 @@ The engine does no I/O and only ever sees one version of each card. means no limit). Owning NFTs gives **variety**, not power: owned and loaner cards follow the same curve. +### 2.1 Starter decks v1 *(owner: council-designer-b)* + +These are the default `starterDecks`: four 12-card loaner decks. +- **Every deck has the same curve:** costs `1,1,2,2,3,3,3,4,4,5,5,6`. That's an average of 3.25, with 5 cards of cost 4 or more and 2 of cost 1. +- **Every deck has the same shape:** 6 cards from each of two factions, and 4 cards for each home stat. So every deck can play on-topic in every lane. +- **Loaner values are pinned.** council-data's percentile table and `starter-cards.json` don't exist yet, so a loaner carries + `pinned: { cost, home, faction }`. For `check: 'loaner'` the engine takes these instead of §1.1–1.5. + Everything after them still applies: `powerByCost`, `onTopicBonus`, `vanillaBonus`, the §10.1 keyword choice and `keywordParams`. + A mode that changes those numbers changes loaners exactly as it changes owned cards. +- **Pinned cost isn't fame.** Cost was set by hand to fit the curve, not from the article's fame. Rarity is `Common` (frame only) and trend is 0. +- **Loaner ids:** `cardId` = `loaner:`, and `pageId` = the article's real pageId if the UI has it, otherwise `null`. Copies are counted per `cardId`. +- **Relation to `docs/game/starter-cards.json`** (council-data, real frozen snapshots of random articles): that file is the + **loaner pool** for the sim and for "fill a slot with a loaner" in the deck builder. It is **not** the default starter decks. + The decks below pin their values on purpose, for two reasons. Famous, recognisable articles would all derive to cost 5–6. + And the random sample has no Space cards (CARD_DATA.md finding 6). +- **v1.1 note (factions):** CARD_DATA.md finding 6 shows the legacy `category()` split as Culture 53%, People 30%, Nature 9%, + History 5%, Science 3%, Space 0%. Owned decks will therefore be about 50% viral and 30% local. Viral is the weakest keyword, so a typical owned deck + may be *weaker* than the starter decks. That's the wrong way round for "NFTs give variety, not power". v1 ships as is. + For v1.1, sim-balance runs a **realistic owned deck** (12 cards drawn from `card-sample.json` with its real category mix) + against each starter. If it wins under 45%, viral gets buffed first (e.g. cap 3, or a minimum of +1). The P31-based factions council-data proposes (People, Places, Nature, Works & Culture, + Structures, Events & Ideas) are the v2 fix, and would need the host to fetch P31 (it isn't in `PageEnrichment`). + +Keywords follow from §10.1: cost 1 → vanilla, otherwise the faction keyword (shown in brackets). + +**A. Stargazers: Space (translated) + Science (encyclopedic)** +| Cost | Card | Faction | Home | +|---|---|---|---| +| 1 | Moon | Space | reach | +| 1 | Electron | Science | depth | +| 2 | Mars | Space | attention | +| 2 | Periodic table | Science | depth | +| 3 | Saturn | Space | reach | +| 3 | Photosynthesis | Science | attention | +| 3 | Black hole | Space | depth | +| 4 | Quantum mechanics | Science | reach | +| 4 | Milky Way | Space | attention | +| 5 | DNA | Science | attention | +| 5 | Sun | Space | reach | +| 6 | Theory of relativity | Science | depth | + +**B. Field Guide: Nature (rising) + History (nostalgic)** +| Cost | Card | Faction | Home | +|---|---|---|---| +| 1 | Octopus | Nature | depth | +| 1 | Stonehenge | History | attention | +| 2 | Axolotl | Nature | attention | +| 2 | Rosetta Stone | History | reach | +| 3 | Coral reef | Nature | depth | +| 3 | Roman Empire | History | reach | +| 3 | Honey bee | Nature | attention | +| 4 | Ancient Egypt | History | depth | +| 4 | Amazon rainforest | Nature | reach | +| 5 | Blue whale | Nature | attention | +| 5 | Great Wall of China | History | reach | +| 6 | World War II | History | depth | + +**C. Headliners: People (local) + Culture (viral)** +| Cost | Card | Faction | Home | +|---|---|---|---| +| 1 | Haiku | Culture | attention | +| 1 | Ada Lovelace | People | depth | +| 2 | Jazz | Culture | attention | +| 2 | Marie Curie | People | reach | +| 3 | Mona Lisa | Culture | reach | +| 3 | Frida Kahlo | People | attention | +| 3 | Chess | Culture | depth | +| 4 | Leonardo da Vinci | People | reach | +| 4 | The Beatles | Culture | attention | +| 5 | William Shakespeare | People | depth | +| 5 | Olympic Games | Culture | reach | +| 6 | Wolfgang Amadeus Mozart | People | depth | + +**D. Pioneers: People (local) + Space (translated)** +| Cost | Card | Faction | Home | +|---|---|---|---| +| 1 | Sputnik 1 | Space | reach | +| 1 | Nikola Tesla | People | attention | +| 2 | Hubble Space Telescope | Space | depth | +| 2 | Isaac Newton | People | reach | +| 3 | Neil Armstrong | People | attention | +| 3 | Jupiter | Space | reach | +| 3 | Galileo Galilei | People | depth | +| 4 | Albert Einstein | People | attention | +| 4 | International Space Station | Space | depth | +| 5 | Apollo 11 | Space | attention | +| 5 | Charles Darwin | People | reach | +| 6 | Solar System | Space | depth | + +- **Coverage:** all 6 factions appear, and all 4 `shared/catalog.ts` cards are included (Moon, Periodic table, Octopus, Albert Einstein). +- **Tutorial:** Field Guide vs Stargazers, seed 1, against the easy bot. +- **sim-balance:** please run the 4 decks round robin first. The target is every pairing at 45–55%. If a pairing misses, retune by + swapping home stats within a deck, never by changing the curve. + --- ## 3. Board @@ -263,7 +358,7 @@ the last turn's, and every "at scoring" Portal resolves **before** Topics are ju | Line | Why it isn't dominant | |---|---| -| All-famous (all max-stat) deck | It becomes an all-cost-5/6 deck with dead early turns. Cheap cards are more efficient **per energy**, expensive cards **per card**. Only 9 cards are seen per match (3 + 6 draws), so both matter. The 1-energy carry-over lets a heavy deck bank energy for a turn-5 six-drop. **sim-balance target: heavy vs curve ≥ 40%.** | +| All-famous (all max-stat) deck | It becomes an all-cost-5/6 deck with dead early turns. Cheap cards are more efficient **per energy**, expensive cards **per card**. Only 9 cards are seen per match (3 + 6 draws), so both matter. An all-cost-5/6 deck is **weak by design**: it has four dead turns (sim-balance interim: 0–15%). There is no hard deck rule in v1; the deck builder warns when a deck has fewer than 4 cards of cost ≤ 2, and every starter deck is curve-shaped (§2.1). **sim-balance target: a **top-heavy curve** (half the deck at cost 4 or more) vs curve ≥ 40%.** `energyByTurn [2..7]` is a v1.1 candidate. | | All-cheap flood (cost 1–2) | Weak by design: only 9 slots and 9 cards seen. Critic's sim under these rules: swarm vs curve about 7–11%. Its home is Culture's wide-turn keyword (§10). | | All one faction | No v1 keyword scales with faction count. `factionSynergyCap` is reserved for modes. Culture, the largest pool, has the weakest keyword (viral). | | "Always play the highest-power card" | It ignores the on-topic bonus, lane capacity and the hidden Portals. Critic's sim: 18–21% against a smart bot (target < 55%). | @@ -295,7 +390,7 @@ The engine takes a `RulesConfig` object. Peer-hosted modes override it (§11). D "powerByCost": [0, 1, 2, 4, 6, 8, 10], "onTopicBonus": [0, 1, 1, 2, 2, 3, 3], "vanillaBonus": 1, "keywordsEnabled": ["viral","rising","local","encyclopedic","nostalgic","translated"], "ownedCards": true, - "trendUp": 25, "trendDown": -25, "trendMinDaily": 20, "uncheckedCostCap": 4, + "trendUp": 25, "trendDown": -200, "trendMinDaily": 20, "uncheckedCostCap": 4, "factionSynergyCap": 3, "verifyStats": true, "percentiles": "card-sample-2026-11-16", From b5c90d2dc1680f21ee5a9ce04cd1c05a84886bf4 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 04:22:10 +0000 Subject: [PATCH 2/5] Night 1: game engine core and ENGINE_API.md, DESIGN v1 (#25) Deterministic, off-chain rules engine in shared/game: createMatch, legalActions, applyAction, isOver, result, viewFor, serialisation, Ruleset as data. Co-Authored-By: Claude Opus 5.5 --- docs/game/ENGINE_API.md | 223 ++++++++++++++++++++ shared/game/engine.ts | 454 ++++++++++++++++++++++++++++++++++++++++ shared/game/index.ts | 10 + shared/game/keywords.ts | 95 +++++++++ shared/game/rng.ts | 56 +++++ shared/game/ruleset.ts | 127 +++++++++++ shared/game/starter.ts | 66 ++++++ shared/game/types.ts | 230 ++++++++++++++++++++ tests/game-core.test.ts | 212 +++++++++++++++++++ 9 files changed, 1473 insertions(+) create mode 100644 docs/game/ENGINE_API.md create mode 100644 shared/game/engine.ts create mode 100644 shared/game/index.ts create mode 100644 shared/game/keywords.ts create mode 100644 shared/game/rng.ts create mode 100644 shared/game/ruleset.ts create mode 100644 shared/game/starter.ts create mode 100644 shared/game/types.ts create mode 100644 tests/game-core.test.ts diff --git a/docs/game/ENGINE_API.md b/docs/game/ENGINE_API.md new file mode 100644 index 0000000..e4aedd7 --- /dev/null +++ b/docs/game/ENGINE_API.md @@ -0,0 +1,223 @@ +# WikiDeck game engine API (v1) + +**Owner:** engine-a (core and API) and engine-b (keywords, card derivation, tests). Issue: claude/wikideck#3. +**Rules:** `docs/game/DESIGN.md` v1 ("Edit War", as frozen in PR #17 @ cf2fceb). Where this file and DESIGN.md disagree, raise it on #3. +**Stability:** UI, simulation and modes build against this file. Any change to a name or shape below is +announced on #3 before it merges. + +The engine is a pure TypeScript library in `shared/game/`: +- It does no I/O and has no clocks: no `Date.now()`, no `Math.random()`. +- It imports nothing from `server/` or `src/`. +- It runs entirely **off-chain**. A match never reads, moves, locks or burns an NFT. +- It is deterministic: the same `(ruleset, decks, seed, actions)` always gives the same state, byte for byte. + +**Import only from `shared/game/index.ts`.** + +```ts +import { createMatch, legalActions, applyAction, isOver, result, viewFor, + serialize, deserialize, replay, DEFAULT_RULESET, parseRuleset, validateDeck, + starterDeck, previewPool, type MatchState, type Action, type GameCard } from '../shared/game/index.ts'; +``` + +## 1. Lifecycle + +```ts +let state = createMatch(DEFAULT_RULESET, [deck0, deck1], seed); // turn 1, planning +while (!isOver(state)) { + // Each seat (in any order, any interleaving) queues plays, then commits. + const actions = legalActions(state, seat); // play / undo / commit + state = applyAction(state, chosen); // returns a NEW state + // When both seats have committed, the turn resolves inside applyAction. +} +const r = result(state); // { winner: 0 | 1 | null, reason, topicsLed, lanePower, totalPower, turns } +``` + +| Function | Description | +|---|---| +| `createMatch(ruleset, [deck0, deck1], seed: number \| string): MatchState` | Validates the ruleset (`parseRuleset`) and both decks (`validateDeck`), then performs DESIGN §4 setup and turn-1 start. A `seed` is a uint32. A string is hashed with FNV-1a (`seedFromString`). Throws `ZodError` for a bad ruleset and `IllegalActionError` for a bad deck. | +| `legalActions(state, seat): Action[]` | Lists every `play` (each card × each lane it can legally go into), every `undo`, and `commit`. Returns `[]` once the seat has committed or the match is over. It never lists `concede` (always legal while the match is running) or `timeout` (host only). | +| `applyAction(state, action): MatchState` | Pure: the input is never mutated. Throws `IllegalActionError` if the action is illegal. | +| `actionProblem(state, action): string \| null` | Explains why an action is illegal, without throwing. Use it for UI hints and for validating client input on a host. | +| `isOver(state)` / `result(state)` | `result` is `null` while the match is running. | +| `viewFor(state, seat): PlayerView` | The **hidden-information view**. Send only this to clients and AIs, never `MatchState`, because a `MatchState` contains both deck orders and the RNG state. | +| `serialize(state): string` / `deserialize(json): MatchState` | Lossless JSON. `MatchState` is plain data. | +| `replay(ruleset, decks, seed, actions): MatchState` | Rebuilds a match from its inputs. `state.actions` records every action applied, so a host can store `(ruleset, decks, seed, actions)` and verify a result later. | +| `validateDeck(ruleset, cards): string[]` | Returns the list of problems; empty means the deck is legal. | +| `cardPower(state, cardInPlay)`, `lanePower(state, lane)`, `laneLeader(state, lane)`, `topicsLed(state)` | Power queries (DESIGN §6). `laneLeader` and `topicsLed` apply the consensus tie-break. | +| `scoringPower(state, lane)` | Lane power plus revealed "at scoring" Portals (§7). `result().lanePower` uses this. | +| `laneCapacity(state, lane)` | Per-seat capacity of a lane. A Portal such as Stub may override it. | +| `isOnTopic(state, cardInPlay)` | §1.4/§6 on-topic test, including Disambiguation. | +| `starterDeck(seed): GameCard[]` | A 12-card loaner deck (DESIGN §2). **Placeholder** cards until starter-cards.json lands. | +| `previewPool(): GameCard[]` | Every loaner card once. For draft modes. | +| `placeCard(state, seat, lane, card)`, `revealPortal(state, lane)` | Test helpers for building boards by hand. | + +## 2. Actions + +```ts +type Action = + | { type: 'play'; player: 0 | 1; cardId: string; lane: number } // queue a card from hand (hidden) + | { type: 'undo'; player: 0 | 1; cardId: string } // un-queue it (refunds energy) + | { type: 'commit'; player: 0 | 1 } // lock in this turn (empty = pass) + | { type: 'timeout'; player: 0 | 1 } // HOST ONLY: turn timer expired + | { type: 'concede'; player: 0 | 1 }; +``` + +**Queuing a play** +- `play` reserves the card's cost from this turn's energy. It checks the energy, the lane's room (cards already in the lane plus queued plays must stay under `laneCapacity(state, lane)`), and, once the Portal is revealed, whether it accepts the card (`canPlay`). +- Your plays reveal in **your queue order**, interleaved with the opponent's (see below). +- `undo` and new plays are allowed until the seat sends `commit`. + +**Resolving a turn** +- When both seats have committed, `applyAction` resolves the turn (DESIGN §5.4–5.5): + 1. Carry is set: min(`energyCarryMax`, energy not reserved by queued plays). Energy spent on a play that later fizzles is still spent. + 2. **Interleaved reveal:** the initiative seat's 1st play, then the other seat's 1st, then the initiative seat's 2nd, and so on. When one seat runs out, the other's remaining plays reveal in order. Each card gets the next global `seq` number, and its on-reveal effects (keyword, then Portal) run at once. + 3. End-of-turn effects run: the initiative seat's cards first, then lanes left→right, then `seq` order. + 4. On the last turn, scoring follows (§7). Otherwise the next turn starts: + - initiative **alternates** + - any Portal scheduled by `portalReveal` is revealed + - energy = `energyByTurn[t-1]` + carry + `bonusEnergy` + - each seat draws + - the underdog bonus applies (only if `underdog` is on) +- **A play that is illegal at reveal** (the lane filled up, or a Portal rejects the card) fizzles. The card stays in hand and its energy is lost. A `fizzle` log event records it. + +**Timeouts.** `timeout` is how a host enforces `turnSeconds`. It commits whatever is queued. A timeout with an empty queue counts toward `afkTurns`. When that count is reached, the seat concedes and the result has `reason: 'afk'`. An ordinary `commit` resets the count. + +**Seat ownership.** The engine does not authenticate anyone. The host must check that the seat in `action.player` is the caller's. + +## 3. Cards + +```ts +interface GameCard { + cardId: string; // unique within a deck: the NFT card hash, or `loaner::` + pageId: number | null; // at most maxCopiesPerPage cards share a pageId; null (unpinned loaners) → counted per cardId + title: string; + faction: 'Space' | 'Nature' | 'People' | 'Science' | 'History' | 'Culture'; + rarity: 'Common' | 'Rare' | 'Epic' | 'Legendary'; // cosmetic in v1 + cost: number; // 0–6 (uncheckedCostCap already applied by derivation) + power: number; // 0–30, base power + home: 'attention' | 'depth' | 'reach'; + trend: -1 | 0 | 1; // frozen at match start + keyword: string | null; // an id in KEYWORDS + source: 'owned' | 'loaner'; + check?: 'verified' | 'unverified' | 'unchecked' | 'loaner'; // host plausibility result (§1.10), for logs +} +``` + +- **The engine takes already-derived cards and never reads raw stats.** The council asked for this, because snapshot stats are self-reported (#1, critic brief A.1). +- Derivation (DESIGN §1 and §10.1: percentile → fame → cost → power, home, trend, keyword and vanillaBonus) lives in `shared/game/derive.ts`, which engine-b owns. Hosts run it on host-frozen, plausibility-checked inputs before calling `createMatch`. +- Modes may adjust `GameCard` fields such as `power` before `createMatch`. The engine does not re-derive them. +- A keyword that isn't in `ruleset.keywordsEnabled` never runs. Derivation is responsible for not giving that card `vanillaBonus`. +- Lane power = `power` + `bonus` + `trend` + `onTopicBonus[cost]` if on-topic + ongoing keyword and Portal effects, floored at 0. + +## 4. Ruleset + +`Ruleset` holds the DESIGN §9 keys, **flat** (nothing deeper than one level, apart from `topicPool` entries and the param tables). +- `parseRuleset(unknown)` is a **strict** zod parse: unknown keys are rejected and every number is bounded, so any ruleset that passes terminates within `turns` turns. +- Modes merge overrides onto `DEFAULT_RULESET` and then call `parseRuleset`. + +Notes on the §9 keys: +- `topicPool` is inline `TopicDef[] = { id, name, stat, portal: PortalId | null }[]`. `DEFAULT_TOPIC_POOL` is the 9 Topics of §10.3. A Portal id is one of `PORTAL_IDS` (`main-page, trending, featured-article, stub, interwiki, disambiguation`). +- `keywordParams[keywordId]` holds keyword numbers; keys must be in `KEYWORD_IDS`. `portalParams[topicId]` holds Portal numbers, and falls back to `portalParams[portalId]`, so a mode can add a Topic that reuses a Portal kind with new numbers. +- `keywordsEnabled` ⊆ `KEYWORD_IDS` (the 6 v1 ids plus `edition`, `obscure` and `wildcard`). +- `mulligan` must be `false`. Mulligans are not implemented in v1. +- `percentiles`, `starterDecks`, `trendUp/Down`, `trendMinDaily`, `uncheckedCostCap`, `vanillaBonus`, `costThresholds`, `powerByCost`, `verifyStats` and `factionSynergyCap` are for derivation and the host. The core loop doesn't read them. + +Validation also enforces: +- `turns × turnSeconds ≤ 240` +- `energyByTurn.length ≥ turns` +- `portalReveal.length = topicCount` +- `openingHand ≤ handLimit` +- `costThresholds` in ascending order +- with `distinctStats`, `topicCount == 3` and the pool has all 3 stats +- the ranges in DESIGN §11 are **stricter** and are enforced by modes (`shared/game/modes.ts`). The engine's bounds only guarantee safety and termination. + +## 5. Determinism and the RNG + +- The RNG is **mulberry32(seed: uint32)**, as in DESIGN §4. Its state is a single uint32 in `state.rng`. +- Draw order: + 1. p0's deck is shuffled. + 2. p1's deck is shuffled. + 3. **The Topics are drawn.** With `distinctStats`: for each stat in the order `attention, depth, reach`, take `group[floor(next() × group.length)]`, where `group` is that stat's Topics in `topicPool` order. Then the picks are shuffled, and that is the lane order. Without `distinctStats`: the whole pool is shuffled and the first `topicCount` are taken. + 4. The initiative coin is flipped: p0 has initiative on turn 1 (and every odd turn) if `next() < 0.5`; otherwise p1 does. After that, initiative strictly alternates. + 5. Keyword and Portal hooks draw in resolution order. +- Shuffles are Fisher–Yates with `i` from n−1 down to 1 and `j = floor(next() × (i+1))`. +- `ongoing` power hooks get a throwaway RNG copy, so computing power never changes the match RNG. + +## 6. State and views + +The full `MatchState` (plain JSON) is for the **host only**: + +```ts +interface MatchState { + schema: 'wikideck-match/1'; engineVersion: number; ruleset: Ruleset; seed: number; rng: number; + turn: number /* 1-based */; phase: 'planning' | 'over'; initiative: 0 | 1; + players: [PlayerState, PlayerState]; // deck, hand, energy, queue, committed, afk + lanes: { topic: TopicDef; portalRevealed: boolean; cards: [CardInPlay[], CardInPlay[]] }[]; + revealSeq: number; log: LogEvent[]; actions: Action[]; result: MatchResult | null; +} +interface PlayerState { deck; hand; energy; queue: { cardId; lane }[]; committed; afk; carry } +interface CardInPlay { card: GameCard; owner: 0 | 1; lane: number; turn: number; seq: number; bonus: number } +``` + +`PlayerView`, returned by `viewFor(state, seat)`, is what a seat may see. In it, "you" is always index 0 and the opponent is index 1: + +```ts +interface PlayerView { + you: 0 | 1; ruleset; turn; phase; initiative; + energy: number; energyLeft: number; hand: GameCard[]; queue: { cardId; lane }[]; committed; deckCount; + opponent: { handCount; deckCount; queuedCount; committed }; // never their cards or queue + lanes: { topic: TopicDef /* stat always; id/name/portal masked until portalRevealed */, portalRevealed, cards: [mine, theirs], + cardPower: [number[], number[]], power: [mine, theirs], leader: 'you' | 'opponent' | null }[]; + result: MatchResult | null; +} +``` + +`state.log` is an append-only event list for animation and replays. Event types: `turnStart`, `portalRevealed`, `underdog`, `draw`, `reveal`, `fizzle`, `effect`, `concede` and `matchOver`. It contains both seats' draws, so a host must filter it per seat before sending it. + +## 7. Results + +```ts +interface MatchResult { + winner: 0 | 1 | null; // null = draw + reason: 'topics' | 'totalPower' | 'draw' | 'concede' | 'afk'; + topicsLed: [number, number]; lanePower: [number, number][]; totalPower: [number, number]; turns: number; +} +``` + +Scoring runs after the last turn's End phase. Lane powers include revealed "at scoring" Portals, and each lane's leader uses the consensus tie-break (§6). Winner, per DESIGN §7: +1. The seat that leads more Topics. +2. If tied on Topics, the seat with more total power. +3. If that is also tied, a draw. + +## 8. Keywords and Portals (extension contract) + +`KEYWORDS` and `PORTALS` in `shared/game/keywords.ts` (engine-b) are registries of hook objects. The header of that file is normative. Every hook gets `ctx = { state, rng, params, lane, log, power(card) }`. + +**Keywords** +- `onReveal(ctx, self)` and `endOfTurn(ctx, self)` may change `bonus` on cards in `ctx.state`. +- `ongoing(ctx, self, target) → number` must be **pure**, and must not call `ctx.power`. +- Keyword hooks run only if the keyword is in `keywordsEnabled`. + +**Portals** have the same hooks, plus: +- `onPortalReveal(ctx)` +- `canPlay(ctx, card, seat) → boolean`, checked when a play is queued and again at reveal +- `capacity(ctx) → number` +- `allOnTopic: true` +- `atScoring(ctx) → [delta0, delta1]` + +Portal hooks act only once the Portal is revealed. + +**Rules for all hooks** +- Hooks must not move or remove cards (DESIGN §10). +- Any randomness must come from `ctx.rng`. No v1 keyword uses it. + +## 9. Testing + +- `tests/game-core.test.ts` (engine-a) covers the core loop: + - the RNG reference value, ruleset bounds and setup + - hidden information and hidden Portals + - energy carry, interleaved reveal and alternating initiative + - on-topic power, the consensus tie-break, and Portal capacity, fizzle and at-scoring hooks + - disabled keywords, AFK and concede, and draws + - the random-play property: matches terminate, replay exactly, and serialise after every action +- `tests/game-*.test.ts` (engine-b): keywords, card derivation, property tests and the DESIGN §12 golden match. diff --git a/shared/game/engine.ts b/shared/game/engine.ts new file mode 100644 index 0000000..67d8616 --- /dev/null +++ b/shared/game/engine.ts @@ -0,0 +1,454 @@ +/** + * WikiDeck game engine core ("Edit War", docs/game/DESIGN.md): pure, + * deterministic, off-chain. Exported functions never mutate their inputs. + * All randomness comes from the match seed via state.rng (mulberry32, §4). + * Contract: docs/game/ENGINE_API.md. + */ +import { KEYWORDS, KEYWORD_IDS, activePortal, isOnTopic, type EffectContext, type KeywordDef, type PortalDef } from './keywords.ts'; +import { Rng, normalizeSeed } from './rng.ts'; +import { parseRuleset } from './ruleset.ts'; +import { + IllegalActionError, PLAYERS, STATS, + type Action, type CardInPlay, type GameCard, type MatchResult, type MatchState, + type PlayerId, type PlayerState, type PlayerView, type Ruleset, type TopicDef, +} from './types.ts'; + +export const ENGINE_VERSION = 1; + +export const other = (player: PlayerId): PlayerId => (player === 0 ? 1 : 0); +const clone = (value: T): T => structuredClone(value); +const RARITIES = new Set(['Common', 'Rare', 'Epic', 'Legendary']); +const FACTION_SET = new Set(['Space', 'Nature', 'People', 'Science', 'History', 'Culture']); +const CHECKS = new Set(['verified', 'unverified', 'unchecked', 'loaner']); + +// ---------- validation ---------- + +/** Problems with a deck under `rules` (empty = legal). DESIGN §2. */ +export function validateDeck(rules: Ruleset, deck: readonly GameCard[]): string[] { + const problems: string[] = []; + if (!Array.isArray(deck)) return ['Deck must be an array']; + if (deck.length !== rules.deckSize) problems.push(`Deck must have exactly ${rules.deckSize} cards (has ${deck.length})`); + const ids = new Set(); + const copies = new Map(); + let loaners = 0; + for (const card of deck) { + if (typeof card?.cardId !== 'string' || !card.cardId || card.cardId.length > 128) { problems.push('cardId must be a non-empty string'); continue; } + const label = card.cardId; + if (ids.has(card.cardId)) problems.push(`Duplicate cardId ${label}`); + ids.add(card.cardId); + if (card.pageId !== null && !Number.isInteger(card.pageId)) problems.push(`${label}: bad pageId`); + if (card.pageId === null && card.source !== 'loaner') problems.push(`${label}: owned cards need a pageId`); + if (typeof card.title !== 'string' || card.title.length > 256) problems.push(`${label}: bad title`); + if (!FACTION_SET.has(card.faction)) problems.push(`${label}: bad faction`); + if (!RARITIES.has(card.rarity)) problems.push(`${label}: bad rarity`); + if (!Number.isInteger(card.cost) || card.cost < 0 || card.cost > 6) problems.push(`${label}: cost must be 0–6`); + if (!Number.isInteger(card.power) || card.power < 0 || card.power > 30) problems.push(`${label}: power must be 0–30`); + if (!STATS.includes(card.home)) problems.push(`${label}: bad home stat`); + if (card.trend !== -1 && card.trend !== 0 && card.trend !== 1) problems.push(`${label}: trend must be -1, 0 or 1`); + if (card.keyword !== null && !(KEYWORD_IDS as readonly string[]).includes(card.keyword)) problems.push(`${label}: unknown keyword ${card.keyword}`); + if (card.source !== 'owned' && card.source !== 'loaner') problems.push(`${label}: bad source`); + if (card.check !== undefined && !CHECKS.has(card.check)) problems.push(`${label}: bad check`); + if (card.source === 'loaner') loaners++; + if (card.source === 'owned' && !rules.ownedCards) problems.push(`${label}: owned cards are not allowed in this mode`); + // §2 / §2.1: owned and loaner copies count together by pageId; unpinned loaners (pageId null) by cardId. + const key = card.pageId !== null ? `page:${card.pageId}` : `card:${card.cardId}`; + const n = (copies.get(key) ?? 0) + 1; + copies.set(key, n); + if (n === rules.maxCopiesPerPage + 1) problems.push(`More than ${rules.maxCopiesPerPage} copies of ${card.pageId !== null ? `page ${card.pageId}` : card.cardId}`); + } + if (loaners > rules.maxLoaners) problems.push(`At most ${rules.maxLoaners} loaner cards`); + return problems; +} + +// ---------- match setup (§4) ---------- + +/** + * Draw the match's Topics (§4.2.3). distinctStats: for each stat in STATS order + * (attention, depth, reach) pick one Topic of that stat with rng.int(groupSize), + * then Fisher–Yates the picks, then keep the first topicCount. Otherwise + * Fisher–Yates the whole pool and keep the first topicCount. + */ +function drawTopics(rules: Ruleset, rng: Rng): TopicDef[] { + if (!rules.distinctStats) return rng.shuffle(rules.topicPool).slice(0, rules.topicCount); + const picked: TopicDef[] = []; + for (const stat of STATS) { + const group = rules.topicPool.filter(topic => topic.stat === stat); + if (group.length) picked.push(group[rng.int(group.length)]); + } + return rng.shuffle(picked).slice(0, rules.topicCount); +} + +/** + * Start a match. `decks[0]` belongs to seat 0. Seed is a uint32 (or a string, + * hashed with FNV-1a). Throws ZodError for a bad ruleset, IllegalActionError for a bad deck. + */ +export function createMatch(ruleset: Ruleset, decks: readonly [readonly GameCard[], readonly GameCard[]], seed: number | string): MatchState { + const rules = parseRuleset(clone(ruleset)); + const seedValue = normalizeSeed(seed); + for (const player of PLAYERS) { + const problems = validateDeck(rules, decks?.[player] as GameCard[]); + if (problems.length) throw new IllegalActionError(`Seat ${player} deck: ${problems.join('; ')}`); + } + const rng = new Rng(seedValue); + const newPlayer = (player: PlayerId): PlayerState => ({ + deck: rng.shuffle(clone(decks[player])), hand: [], energy: 0, queue: [], committed: false, afk: 0, carry: 0, + }); + const p0 = newPlayer(0); + const p1 = newPlayer(1); + const topics = drawTopics(rules, rng); + const initiative: PlayerId = rng.next() < 0.5 ? 0 : 1; + const state: MatchState = { + schema: 'wikideck-match/1', engineVersion: ENGINE_VERSION, ruleset: rules, seed: seedValue, rng: rng.state, + turn: 0, phase: 'planning', initiative, revealSeq: 0, players: [p0, p1], + lanes: topics.map(topic => ({ topic: clone(topic), portalRevealed: false, cards: [[], []] as [CardInPlay[], CardInPlay[]] })), + log: [], actions: [], result: null, + }; + for (const player of PLAYERS) for (let i = 0; i < rules.openingHand; i++) draw(state, player); + startTurn(state, rng); + state.rng = rng.state; + return state; +} + +function draw(state: MatchState, player: PlayerId): void { + const p = state.players[player]; + if (!p.deck.length || p.hand.length >= state.ruleset.handLimit) return; + const card = p.deck.shift()!; + p.hand.push(card); + state.log.push({ t: 'draw', player, cardId: card.cardId }); +} + +function context(state: MatchState, rng: Rng, params: Record | undefined, lane: number, source: string, player: PlayerId): EffectContext { + return { + state, rng, params: params ?? {}, lane, + log: text => state.log.push({ t: 'effect', source, player, text }), + power: card => cardPower(state, card), + }; +} + +/** Enabled keyword definition for a card, if any. */ +function keywordOf(state: MatchState, card: GameCard): KeywordDef | undefined { + return card.keyword && state.ruleset.keywordsEnabled.includes(card.keyword) ? KEYWORDS[card.keyword] : undefined; +} + +function keywordCtx(state: MatchState, rng: Rng, keyword: KeywordDef, card: CardInPlay): EffectContext { + return context(state, rng, state.ruleset.keywordParams[keyword.id], card.lane, keyword.id, card.owner); +} + +function portalCtx(state: MatchState, rng: Rng, lane: number, portal: PortalDef, player: PlayerId): EffectContext { + const topic = state.lanes[lane].topic; + const params = state.ruleset.portalParams[topic.id] ?? state.ruleset.portalParams[portal.id]; + return context(state, rng, params, lane, portal.id, player); +} + +/** Per-seat card capacity of a lane (a Portal may override it, e.g. Stub). */ +export function laneCapacity(state: MatchState, lane: number): number { + const portal = activePortal(state, lane); + return portal?.capacity ? portal.capacity(portalCtx(state, new Rng(state.rng), lane, portal, state.initiative)) : state.ruleset.laneCapacity; +} + +/** §5.1 Start (Portal reveal, energy, draw), then §5.2 Underdog. Initiative alternates (§5.5). */ +function startTurn(state: MatchState, rng: Rng): void { + state.turn += 1; + if (state.turn > 1) state.initiative = other(state.initiative); + const rules = state.ruleset; + state.lanes.forEach((lane, index) => { + if (lane.portalRevealed || (rules.portalReveal[index] ?? 1) > state.turn) return; + lane.portalRevealed = true; + state.log.push({ t: 'portalRevealed', lane: index, topic: clone(lane.topic) }); + const portal = activePortal(state, index); + portal?.onPortalReveal?.(portalCtx(state, rng, index, portal, state.initiative)); + }); + const base = (rules.energyByTurn[state.turn - 1] ?? rules.energyByTurn.at(-1)!) + rules.bonusEnergy; + for (const player of PLAYERS) { + const p = state.players[player]; + Object.assign(p, { energy: base + p.carry, queue: [], committed: false }); + } + for (const player of PLAYERS) draw(state, player); + if (rules.underdog && state.turn >= 2) { + const led = topicsLed(state); + for (const player of PLAYERS) if (led[player] === 0 && led[other(player)] >= 2) { + state.players[player].energy += 1; + state.log.push({ t: 'underdog', player }); + } + } + state.log.push({ t: 'turnStart', turn: state.turn, energy: [state.players[0].energy, state.players[1].energy], initiative: state.initiative }); +} + +// ---------- power (§6) ---------- + +/** A card's current lane power (§6, never below 0). */ +export function cardPower(state: MatchState, target: CardInPlay): number { + const rules = state.ruleset; + const scratch = new Rng(state.rng); // ongoing effects must not consume real randomness + let power = target.card.power + target.bonus + target.card.trend; + if (isOnTopic(state, target)) power += rules.onTopicBonus[target.card.cost] ?? 0; + for (const lane of state.lanes) for (const side of lane.cards) for (const source of side) { + const keyword = keywordOf(state, source.card); + if (keyword?.ongoing) power += keyword.ongoing(keywordCtx(state, scratch, keyword, source), source, target); + } + const portal = activePortal(state, target.lane); + if (portal?.ongoing) power += portal.ongoing(portalCtx(state, scratch, target.lane, portal, target.owner), target); + return Math.max(0, power); +} + +/** [seat 0 power, seat 1 power] in one lane (during play; excludes "at scoring" Portals). */ +export function lanePower(state: MatchState, lane: number): [number, number] { + return PLAYERS.map(player => state.lanes[lane].cards[player].reduce((sum, card) => sum + cardPower(state, card), 0)) as [number, number]; +} + +/** §6: who leads a lane given its powers. Equal and > 0 → more on-topic cards leads (consensus). */ +export function laneLeader(state: MatchState, lane: number, power: [number, number] = lanePower(state, lane)): PlayerId | null { + const [a, b] = power; + if (a !== b) return a > b ? 0 : 1; + if (a === 0) return null; + const onTopic = PLAYERS.map(player => state.lanes[lane].cards[player].filter(card => isOnTopic(state, card)).length); + return onTopic[0] === onTopic[1] ? null : onTopic[0] > onTopic[1] ? 0 : 1; +} + +/** Number of Topics each seat leads right now (with the consensus tie-break). */ +export function topicsLed(state: MatchState): [number, number] { + const led: [number, number] = [0, 0]; + state.lanes.forEach((_, lane) => { + const leader = laneLeader(state, lane); + if (leader !== null) led[leader]++; + }); + return led; +} + +/** Final lane powers: lanePower plus revealed "at scoring" Portals (§7, §10.3). */ +export function scoringPower(state: MatchState, lane: number): [number, number] { + const power = lanePower(state, lane); + const portal = activePortal(state, lane); + if (!portal?.atScoring) return power; + const [d0, d1] = portal.atScoring(portalCtx(state, new Rng(state.rng), lane, portal, state.initiative)); + return [power[0] + d0, power[1] + d1]; +} + +// ---------- actions (§5.3) ---------- + +const queuedCost = (p: PlayerState) => p.queue.reduce((sum, play) => sum + (p.hand.find(c => c.cardId === play.cardId)?.cost ?? 0), 0); +const queuedInLane = (p: PlayerState, lane: number) => p.queue.filter(play => play.lane === lane).length; + +function laneRejects(state: MatchState, lane: number, card: GameCard, player: PlayerId): string | null { + const portal = activePortal(state, lane); + if (!portal?.canPlay) return null; + return portal.canPlay(portalCtx(state, new Rng(state.rng), lane, portal, player), card, player) ? null : `${portal.name} rejects this card`; +} + +function playProblem(state: MatchState, action: Extract): string | null { + const p = state.players[action.player]; + if (p.committed) return 'Already committed this turn'; + const card = p.hand.find(c => c.cardId === action.cardId); + if (!card) return 'Card is not in your hand'; + if (p.queue.some(play => play.cardId === action.cardId)) return 'Card is already queued'; + if (!Number.isInteger(action.lane) || action.lane < 0 || action.lane >= state.lanes.length) return 'No such Topic'; + if (card.cost > p.energy - queuedCost(p)) return 'Not enough energy'; + if (state.lanes[action.lane].cards[action.player].length + queuedInLane(p, action.lane) >= laneCapacity(state, action.lane)) return 'Topic is full'; + return laneRejects(state, action.lane, card, action.player); +} + +/** Why `action` is illegal in `state`, or null if it is legal. */ +export function actionProblem(state: MatchState, action: Action): string | null { + if (state.phase === 'over') return 'Match is over'; + if (!action || (action.player !== 0 && action.player !== 1)) return 'Unknown player'; + const p = state.players[action.player]; + switch (action.type) { + case 'play': return playProblem(state, action); + case 'undo': + if (p.committed) return 'Already committed this turn'; + return p.queue.some(play => play.cardId === action.cardId) ? null : 'Card is not queued'; + case 'commit': + case 'timeout': + return p.committed ? 'Already committed this turn' : null; + case 'concede': return null; + default: return 'Unknown action'; + } +} + +/** + * Legal actions for `player`: every `play`, every `undo`, and `commit`. + * `concede` (always legal while running) and `timeout` (host-only) are not listed. + * Empty once the player has committed or the match is over. + */ +export function legalActions(state: MatchState, player: PlayerId): Action[] { + if (state.phase === 'over') return []; + const p = state.players[player]; + if (p.committed) return []; + const actions: Action[] = []; + for (const card of p.hand) { + if (p.queue.some(play => play.cardId === card.cardId)) continue; + for (let lane = 0; lane < state.lanes.length; lane++) { + const action: Action = { type: 'play', player, cardId: card.cardId, lane }; + if (!playProblem(state, action)) actions.push(action); + } + } + for (const play of p.queue) actions.push({ type: 'undo', player, cardId: play.cardId }); + actions.push({ type: 'commit', player }); + return actions; +} + +/** Apply one action and return the new state. Throws IllegalActionError if illegal. */ +export function applyAction(state: MatchState, action: Action): MatchState { + const problem = actionProblem(state, action); + if (problem) throw new IllegalActionError(problem); + const next = clone(state); + next.actions.push(clone(action)); + const p = next.players[action.player]; + const rng = new Rng(next.rng); + switch (action.type) { + case 'play': p.queue.push({ cardId: action.cardId, lane: action.lane }); break; + case 'undo': p.queue.splice(p.queue.findIndex(play => play.cardId === action.cardId), 1); break; + case 'commit': p.committed = true; p.afk = 0; break; + case 'timeout': + p.committed = true; + p.afk = p.queue.length ? 0 : p.afk + 1; + if (p.afk >= next.ruleset.afkTurns) { + next.log.push({ t: 'concede', player: action.player, afk: true }); + finish(next, other(action.player), 'afk'); + } + break; + case 'concede': + next.log.push({ t: 'concede', player: action.player, afk: false }); + finish(next, other(action.player), 'concede'); + break; + } + if (next.phase !== 'over' && next.players.every(player => player.committed)) resolveTurn(next, rng); + next.rng = rng.state; + return next; +} + +/** §5.4 Reveal (interleaved) and §5.5 End. */ +function resolveTurn(state: MatchState, rng: Rng): void { + const rules = state.ruleset; + const order: PlayerId[] = [state.initiative, other(state.initiative)]; + // Carry (§5.1): energy not reserved by a queued play. Fizzled plays still spent theirs. + for (const player of PLAYERS) { + const p = state.players[player]; + p.carry = Math.min(rules.energyCarryMax, Math.max(0, p.energy - queuedCost(p))); + } + const queues = order.map(player => state.players[player].queue.slice()); + for (let i = 0; i < Math.max(queues[0].length, queues[1].length); i++) { + for (const [k, player] of order.entries()) { + const play = queues[k][i]; + if (play) reveal(state, rng, player, play.cardId, play.lane); + } + } + for (const player of PLAYERS) state.players[player].queue = []; + for (const player of order) for (const lane of state.lanes) { + for (const card of lane.cards[player].slice().sort((x, y) => x.seq - y.seq)) { + const keyword = keywordOf(state, card.card); + keyword?.endOfTurn?.(keywordCtx(state, rng, keyword, card), card); + } + } + if (state.turn >= rules.turns) finish(state, null, 'topics'); + else startTurn(state, rng); +} + +function reveal(state: MatchState, rng: Rng, player: PlayerId, cardId: string, lane: number): void { + const p = state.players[player]; + const index = p.hand.findIndex(c => c.cardId === cardId); + const card = p.hand[index]; + if (index < 0 || state.lanes[lane].cards[player].length >= laneCapacity(state, lane) || laneRejects(state, lane, card, player)) { + state.log.push({ t: 'fizzle', player, cardId, lane }); // stays in hand, energy lost + return; + } + p.hand.splice(index, 1); + const inPlay: CardInPlay = { card, owner: player, lane, turn: state.turn, seq: ++state.revealSeq, bonus: 0 }; + state.lanes[lane].cards[player].push(inPlay); + state.log.push({ t: 'reveal', player, cardId, lane }); + const keyword = keywordOf(state, card); + keyword?.onReveal?.(keywordCtx(state, rng, keyword, inPlay), inPlay); + const portal = activePortal(state, lane); + portal?.onReveal?.(portalCtx(state, rng, lane, portal, player), inPlay); +} + +/** §7 scoring (after the last End phase, with "at scoring" Portals), or a concede. */ +function finish(state: MatchState, forcedWinner: PlayerId | null, reason: 'topics' | 'concede' | 'afk'): void { + const lanePowers = state.lanes.map((_, lane) => scoringPower(state, lane)); + const led: [number, number] = [0, 0]; + const totalPower: [number, number] = [0, 0]; + lanePowers.forEach((power, lane) => { + const leader = laneLeader(state, lane, power); + if (leader !== null) led[leader]++; + totalPower[0] += power[0]; totalPower[1] += power[1]; + }); + let winner: PlayerId | null = forcedWinner; + let why: MatchResult['reason'] = reason; + if (reason === 'topics') { + if (led[0] !== led[1]) winner = led[0] > led[1] ? 0 : 1; + else if (totalPower[0] !== totalPower[1]) { winner = totalPower[0] > totalPower[1] ? 0 : 1; why = 'totalPower'; } + else why = 'draw'; + } + state.result = { winner, reason: why, topicsLed: led, lanePower: lanePowers, totalPower, turns: state.turn }; + state.phase = 'over'; + state.log.push({ t: 'matchOver', result: clone(state.result) }); +} + +// ---------- queries ---------- + +export function isOver(state: MatchState): boolean { return state.phase === 'over'; } + +/** The final result, or null while the match is running. */ +export function result(state: MatchState): MatchResult | null { return state.result; } + +/** Hidden-information view for one seat. Send only this to clients and AIs. */ +export function viewFor(state: MatchState, you: PlayerId): PlayerView { + const them = other(you); + const me = state.players[you], opp = state.players[them]; + return clone({ + you, ruleset: state.ruleset, turn: state.turn, phase: state.phase, initiative: state.initiative, + energy: me.energy, energyLeft: me.energy - queuedCost(me), hand: me.hand, queue: me.queue, + committed: me.committed, deckCount: me.deck.length, + opponent: { handCount: opp.hand.length - opp.queue.length, deckCount: opp.deck.length, queuedCount: opp.queue.length, committed: opp.committed }, + lanes: state.lanes.map((lane, index) => { + const power = lanePower(state, index); + const mine = power[you], theirs = power[them]; + const leader = laneLeader(state, index, power); + return { + // Until its Portal is revealed only the stat is visible (the id/name would give the Portal away). + topic: lane.portalRevealed ? lane.topic : { id: `lane-${index + 1}`, name: '?', stat: lane.topic.stat, portal: null }, + portalRevealed: lane.portalRevealed, + cards: [lane.cards[you], lane.cards[them]] as [CardInPlay[], CardInPlay[]], + cardPower: [lane.cards[you].map(c => cardPower(state, c)), lane.cards[them].map(c => cardPower(state, c))] as [number[], number[]], + power: [mine, theirs] as [number, number], + leader: leader === null ? null : leader === you ? 'you' as const : 'opponent' as const, + }; + }), + result: state.result, + }); +} + +// ---------- serialisation, replay, test helpers ---------- + +export function serialize(state: MatchState): string { return JSON.stringify(state); } + +export function deserialize(json: string): MatchState { + const state = JSON.parse(json) as MatchState; + if (state?.schema !== 'wikideck-match/1') throw new Error('Not a wikideck-match/1 state'); + state.ruleset = parseRuleset(state.ruleset); + return state; +} + +/** Rebuild a match from its inputs; a host can verify a reported result this way. */ +export function replay(ruleset: Ruleset, decks: readonly [readonly GameCard[], readonly GameCard[]], seed: number | string, actions: readonly Action[]): MatchState { + let state = createMatch(ruleset, decks, seed); + for (const action of actions) state = applyAction(state, action); + return state; +} + +/** + * Test helper: put `card` straight into a lane (no on-reveal, no energy, no hand). + * Returns a new state. For unit-testing keywords against hand-built boards. + */ +export function placeCard(state: MatchState, player: PlayerId, lane: number, card: GameCard, bonus = 0): MatchState { + const next = clone(state); + next.lanes[lane].cards[player].push({ card: clone(card), owner: player, lane, turn: next.turn, seq: ++next.revealSeq, bonus }); + return next; +} + +/** Test helper: reveal a Topic's Portal now (runs nothing). */ +export function revealPortal(state: MatchState, lane: number): MatchState { + const next = clone(state); + next.lanes[lane].portalRevealed = true; + return next; +} diff --git a/shared/game/index.ts b/shared/game/index.ts new file mode 100644 index 0000000..14f7703 --- /dev/null +++ b/shared/game/index.ts @@ -0,0 +1,10 @@ +/** Public entry point of the WikiDeck game engine. Other teams import only from here. See docs/game/ENGINE_API.md. */ +export * from './types.ts'; +export { Rng, seedFromString, normalizeSeed, type RngState } from './rng.ts'; +export { DEFAULT_RULESET, DEFAULT_TOPIC_POOL, RulesetSchema, TopicSchema, parseRuleset } from './ruleset.ts'; +export { + ENGINE_VERSION, createMatch, legalActions, applyAction, actionProblem, isOver, result, viewFor, + serialize, deserialize, replay, validateDeck, cardPower, lanePower, laneLeader, laneCapacity, scoringPower, topicsLed, other, placeCard, revealPortal, +} from './engine.ts'; +export { KEYWORDS, PORTALS, KEYWORD_IDS, PORTAL_IDS, allies, activePortal, isOnTopic, type KeywordDef, type PortalDef, type EffectContext } from './keywords.ts'; +export { STARTER_POOL, loanerCard, previewPool, starterDeck } from './starter.ts'; diff --git a/shared/game/keywords.ts b/shared/game/keywords.ts new file mode 100644 index 0000000..ea3a621 --- /dev/null +++ b/shared/game/keywords.ts @@ -0,0 +1,95 @@ +/** + * Keyword and Portal registry (DESIGN §10.2, §10.3). Effects are code here; which + * ones a card/topic uses and their numbers are data (GameCard.keyword, + * TopicDef.portal, Ruleset.keywordsEnabled / keywordParams / portalParams). + * Owner of the effects: engine-b (claude/wikideck#3). engine-a owns the hook contract: + * + * - Hooks get an EffectContext over the engine's *working copy* of the state and may + * mutate it (e.g. `bonus` on cards). Safe: applyAction already cloned. + * Any randomness must come from ctx.rng (match RNG, resolution order, §4.2.5). + * - A keyword's hooks run only if its id is in ruleset.keywordsEnabled. + * - onReveal(ctx, self): right after `self` is pushed into its lane (§5.4). Cards revealed + * earlier (any seat, any turn) are on the board; later ones are not. self.seq is its global + * reveal number; cards revealed this turn have `turn === ctx.state.turn`. + * - endOfTurn(ctx, self): §5.5 order: initiative seat's cards first, then lanes 1→N, then seq. + * Also runs on the last turn, before scoring (§7). + * - ongoing(ctx, self, target) → delta: PURE. Called for every (self, target) pair in play, + * including self === target. ctx.rng is a throwaway copy. Don't call ctx.power on a card from + * inside ongoing (infinite recursion); read base fields instead. + * - Portals: same, plus onPortalReveal(ctx), canPlay(ctx, card, seat), capacity(ctx) → number + * (lane capacity override), allOnTopic (Disambiguation) and atScoring(ctx) → [delta0, delta1] + * (Topic power added at scoring, §7). All Portal hooks apply only once the Portal is revealed. + * Params: ruleset.portalParams[topic.id], falling back to portalParams[portal id]. + * - Hooks must not throw and must not move or remove cards (§10, v1). + */ +import type { Rng } from './rng.ts'; +import type { CardInPlay, GameCard, MatchState, PlayerId } from './types.ts'; + +/** The 9 implemented keyword ids (§10.2; edition, obscure and wildcard are disabled by default). */ +export const KEYWORD_IDS = ['viral', 'rising', 'local', 'encyclopedic', 'nostalgic', 'translated', 'edition', 'obscure', 'wildcard'] as const; +/** The 6 Portal kinds (§10.3), named after their default Topic. */ +export const PORTAL_IDS = ['main-page', 'trending', 'featured-article', 'stub', 'interwiki', 'disambiguation'] as const; + +export interface EffectContext { + state: MatchState; + rng: Rng; + /** Tunable numbers for this keyword/portal from the ruleset. */ + params: Record; + /** Lane the effect lives in. */ + lane: number; + /** Add a line to the match log (attributed to this keyword/portal). */ + log(text: string): void; + /** Current lane power of a card in play (the engine's cardPower). Not for use inside `ongoing`. */ + power(card: CardInPlay): number; +} + +export interface KeywordDef { + id: string; + name: string; + /** One short line of reminder text with {param} placeholders. */ + text: string; + onReveal?(ctx: EffectContext, self: CardInPlay): void; + endOfTurn?(ctx: EffectContext, self: CardInPlay): void; + ongoing?(ctx: EffectContext, self: CardInPlay, target: CardInPlay): number; +} + +export interface PortalDef { + id: string; + name: string; + text: string; + onPortalReveal?(ctx: EffectContext): void; + /** Runs when any card is revealed in this Topic (after the card's own onReveal). */ + onReveal?(ctx: EffectContext, card: CardInPlay): void; + ongoing?(ctx: EffectContext, target: CardInPlay): number; + /** Lets a Topic reject a card; checked when queuing and again at reveal. */ + canPlay?(ctx: EffectContext, card: GameCard, player: PlayerId): boolean; + /** Per-player lane capacity in this Topic (replaces ruleset.laneCapacity). */ + capacity?(ctx: EffectContext): number; + /** Every card here counts as on-topic. */ + allOnTopic?: boolean; + /** Topic power added to [seat 0, seat 1] here at scoring. */ + atScoring?(ctx: EffectContext): [number, number]; +} + +/** Cards on the same side of the same lane, excluding `self`. */ +export function allies(state: MatchState, self: CardInPlay): CardInPlay[] { + return state.lanes[self.lane].cards[self.owner].filter(card => card !== self); +} + +/** The lane's Portal, if it has one and it is revealed. */ +export function activePortal(state: MatchState, lane: number): PortalDef | undefined { + const l = state.lanes[lane]; + return l?.portalRevealed && l.topic.portal ? PORTALS[l.topic.portal] : undefined; +} + +/** §1.4/§6 on-topic: home stat matches the Topic's stat, or an active Disambiguation-style Portal. */ +export function isOnTopic(state: MatchState, card: CardInPlay): boolean { + const lane = state.lanes[card.lane]; + return lane.topic.stat === card.card.home || activePortal(state, card.lane)?.allOnTopic === true; +} + +/** Filled in by engine-b (§10.2). Ids must be in KEYWORD_IDS. */ +export const KEYWORDS: Record = {}; + +/** Filled in by engine-b (§10.3). Ids must be in PORTAL_IDS. */ +export const PORTALS: Record = {}; diff --git a/shared/game/rng.ts b/shared/game/rng.ts new file mode 100644 index 0000000..d680610 --- /dev/null +++ b/shared/game/rng.ts @@ -0,0 +1,56 @@ +/** + * Seeded, serialisable PRNG for the game engine (off-chain only). + * DESIGN.md §4: mulberry32(seed: uint32). The state is one uint32, so it + * round-trips through JSON and a match can be resumed or replayed exactly. + */ +export type RngState = number; + +/** Hash a string seed (e.g. a lobby id) to a uint32 with FNV-1a. */ +export function seedFromString(text: string): number { + let h = 0x811c9dc5; + for (let i = 0; i < text.length; i++) { + h ^= text.charCodeAt(i); + h = Math.imul(h, 0x01000193); + } + return h >>> 0; +} + +export function normalizeSeed(seed: number | string): number { + if (typeof seed === 'string') return seedFromString(seed); + if (!Number.isInteger(seed) || seed < 0 || seed > 0xffffffff) throw new RangeError('Seed must be a uint32 or a string'); + return seed >>> 0; +} + +/** Mutable wrapper over an RngState. The engine keeps `state` inside MatchState. */ +export class Rng { + state: RngState; + constructor(state: RngState) { this.state = state >>> 0; } + static fromSeed(seed: number | string): Rng { return new Rng(normalizeSeed(seed)); } + + /** mulberry32: float in [0, 1). */ + next(): number { + this.state = (this.state + 0x6d2b79f5) >>> 0; + let t = this.state; + t = Math.imul(t ^ (t >>> 15), t | 1); + t ^= t + Math.imul(t ^ (t >>> 7), t | 61); + return ((t ^ (t >>> 14)) >>> 0) / 4294967296; + } + /** Integer in [0, n): floor(next() × n), as DESIGN.md §4 specifies. */ + int(n: number): number { + if (!Number.isInteger(n) || n <= 0) throw new RangeError('Rng.int needs a positive integer bound'); + return Math.floor(this.next() * n); + } + pick(items: readonly T[]): T { + if (!items.length) throw new RangeError('Rng.pick on empty list'); + return items[this.int(items.length)]; + } + /** Fisher–Yates per DESIGN.md §4: i from n−1 down to 1, j = floor(next() × (i+1)). Returns a new array. */ + shuffle(items: readonly T[]): T[] { + const out = items.slice(); + for (let i = out.length - 1; i > 0; i--) { + const j = this.int(i + 1); + [out[i], out[j]] = [out[j], out[i]]; + } + return out; + } +} diff --git a/shared/game/ruleset.ts b/shared/game/ruleset.ts new file mode 100644 index 0000000..8297ead --- /dev/null +++ b/shared/game/ruleset.ts @@ -0,0 +1,127 @@ +/** + * Ruleset (DESIGN §9 RulesConfig): every rule number as data, so peer-hosted + * modes can vary them without running code. parseRuleset() is the only way + * untrusted JSON should become a Ruleset; its bounds keep matches short and + * guarantee termination. + */ +import { z } from 'zod'; +import { KEYWORD_IDS, PORTAL_IDS } from './keywords.ts'; +import { STATS, type Ruleset } from './types.ts'; + +const int = (min: number, max: number) => z.number().int().min(min).max(max); +const id = z.string().regex(/^[a-z0-9][a-z0-9-]{0,31}$/); +const params = z.record(z.string().regex(/^[A-Za-z0-9]{1,24}$/), z.number().finite().min(-100).max(100)) + .refine(value => Object.keys(value).length <= 8, 'At most 8 params'); +const paramTable = z.record(id, params).refine(value => Object.keys(value).length <= 32, 'At most 32 entries'); + +export const TopicSchema = z.object({ + id, name: z.string().min(1).max(32), stat: z.enum(STATS as [string, ...string[]]), portal: z.enum(PORTAL_IDS).nullable(), +}).strict(); + +export const RulesetSchema = z.object({ + version: z.string().min(1).max(16), + deckSize: int(1, 30), + maxCopiesPerPage: int(1, 30), + maxLoaners: int(0, 30), + openingHand: int(0, 10), + handLimit: int(1, 12), + mulligan: z.literal(false), // not implemented in v1 + turns: int(1, 12), + turnSeconds: int(5, 120), + afkTurns: int(1, 12), + energyByTurn: z.array(int(0, 20)).min(1).max(12), + energyCarryMax: int(0, 10), + bonusEnergy: int(0, 10), + underdog: z.boolean(), + topicCount: int(1, 5), + distinctStats: z.boolean(), + portalReveal: z.array(int(1, 12)).max(5), + laneCapacity: int(1, 8), + topicPool: z.array(TopicSchema).min(1).max(32), + keywordParams: paramTable, + portalParams: paramTable, + costThresholds: z.array(int(0, 100)).length(5), + powerByCost: z.array(int(0, 30)).length(7), + onTopicBonus: z.array(int(0, 10)).length(7), + vanillaBonus: int(0, 10), + keywordsEnabled: z.array(z.enum(KEYWORD_IDS)).max(KEYWORD_IDS.length), + ownedCards: z.boolean(), + trendUp: z.number().finite().min(-1000).max(1000), + trendDown: z.number().finite().min(-1000).max(1000), + trendMinDaily: z.number().finite().min(0).max(1e9), + uncheckedCostCap: int(1, 6), + factionSynergyCap: int(0, 12), + verifyStats: z.boolean(), + percentiles: id, + starterDecks: id, +}).strict().superRefine((rules, ctx) => { + const issue = (message: string) => ctx.addIssue({ code: 'custom', message }); + if (rules.turns * rules.turnSeconds > 240) issue('turns × turnSeconds must be ≤ 240'); + if (rules.energyByTurn.length < rules.turns) issue('energyByTurn needs one entry per turn'); + if (rules.portalReveal.length !== rules.topicCount) issue('portalReveal needs one entry per Topic'); + if (rules.openingHand > rules.handLimit) issue('openingHand > handLimit'); + if (rules.trendDown > rules.trendUp) issue('trendDown > trendUp'); + if (rules.costThresholds.some((value, i) => i > 0 && value < rules.costThresholds[i - 1])) issue('costThresholds must ascend'); + if (rules.distinctStats) { + if (rules.topicCount !== STATS.length) issue('distinctStats needs topicCount == 3'); + const stats = new Set(rules.topicPool.map(topic => topic.stat)); + if (stats.size < rules.topicCount) issue('topicPool lacks enough distinct stats'); + } else if (rules.topicPool.length < rules.topicCount) issue('topicPool smaller than topicCount'); + const topicIds = new Set(); + for (const topic of rules.topicPool) { + if (topicIds.has(topic.id)) issue(`Duplicate topic id: ${topic.id}`); + topicIds.add(topic.id); + } + if (new Set(rules.keywordsEnabled).size !== rules.keywordsEnabled.length) issue('Duplicate keywordsEnabled entry'); + for (const key of Object.keys(rules.keywordParams)) if (!(KEYWORD_IDS as readonly string[]).includes(key)) issue(`Unknown keyword: ${key}`); + for (const key of Object.keys(rules.portalParams)) + if (!topicIds.has(key) && !(PORTAL_IDS as readonly string[]).includes(key)) issue(`portalParams key is neither a Topic id nor a Portal id: ${key}`); +}); + +/** Validate untrusted ruleset JSON. Throws a ZodError with readable issues. */ +export function parseRuleset(input: unknown): Ruleset { + return RulesetSchema.parse(input) as Ruleset; +} + +/** DESIGN §10.3 default Topic pool: per stat one plain Topic and two with Portals. Portal kind = Topic id. */ +export const DEFAULT_TOPIC_POOL: Ruleset['topicPool'] = [ + { id: 'current-events', name: 'Current Events', stat: 'attention', portal: null }, + { id: 'main-page', name: 'Main Page', stat: 'attention', portal: 'main-page' }, + { id: 'trending', name: 'Trending', stat: 'attention', portal: 'trending' }, + { id: 'archive', name: 'Archive', stat: 'depth', portal: null }, + { id: 'featured-article', name: 'Featured Article', stat: 'depth', portal: 'featured-article' }, + { id: 'stub', name: 'Stub', stat: 'depth', portal: 'stub' }, + { id: 'translations', name: 'Translations', stat: 'reach', portal: null }, + { id: 'interwiki', name: 'Interwiki', stat: 'reach', portal: 'interwiki' }, + { id: 'disambiguation', name: 'Disambiguation', stat: 'reach', portal: 'disambiguation' }, +]; + +/** DESIGN §9 defaults (v1). */ +export const DEFAULT_RULESET: Ruleset = { + version: '1.0', + deckSize: 12, maxCopiesPerPage: 2, maxLoaners: 12, + openingHand: 3, handLimit: 7, mulligan: false, + turns: 6, turnSeconds: 25, afkTurns: 2, + energyByTurn: [1, 2, 3, 4, 5, 6], energyCarryMax: 1, bonusEnergy: 0, underdog: false, + topicCount: 3, distinctStats: true, portalReveal: [2, 3, 4], laneCapacity: 3, + topicPool: DEFAULT_TOPIC_POOL, + keywordParams: { + viral: { amount: 1, cap: 2, powerDelta: 0 }, rising: { amount: 1, cap: 2, powerDelta: 0 }, + local: { amount: 1, powerDelta: 0 }, encyclopedic: { amount: 2, powerDelta: 0 }, + nostalgic: { amount: 2, powerDelta: 0 }, translated: { amount: 1, powerDelta: 0 }, + edition: { amount: 2, powerDelta: 0 }, obscure: { powerDelta: 0 }, wildcard: { powerDelta: 0 }, + }, + portalParams: { + 'main-page': { amount: 1 }, trending: { factor: 2 }, 'featured-article': { amount: 2 }, + stub: { value: 2 }, interwiki: { amount: 1 }, + }, + costThresholds: [15, 35, 55, 75, 90], + powerByCost: [0, 1, 2, 4, 6, 8, 10], + onTopicBonus: [0, 1, 1, 2, 2, 3, 3], vanillaBonus: 1, + keywordsEnabled: ['viral', 'rising', 'local', 'encyclopedic', 'nostalgic', 'translated'], ownedCards: true, + trendUp: 25, trendDown: -200, trendMinDaily: 20, uncheckedCostCap: 4, + factionSynergyCap: 3, + verifyStats: true, + percentiles: 'card-sample-2026-11-16', + starterDecks: 'default', +}; diff --git a/shared/game/starter.ts b/shared/game/starter.ts new file mode 100644 index 0000000..a5b16b1 --- /dev/null +++ b/shared/game/starter.ts @@ -0,0 +1,66 @@ +/** + * PLACEHOLDER loaner cards and starter decks (DESIGN §2) so the engine, UI and + * sims can run before council-data's docs/game/starter-cards.json lands. + * Loaners are off-chain preview cards: not NFTs, never minted or moved. + * engine-b / council-data replace STARTER_POOL with derived cards (cards.ts). + */ +import { Rng } from './rng.ts'; +import type { Faction, GameCard, Stat } from './types.ts'; + +type Spec = [pageId: number, title: string, faction: Faction, cost: number, home: Stat]; + +/** DESIGN §1.3 powerByCost and §10.1 keyword choice (cost 1 = vanilla +vanillaBonus). pageIds outside shared/catalog.ts are unverified. */ +const POWER_BY_COST = [0, 1, 2, 4, 6, 8, 10]; +const VANILLA_BONUS = 1; +const FACTION_KEYWORD: Record = { + Culture: 'viral', Nature: 'rising', People: 'local', Science: 'encyclopedic', History: 'nostalgic', Space: 'translated', +}; + +export const STARTER_POOL: readonly Spec[] = [ + [22780, 'Octopus', 'Nature', 1, 'depth'], + [19331, 'Moon', 'Space', 1, 'reach'], + [23053, 'Periodic table', 'Science', 1, 'depth'], + [3383, 'Bronze Age', 'History', 1, 'depth'], + [5843419, 'Chess', 'Culture', 2, 'attention'], + [9228, 'Earth', 'Space', 2, 'reach'], + [2008, 'Ada Lovelace', 'People', 2, 'attention'], + [21830, 'Honey bee', 'Nature', 2, 'depth'], + [736, 'Albert Einstein', 'People', 3, 'reach'], + [10979, 'Fungus', 'Nature', 3, 'depth'], + [26903, 'Solar System', 'Space', 3, 'reach'], + [30758, 'Roman Empire', 'History', 3, 'depth'], + [9649, 'Evolution', 'Science', 4, 'depth'], + [8424, 'Jazz', 'Culture', 4, 'attention'], + [12898, 'Marie Curie', 'People', 4, 'reach'], + [14533, 'Silk Road', 'History', 4, 'reach'], + [19468, 'Mount Everest', 'Nature', 5, 'attention'], + [22936, 'Photosynthesis', 'Science', 5, 'depth'], + [18110, 'Leonardo da Vinci', 'People', 5, 'reach'], + [14627, 'Ancient Egypt', 'History', 5, 'attention'], + [4177, 'Black hole', 'Space', 6, 'attention'], + [25443, 'Quantum mechanics', 'Science', 6, 'depth'], + [17867, 'Library of Alexandria', 'History', 6, 'depth'], + [20217, 'Music', 'Culture', 6, 'reach'], +]; + +export function loanerCard(spec: Spec, copy = 0): GameCard { + const [pageId, title, faction, cost, home] = spec; + const keyword = cost === 1 ? null : FACTION_KEYWORD[faction]; + return { + cardId: `loaner:${pageId}:${copy}`, pageId, title, faction, rarity: 'Common', cost, + power: POWER_BY_COST[cost] + (keyword ? 0 : VANILLA_BONUS), home, trend: 0, keyword, source: 'loaner', check: 'loaner', + }; +} + +/** Every placeholder loaner card, once each (24 cards). Draft modes can sample from this. */ +export function previewPool(): GameCard[] { return STARTER_POOL.map(spec => loanerCard(spec)); } + +/** A deterministic 12-card loaner deck: 2 cards of each cost 1–6, chosen by `seed`. */ +export function starterDeck(seed: number | string): GameCard[] { + const rng = Rng.fromSeed(`starter:${seed}`); + const deck: GameCard[] = []; + for (let cost = 1; cost <= 6; cost++) { + deck.push(...rng.shuffle(STARTER_POOL.filter(spec => spec[3] === cost)).slice(0, 2).map(spec => loanerCard(spec))); + } + return deck; +} diff --git a/shared/game/types.ts b/shared/game/types.ts new file mode 100644 index 0000000..1fe5994 --- /dev/null +++ b/shared/game/types.ts @@ -0,0 +1,230 @@ +/** + * WikiDeck game engine types (off-chain). Implements docs/game/DESIGN.md ("Edit War"). + * Everything here is plain JSON data: MatchState round-trips through + * JSON.stringify/parse with no loss (no Maps, classes or functions). + * Contract: docs/game/ENGINE_API.md. Announce changes on claude/wikideck#3. + */ +import type { RngState } from './rng.ts'; + +export type PlayerId = 0 | 1; +export const PLAYERS: readonly PlayerId[] = [0, 1]; + +/** Category buckets from server/wiki.ts; a card's faction (DESIGN §1.5). */ +export type Faction = 'Space' | 'Nature' | 'People' | 'Science' | 'History' | 'Culture'; +export const FACTIONS: readonly Faction[] = ['Space', 'Nature', 'People', 'Science', 'History', 'Culture']; +export type Stat = 'attention' | 'depth' | 'reach'; +export const STATS: readonly Stat[] = ['attention', 'depth', 'reach']; +export type Rarity = 'Common' | 'Rare' | 'Epic' | 'Legendary'; + +/** + * A card as the engine sees it: already derived (DESIGN §1) by cards.ts from a + * host-frozen CardInput. The engine never reads raw snapshot stats. Hosts/modes + * may adjust fields (e.g. power) before createMatch; the engine does not re-derive. + */ +export interface GameCard { + /** Unique within one deck (the NFT card hash, or `loaner::`). */ + cardId: string; + /** null for unpinned loaners (DESIGN §2.1): copies then count per cardId. */ + pageId: number | null; + title: string; + faction: Faction; + /** Cosmetic in v1 (§1.7). */ + rarity: Rarity; + cost: number; + power: number; + home: Stat; + /** Live trend arrow, frozen at match start (§1.6). Adds to power in every Topic. */ + trend: -1 | 0 | 1; + keyword: string | null; + /** 'owned' = an NFT the player holds (never moved or burned by a match). */ + source: 'owned' | 'loaner'; + /** Host plausibility result (§1.10). Derivation already applied uncheckedCostCap. Default: 'loaner' for loaners, 'verified' for owned. */ + check?: 'verified' | 'unverified' | 'unchecked' | 'loaner'; +} + +/** A Topic (lane) definition in a ruleset's topic pool (§3). */ +export interface TopicDef { + id: string; + name: string; + stat: Stat; + /** Portal kind id in PORTALS (§10.3), or null for a plain Topic. Numbers: Ruleset.portalParams[topic id] (falls back to [portal id]). */ + portal: string | null; +} + +/** + * DESIGN §9 RulesConfig: every rule number as flat data so peer-hosted modes can + * override it. Use parseRuleset() for untrusted input. + */ +export interface Ruleset { + version: string; + deckSize: number; + maxCopiesPerPage: number; + maxLoaners: number; + openingHand: number; + handLimit: number; + mulligan: boolean; + turns: number; + turnSeconds: number; + afkTurns: number; + /** energyByTurn[t-1] is the base energy on turn t. Length must be ≥ turns. */ + energyByTurn: number[]; + /** Unspent energy carried to next turn, capped at this. */ + energyCarryMax: number; + bonusEnergy: number; + underdog: boolean; + topicCount: number; + distinctStats: boolean; + /** portalReveal[i] = turn on which Topic i's Portal is revealed (stats are always visible). Length = topicCount. */ + portalReveal: number[]; + laneCapacity: number; + topicPool: TopicDef[]; + /** Per-keyword numbers, keyed by keyword id. */ + keywordParams: Record>; + /** Per-Portal numbers, keyed by Topic id (or Portal kind id as a fallback). */ + portalParams: Record>; + costThresholds: number[]; + /** Index = cost (0–6). */ + powerByCost: number[]; + /** Index = cost (0–6): on-topic bonus. */ + onTopicBonus: number[]; + vanillaBonus: number; + /** Keyword ids whose hooks run. Cards with a disabled keyword are vanilla (derivation handles power). */ + keywordsEnabled: string[]; + ownedCards: boolean; + trendUp: number; + trendDown: number; + trendMinDaily: number; + uncheckedCostCap: number; + factionSynergyCap: number; + verifyStats: boolean; + /** Id of the percentile reference table used by derive.ts. */ + percentiles: string; + /** Id of the starter deck list. */ + starterDecks: string; +} + +export interface CardInPlay { + card: GameCard; + owner: PlayerId; + lane: number; + /** Turn the card was revealed. */ + turn: number; + /** Global reveal sequence number (1, 2, 3 … across both seats and all turns). */ + seq: number; + /** Permanent power changes from effects (on-reveal buffs etc.). */ + bonus: number; +} + +export interface QueuedPlay { cardId: string; lane: number } + +export interface PlayerState { + deck: GameCard[]; + hand: GameCard[]; + /** Energy available this turn (before queued plays). */ + energy: number; + /** Plays chosen this turn, hidden from the opponent until reveal. Order matters. */ + queue: QueuedPlay[]; + committed: boolean; + /** Consecutive timeouts with nothing queued (§7 afkTurns). */ + afk: number; + /** Energy carried into this turn (already included in `energy`). */ + carry: number; +} + +export interface LaneState { + /** Stat and name are always visible; the Portal only once portalRevealed. */ + topic: TopicDef; + portalRevealed: boolean; + cards: [CardInPlay[], CardInPlay[]]; +} + +export type MatchPhase = 'planning' | 'over'; + +export type LogEvent = + | { t: 'turnStart'; turn: number; energy: [number, number]; initiative: PlayerId } + | { t: 'portalRevealed'; lane: number; topic: TopicDef } + | { t: 'underdog'; player: PlayerId } + | { t: 'draw'; player: PlayerId; cardId: string } + | { t: 'reveal'; player: PlayerId; cardId: string; lane: number } + | { t: 'fizzle'; player: PlayerId; cardId: string; lane: number } + | { t: 'effect'; source: string; player: PlayerId; text: string } + | { t: 'concede'; player: PlayerId; afk: boolean } + | { t: 'matchOver'; result: MatchResult }; + +export interface MatchState { + schema: 'wikideck-match/1'; + engineVersion: number; + ruleset: Ruleset; + seed: number; + rng: RngState; + /** 1-based current turn. */ + turn: number; + phase: MatchPhase; + /** Player who reveals first this turn (§5.4). Alternates every turn. */ + initiative: PlayerId; + /** Last reveal sequence number handed out (CardInPlay.seq). */ + revealSeq: number; + players: [PlayerState, PlayerState]; + lanes: LaneState[]; + log: LogEvent[]; + /** Every action applied so far: (ruleset, decks, seed, actions) replays the match exactly. */ + actions: Action[]; + result: MatchResult | null; +} + +export type Action = + /** Queue a card from hand into a lane (§5.3). */ + | { type: 'play'; player: PlayerId; cardId: string; lane: number } + /** Take back a queued play this turn (refunds its energy). */ + | { type: 'undo'; player: PlayerId; cardId: string } + /** Commit the queue (empty = pass). When both have committed, the turn resolves. */ + | { type: 'commit'; player: PlayerId } + /** The host's turn timer expired for this player: commits what's queued, counts toward afkTurns if empty. */ + | { type: 'timeout'; player: PlayerId } + | { type: 'concede'; player: PlayerId }; + +export interface MatchResult { + /** null = draw. */ + winner: PlayerId | null; + reason: 'topics' | 'totalPower' | 'draw' | 'concede' | 'afk'; + topicsLed: [number, number]; + /** lanePower[lane][player] at the end, including "at scoring" Portals. */ + lanePower: [number, number][]; + totalPower: [number, number]; + turns: number; +} + +/** What one player is allowed to see. UI and AI read only this, never raw MatchState. */ +export interface PlayerView { + you: PlayerId; + ruleset: Ruleset; + turn: number; + phase: MatchPhase; + initiative: PlayerId; + energy: number; + /** Energy left after your queued plays. */ + energyLeft: number; + hand: GameCard[]; + queue: QueuedPlay[]; + committed: boolean; + deckCount: number; + opponent: { handCount: number; deckCount: number; queuedCount: number; committed: boolean }; + lanes: { + /** Always visible; `portal` is null until the Portal is revealed. */ + topic: TopicDef; + portalRevealed: boolean; + /** cards[0] = yours, cards[1] = opponent's (revealed cards only). */ + cards: [CardInPlay[], CardInPlay[]]; + /** Lane power of each card in `cards`, same shape. */ + cardPower: [number[], number[]]; + /** power[0] = yours, power[1] = opponent's. */ + power: [number, number]; + /** Who leads this Topic from your point of view. */ + leader: 'you' | 'opponent' | null; + }[]; + result: MatchResult | null; +} + +export class IllegalActionError extends Error { + constructor(message: string) { super(message); this.name = 'IllegalActionError'; } +} diff --git a/tests/game-core.test.ts b/tests/game-core.test.ts new file mode 100644 index 0000000..05a2c81 --- /dev/null +++ b/tests/game-core.test.ts @@ -0,0 +1,212 @@ +// Core-loop tests owned by engine-a. Keyword/Portal, derivation, property and golden tests: engine-b (tests/game-*.test.ts). +import test from 'node:test'; +import assert from 'node:assert/strict'; +import { + DEFAULT_RULESET, IllegalActionError, KEYWORDS, PORTALS, Rng, applyAction, cardPower, createMatch, deserialize, isOver, + laneLeader, legalActions, loanerCard, parseRuleset, placeCard, replay, result, revealPortal, serialize, starterDeck, + STARTER_POOL, viewFor, type Action, type GameCard, type KeywordDef, type MatchState, type PlayerId, type PortalDef, type Ruleset, +} from '../shared/game/index.ts'; + +const decks = (seed = 'd'): [GameCard[], GameCard[]] => [starterDeck(`${seed}-a`), starterDeck(`${seed}-b`)]; +const commit = (s: MatchState, player: PlayerId) => applyAction(s, { type: 'commit', player }); +const commitBoth = (s: MatchState) => commit(commit(s, 0), 1); +const card = (cost: number, overrides: Partial = {}): GameCard => + ({ ...loanerCard(STARTER_POOL.find(s => s[3] === cost)!), keyword: null, trend: 0, ...overrides }); +/** A deck whose every card costs `cost`, so the first plays are predictable. */ +const flatDeck = (cost: number, prefix: string, home: GameCard['home'] = 'depth'): GameCard[] => + Array.from({ length: 12 }, (_, i) => card(cost, { cardId: `${prefix}${i}`, pageId: 1000 + Math.floor(i / 2), home })); + +/** Temporarily register a keyword/portal implementation under a v1 id. */ +function withHook(registry: Record, id: string, def: T, run: () => void) { + const saved = registry[id]; + registry[id] = def; + try { run(); } finally { if (saved === undefined) delete registry[id]; else registry[id] = saved; } +} + +function randomPlay(seed: number, ruleset: Ruleset = DEFAULT_RULESET): MatchState { + let state = createMatch(ruleset, decks(String(seed)), seed); + const chooser = Rng.fromSeed(`bot:${seed}`); + for (let steps = 0; !isOver(state); steps++) { + assert.ok(steps < 2000, 'match must terminate'); + const player = chooser.int(2) as PlayerId; + const actions = legalActions(state, player); + if (actions.length) state = applyAction(state, chooser.pick(actions)); + assert.deepEqual(deserialize(serialize(state)), state); + } + return state; +} + +test('mulberry32 matches the reference value and is seed-deterministic', () => { + assert.equal(new Rng(1).next(), 0.6270739405881613); + const seq = (r: Rng) => Array.from({ length: 8 }, () => r.next()); + assert.deepEqual(seq(Rng.fromSeed(42)), seq(Rng.fromSeed(42))); + assert.notDeepEqual(seq(Rng.fromSeed(42)), seq(Rng.fromSeed(43))); + assert.equal(Rng.fromSeed('lobby-1').state, Rng.fromSeed('lobby-1').state); +}); + +test('DEFAULT_RULESET matches DESIGN §9 and parses; bad rulesets are rejected', () => { + assert.deepEqual(parseRuleset(DEFAULT_RULESET), DEFAULT_RULESET); + assert.equal(DEFAULT_RULESET.laneCapacity, 3); + assert.deepEqual(DEFAULT_RULESET.powerByCost, [0, 1, 2, 4, 6, 8, 10]); + assert.deepEqual(DEFAULT_RULESET.onTopicBonus, [0, 1, 1, 2, 2, 3, 3]); + assert.equal(DEFAULT_RULESET.topicPool.length, 9); + for (const bad of [{ turns: 13 }, { turnSeconds: 60 }, { energyByTurn: [1, 2] }, { portalReveal: [1, 2] }, + { keywordParams: { nope: {} } }, { keywordsEnabled: ['nope'] }, { extra: 1 }, { mulligan: true }, + { costThresholds: [90, 1, 2, 3, 4] }, { onTopicBonus: 2 }, { topicCount: 2 }, { portalParams: { nope: {} } }]) + assert.throws(() => parseRuleset({ ...DEFAULT_RULESET, ...bad }), JSON.stringify(bad)); +}); + +test('setup: one Topic per stat, stats visible, Portals hidden until portalReveal, hands of 4, energy 1', () => { + const state = createMatch(DEFAULT_RULESET, decks(), 7); + assert.equal(state.turn, 1); + assert.deepEqual(state.lanes.map(l => l.topic.stat).sort(), ['attention', 'depth', 'reach']); + assert.deepEqual(state.lanes.map(l => l.portalRevealed), [false, false, false]); + for (const p of state.players) { assert.equal(p.hand.length, 4); assert.equal(p.deck.length, 8); assert.equal(p.energy, 1); } + const view = viewFor(state, 0); + assert.deepEqual(view.lanes.map(l => l.topic.stat), state.lanes.map(l => l.topic.stat)); + assert.ok(view.lanes.every(l => l.topic.portal === null && l.topic.name === '?')); + let next = commitBoth(state); + assert.deepEqual(next.lanes.map(l => l.portalRevealed), [true, false, false]); + next = commitBoth(commitBoth(next)); + assert.deepEqual(next.lanes.map(l => l.portalRevealed), [true, true, true]); +}); + +test('decks are validated: size, copies per page, keyword ids, ownedCards', () => { + const [a, b] = decks(); + assert.throws(() => createMatch(DEFAULT_RULESET, [a.slice(0, 11), b], 1), IllegalActionError); + const triple = [...a.slice(0, 9), ...[0, 1, 2].map(n => ({ ...a[0], cardId: `x${n}` }))]; + assert.throws(() => createMatch(DEFAULT_RULESET, [triple, b], 1), /copies/); + assert.throws(() => createMatch(DEFAULT_RULESET, [[{ ...a[0], keyword: 'nope' }, ...a.slice(1)], b], 1), /unknown keyword/); + const owned = [{ ...a[0], source: 'owned' as const }, ...a.slice(1)]; + assert.doesNotThrow(() => createMatch(DEFAULT_RULESET, [owned, b], 1)); + assert.throws(() => createMatch({ ...DEFAULT_RULESET, ownedCards: false }, [owned, b], 1), /owned/); +}); + +test('queued plays are hidden until reveal; undo refunds; committed seats get no actions', () => { + let state = createMatch(DEFAULT_RULESET, decks(), 11); + const play = legalActions(state, 0).find(a => a.type === 'play') as Extract; + assert.ok(play, 'turn 1 should have a 1-cost play'); + state = applyAction(state, play); + assert.equal(viewFor(state, 0).energyLeft, 0); + assert.equal(viewFor(state, 1).opponent.queuedCount, 1); + assert.equal(JSON.stringify(viewFor(state, 1)).includes(`"${play.cardId}"`), false); + assert.equal(viewFor(applyAction(state, { type: 'undo', player: 0, cardId: play.cardId }), 0).energyLeft, 1); + state = commit(state, 0); + assert.deepEqual(legalActions(state, 0), []); + state = commit(state, 1); + assert.equal(state.turn, 2); + assert.equal(viewFor(state, 1).lanes[play.lane].cards[1][0].card.cardId, play.cardId); + assert.throws(() => applyAction(state, { type: 'play', player: 0, cardId: play.cardId, lane: 0 }), IllegalActionError); +}); + +test('viewFor never leaks the opponent hand, deck order, queue, seed or RNG state', () => { + let state = createMatch(DEFAULT_RULESET, [flatDeck(1, 'mine'), flatDeck(1, 'opp')], 'leak-seed'); + const play = legalActions(state, 1).find(x => x.type === 'play')!; + state = applyAction(state, play); + const view = viewFor(state, 0); + const json = JSON.stringify(view); + for (const key of ['"seed"', '"rng"', '"deck"', '"log"', '"actions"']) assert.equal(json.includes(key), false, key); + for (const c of [...state.players[1].hand, ...state.players[1].deck, ...state.players[0].deck]) + assert.equal(json.includes(`"${c.cardId}"`), false, c.cardId); + assert.deepEqual(view.hand.map(c => c.cardId), state.players[0].hand.map(c => c.cardId)); +}); + +test('energy: energyByTurn + carry (max 1) of unspent energy', () => { + let state = createMatch(DEFAULT_RULESET, [flatDeck(1, 'a'), flatDeck(1, 'b')], 3); + const first = state.players[0].hand[0].cardId; + state = applyAction(state, { type: 'play', player: 0, cardId: first, lane: 0 }); // p0 spends 1, p1 saves 1 + state = commitBoth(state); + assert.deepEqual(state.players.map(p => p.energy), [2, 3]); + state = commitBoth(state); // both save everything; carry is capped at 1 + assert.deepEqual(state.players.map(p => p.energy), [4, 4]); +}); + +test('reveal is interleaved: initiative 1st, other 1st, initiative 2nd, …; initiative alternates', () => { + let state = createMatch(DEFAULT_RULESET, [flatDeck(1, 'a'), flatDeck(1, 'b')], 5); + state = commitBoth(state); // turn 2: 3 energy each (2 + carry 1) + const init = state.initiative; + const ids = (p: PlayerId) => state.players[p].hand.slice(0, 3).map(c => c.cardId); + const [mine, theirs] = [ids(init), ids(init === 0 ? 1 : 0)]; + for (const [player, cards] of [[init, mine], [init === 0 ? 1 : 0, theirs.slice(0, 2)]] as const) + cards.forEach((cardId, lane) => { state = applyAction(state, { type: 'play', player, cardId, lane }); }); + const before = state.log.length; + state = commitBoth(state); + const order = state.log.slice(before).filter(e => e.t === 'reveal').map(e => (e as { cardId: string }).cardId); + assert.deepEqual(order, [mine[0], theirs[0], mine[1], theirs[1], mine[2]]); + assert.equal(state.initiative, init === 0 ? 1 : 0); + assert.deepEqual(state.lanes.flatMap(l => [...l.cards[0], ...l.cards[1]]).map(c => c.seq).sort((x, y) => x - y), [1, 2, 3, 4, 5]); +}); + +test('lane power: base + onTopicBonus[cost] + trend, floored at 0', () => { + let state = createMatch(DEFAULT_RULESET, decks(), 5); + const stat = state.lanes[1].topic.stat; + const off = stat === 'depth' ? 'reach' : 'depth'; + state = placeCard(state, 0, 1, card(5, { cardId: 'on', home: stat, trend: 1 })); + assert.equal(cardPower(state, state.lanes[1].cards[0][0]), 8 + 3 + 1); + state = placeCard(state, 0, 1, card(2, { cardId: 'off', home: off })); + assert.equal(cardPower(state, state.lanes[1].cards[0][1]), 2); + state = placeCard(state, 1, 1, card(1, { cardId: 'neg', home: off, trend: -1, power: 0 })); + assert.equal(cardPower(state, state.lanes[1].cards[1][0]), 0); +}); + +test('consensus tie-break: equal power > 0 goes to more on-topic cards; 0–0 has no leader', () => { + let state = createMatch(DEFAULT_RULESET, decks(), 8); + const stat = state.lanes[0].topic.stat; + const off = stat === 'depth' ? 'reach' : 'depth'; + assert.equal(laneLeader(state, 0), null); + state = placeCard(state, 0, 0, card(2, { cardId: 'a', home: stat, power: 1 })); // 1 + 1 on-topic = 2 + state = placeCard(state, 1, 0, card(2, { cardId: 'b', home: off, power: 2 })); // 2 off-topic + assert.equal(laneLeader(state, 0), 0); + state = placeCard(state, 1, 0, card(1, { cardId: 'c', home: stat, power: 0 })); // +1 on-topic: 3 vs 2 + assert.equal(laneLeader(state, 0), 1); +}); + +test('Portals: capacity override and fizzle at reveal, at-scoring bonus, disabled keywords do not run', () => { + const stub: PortalDef = { id: 'stub', name: 'Stub', text: '', capacity: ctx => ctx.params.value ?? 2 }; + const mainPage: PortalDef = { id: 'main-page', name: 'Main Page', text: '', atScoring: ctx => [0, 1].map(p => ctx.state.lanes[ctx.lane].cards[p].length * (ctx.params.amount ?? 1)) as [number, number] }; + const bump: KeywordDef = { id: 'rising', name: 'Rising', text: '', onReveal: (_ctx, self) => { self.bonus += 5; } }; + withHook(PORTALS, 'stub', stub, () => withHook(PORTALS, 'main-page', mainPage, () => withHook(KEYWORDS, 'rising', bump, () => { + let state = createMatch(DEFAULT_RULESET, [flatDeck(1, 'a'), flatDeck(1, 'b')], 2); + state.lanes[0].topic = { id: 'stub', name: 'Stub', stat: 'depth', portal: 'stub' }; + state.lanes[1].topic = { id: 'main-page', name: 'Main Page', stat: 'attention', portal: 'main-page' }; + state = revealPortal(revealPortal(state, 0), 1); + state = placeCard(placeCard(state, 0, 0, card(1, { cardId: 'p1' })), 0, 0, card(1, { cardId: 'p2' })); + assert.ok(legalActions(state, 0).every(a => a.type !== 'play' || a.lane !== 0), 'Stub holds 2'); + state = placeCard(state, 1, 1, card(2, { cardId: 'r', keyword: 'rising' })); + state.ruleset.keywordsEnabled = []; + const hand = state.players[1].hand[0]; + state = applyAction(state, { type: 'play', player: 1, cardId: hand.cardId, lane: 1 }); + state.players[1].hand[0] = { ...hand, keyword: 'rising' }; // disabled: no +5 + while (!isOver(state)) state = commitBoth(state); + const r = result(state)!; + assert.equal(r.lanePower[1][1], cardPower(state, state.lanes[1].cards[1][0]) + cardPower(state, state.lanes[1].cards[1][1]) + 2); + assert.ok(state.lanes[1].cards[1].every(c => c.bonus === 0)); + }))); +}); + +test('timeouts with nothing queued concede after afkTurns; concede ends the match', () => { + let state = createMatch(DEFAULT_RULESET, decks(), 17); + state = commit(applyAction(state, { type: 'timeout', player: 0 }), 1); + assert.equal(isOver(state), false); + state = applyAction(state, { type: 'timeout', player: 0 }); + assert.deepEqual([result(state)?.winner, result(state)?.reason], [1, 'afk']); + const conceded = applyAction(createMatch(DEFAULT_RULESET, decks(), 1), { type: 'concede', player: 1 }); + assert.equal(result(conceded)?.winner, 0); + assert.deepEqual(legalActions(conceded, 0), []); +}); + +test('two passing players draw after 6 turns', () => { + let state = createMatch(DEFAULT_RULESET, decks(), 21); + while (!isOver(state)) state = commitBoth(state); + const r = result(state)!; + assert.deepEqual([r.winner, r.reason, r.turns], [null, 'draw', 6]); +}); + +test('random legal play terminates, replays exactly, and survives serialisation after every action', () => { + for (let seed = 0; seed < 20; seed++) { + const end = randomPlay(seed); + assert.ok(result(end)!.turns <= DEFAULT_RULESET.turns); + assert.deepEqual(randomPlay(seed), end); + assert.deepEqual(replay(DEFAULT_RULESET, decks(String(seed)), seed, end.actions), end); + } +}); From a0bd095c4eb3e399a6581937217463deb6d671f5 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 04:41:48 +0000 Subject: [PATCH 3/5] Night 1: engine v1 keywords, Portals, card derivation, starter decks, property and golden tests (#27) Co-Authored-By: Claude Opus 5.5 --- shared/game/derive.ts | 142 ++++++++++++++++++++++ shared/game/index.ts | 13 +- shared/game/keywords.ts | 154 +++++++++++++++++++++++- shared/game/starter.ts | 61 ++++++++++ tests/game-derive.test.ts | 146 +++++++++++++++++++++++ tests/game-golden.test.ts | 124 +++++++++++++++++++ tests/game-keywords.test.ts | 229 ++++++++++++++++++++++++++++++++++++ tests/game-property.test.ts | 123 +++++++++++++++++++ tests/game-starter.test.ts | 52 ++++++++ tests/game/build.ts | 57 +++++++++ tests/game/property.ts | 47 ++++++++ 11 files changed, 1141 insertions(+), 7 deletions(-) create mode 100644 shared/game/derive.ts create mode 100644 tests/game-derive.test.ts create mode 100644 tests/game-golden.test.ts create mode 100644 tests/game-keywords.test.ts create mode 100644 tests/game-property.test.ts create mode 100644 tests/game-starter.test.ts create mode 100644 tests/game/build.ts create mode 100644 tests/game/property.ts diff --git a/shared/game/derive.ts b/shared/game/derive.ts new file mode 100644 index 0000000..6b5901b --- /dev/null +++ b/shared/game/derive.ts @@ -0,0 +1,142 @@ +/** + * Card derivation (DESIGN §1 and §10.1): a host-frozen CardInput becomes a GameCard. + * Pure and deterministic. The engine itself never reads raw 0–100 stats; hosts call + * deriveCard() before createMatch. Owner: engine-b. + */ +import { FACTION_KEYWORD, V1_KEYWORDS } from './keywords.ts'; +import { STATS, type Faction, type GameCard, type Rarity, type Stat } from './types.ts'; + +/** §1.4 tie-break order: depth and reach are the hardest to inflate. */ +export const HOME_TIE_ORDER: readonly Stat[] = ['depth', 'reach', 'attention']; + +export interface CardInput { + cardId: string; + /** null for loaners without a known article (§2.1). */ + pageId: number | null; + title: string; + category: Faction; + rarity: Rarity; + /** Only the derived scores are read (MintStatsSnapshot.stats). */ + snapshot: { stats: { attention: number | null; depth: number; reach: number } }; + /** Frozen by the host at match start. */ + live: { trendPercent: number | null; dailyAverage: number | null }; + /** §1.10, set by the host. Only 'unchecked' changes derivation (cost cap). */ + check: 'verified' | 'unverified' | 'unchecked' | 'loaner'; + /** Loaners only (§2.1): replaces §1.1–1.5. Ignored unless check === 'loaner'. */ + pinned?: { cost: number; home: Stat; faction: Faction }; +} + +/** 99 ascending cut points per stat (§1.1). */ +export type PercentileTable = Record; + +/** The rules config keys derivation reads (§9). */ +export interface DerivationRules { + costThresholds: readonly number[]; + powerByCost: readonly number[]; + vanillaBonus: number; + keywordsEnabled: readonly string[]; + keywordParams: Record>; + trendUp: number; + trendDown: number; + trendMinDaily: number; + uncheckedCostCap: number; +} + +export const DEFAULT_DERIVATION: DerivationRules = { + costThresholds: [15, 35, 55, 75, 90], + powerByCost: [0, 1, 2, 4, 6, 8, 10], + vanillaBonus: 1, + keywordsEnabled: V1_KEYWORDS, + keywordParams: {}, + trendUp: 25, trendDown: -200, trendMinDaily: 20, // −200: no down arrow in v1 (§1.6) + uncheckedCostCap: 4, +}; + +/** §1.1: cut points strictly below, plus half of those equal, rounded down. */ +export function percentile(score: number, cuts: readonly number[]): number { + let below = 0, equal = 0; + for (const cut of cuts) { + if (cut < score) below++; + else if (cut === score) equal++; + } + return Math.floor(below + equal / 2); +} + +export function percentiles(stats: CardInput['snapshot']['stats'], table: PercentileTable): Record { + return { + attention: stats.attention === null ? null : percentile(stats.attention, table.attention), + depth: percentile(stats.depth, table.depth), + reach: percentile(stats.reach, table.reach), + }; +} + +/** §1.2: integer mean of the non-null percentiles, rounded half up. */ +export function fame(pct: Record): number { + const values = STATS.map(stat => pct[stat]).filter((value): value is number => value !== null); + if (!values.length) return 0; + return Math.floor(values.reduce((total, value) => total + value, 0) / values.length + 0.5); +} + +/** §1.2: 1 + the number of thresholds ≤ fame. */ +export function costFor(fameValue: number, thresholds: readonly number[]): number { + return 1 + thresholds.filter(threshold => threshold <= fameValue).length; +} + +/** §1.4: highest percentile, ties by depth > reach > attention; null never wins. */ +export function homeStat(pct: Record): Stat { + let best: Stat = HOME_TIE_ORDER[0]; + for (const stat of HOME_TIE_ORDER) { + const value = pct[stat], current = pct[best]; + if (value !== null && (current === null || value > current)) best = stat; + } + return best; +} + +/** §1.6: ±1 past the thresholds; 0 for null or for articles under trendMinDaily views a day. */ +export function trendFor(live: CardInput['live'], rules: Pick): -1 | 0 | 1 { + const { trendPercent, dailyAverage } = live; + if (trendPercent === null || !Number.isFinite(trendPercent)) return 0; + if (dailyAverage === null || !(dailyAverage >= rules.trendMinDaily)) return 0; + if (trendPercent >= rules.trendUp) return 1; + if (trendPercent <= rules.trendDown) return -1; + return 0; +} + +/** + * §10.1: cost 1 → vanilla (+vanillaBonus); edition if enabled and the deck has another + * copy; else the faction keyword if enabled; else vanilla without the bonus. + */ +export function keywordFor(faction: Faction, cost: number, hasCopyInDeck: boolean, rules: Pick): + { keyword: string | null; vanilla: boolean } { + if (cost === 1) return { keyword: null, vanilla: true }; + if (hasCopyInDeck && rules.keywordsEnabled.includes('edition')) return { keyword: 'edition', vanilla: false }; + const keyword = FACTION_KEYWORD[faction]; + return rules.keywordsEnabled.includes(keyword) ? { keyword, vanilla: false } : { keyword: null, vanilla: false }; +} + +export function deriveCard(input: CardInput, table: PercentileTable, rules: DerivationRules = DEFAULT_DERIVATION, + hasCopyInDeck = false): GameCard { + const pinned = input.check === 'loaner' ? input.pinned : undefined; + const pct = percentiles(input.snapshot.stats, table); + let cost = pinned ? pinned.cost : costFor(fame(pct), rules.costThresholds); + if (input.check === 'unchecked') cost = Math.min(cost, rules.uncheckedCostCap); + const faction = pinned ? pinned.faction : input.category; + const base = rules.powerByCost[cost]; + if (base === undefined) throw new RangeError(`powerByCost has no entry for cost ${cost}`); + const { keyword, vanilla } = keywordFor(faction, cost, hasCopyInDeck, rules); + const delta = keyword ? Math.max(-3, Math.min(0, rules.keywordParams[keyword]?.powerDelta ?? 0)) : 0; + return { + cardId: input.cardId, pageId: input.pageId, title: input.title, faction, rarity: pinned ? 'Common' : input.rarity, + cost, power: Math.max(0, base + (vanilla ? rules.vanillaBonus : 0) + delta), + home: pinned ? pinned.home : homeStat(pct), trend: pinned ? 0 : trendFor(input.live, rules), keyword, + source: input.check === 'loaner' ? 'loaner' : 'owned', check: input.check, + }; +} + +/** Derive a whole deck; Edition (if enabled) needs to know about copies of the same pageId. */ +export function deriveDeck(inputs: readonly CardInput[], table: PercentileTable, rules: DerivationRules = DEFAULT_DERIVATION): GameCard[] { + const key = (input: CardInput) => input.pageId ?? `card:${input.cardId}`; + const counts = new Map(); + for (const input of inputs) counts.set(key(input), (counts.get(key(input)) ?? 0) + 1); + return inputs.map(input => deriveCard(input, table, rules, (counts.get(key(input)) ?? 0) > 1)); +} diff --git a/shared/game/index.ts b/shared/game/index.ts index 14f7703..5cb0f54 100644 --- a/shared/game/index.ts +++ b/shared/game/index.ts @@ -6,5 +6,14 @@ export { ENGINE_VERSION, createMatch, legalActions, applyAction, actionProblem, isOver, result, viewFor, serialize, deserialize, replay, validateDeck, cardPower, lanePower, laneLeader, laneCapacity, scoringPower, topicsLed, other, placeCard, revealPortal, } from './engine.ts'; -export { KEYWORDS, PORTALS, KEYWORD_IDS, PORTAL_IDS, allies, activePortal, isOnTopic, type KeywordDef, type PortalDef, type EffectContext } from './keywords.ts'; -export { STARTER_POOL, loanerCard, previewPool, starterDeck } from './starter.ts'; +export { + KEYWORDS, PORTALS, KEYWORD_IDS, PORTAL_IDS, FACTION_KEYWORD, V1_KEYWORDS, OPTIONAL_KEYWORDS, allies, activePortal, isOnTopic, hiddenFrom, + type KeywordDef, type PortalDef, type EffectContext, +} from './keywords.ts'; +export { + DEFAULT_DERIVATION, HOME_TIE_ORDER, percentile, percentiles, fame, costFor, homeStat, trendFor, keywordFor, deriveCard, deriveDeck, + type CardInput, type PercentileTable, type DerivationRules, +} from './derive.ts'; +export { + STARTER_POOL, STARTER_DECKS, loanerCard, loanerInput, previewPool, starterDeck, starterDeckById, type StarterDeckDef, +} from './starter.ts'; diff --git a/shared/game/keywords.ts b/shared/game/keywords.ts index ea3a621..4e3c1f6 100644 --- a/shared/game/keywords.ts +++ b/shared/game/keywords.ts @@ -23,7 +23,7 @@ * - Hooks must not throw and must not move or remove cards (§10, v1). */ import type { Rng } from './rng.ts'; -import type { CardInPlay, GameCard, MatchState, PlayerId } from './types.ts'; +import type { CardInPlay, GameCard, MatchState, PlayerId, Stat } from './types.ts'; /** The 9 implemented keyword ids (§10.2; edition, obscure and wildcard are disabled by default). */ export const KEYWORD_IDS = ['viral', 'rising', 'local', 'encyclopedic', 'nostalgic', 'translated', 'edition', 'obscure', 'wildcard'] as const; @@ -88,8 +88,152 @@ export function isOnTopic(state: MatchState, card: CardInPlay): boolean { return lane.topic.stat === card.card.home || activePortal(state, card.lane)?.allOnTopic === true; } -/** Filled in by engine-b (§10.2). Ids must be in KEYWORD_IDS. */ -export const KEYWORDS: Record = {}; +/** §10.1 v1 faction keywords. */ +export const FACTION_KEYWORD = { + Culture: 'viral', Nature: 'rising', People: 'local', Science: 'encyclopedic', History: 'nostalgic', Space: 'translated', +} as const; +export const V1_KEYWORDS: readonly string[] = Object.values(FACTION_KEYWORD); +/** Implemented but off by default (modes only). */ +export const OPTIONAL_KEYWORDS: readonly string[] = ['edition', 'obscure', 'wildcard']; + +/** True when `card` should be shown face down to `viewer` (Obscure). viewFor should use this. */ +export function hiddenFrom(state: MatchState, card: CardInPlay, viewer: PlayerId): boolean { + return card.owner !== viewer && state.phase !== 'over' && card.card.keyword === 'obscure' && state.ruleset.keywordsEnabled.includes('obscure'); +} + +const amount = (ctx: EffectContext, fallback: number) => ctx.params.amount ?? fallback; + +/** + * DESIGN §10.2 (PR #17 @ cf2fceb). All keywords only add power, use no RNG, and + * the largest single swing is +2. Every number comes from Ruleset.keywordParams. + * `powerDelta` params are applied at derivation (derive.ts), not here. + */ +export const KEYWORDS: Record = { + viral: { + id: 'viral', name: 'Viral', text: '+{amount} power for each other card you revealed earlier this turn (max +{cap}).', + onReveal(ctx, self) { + let earlier = 0; + for (const lane of ctx.state.lanes) for (const card of lane.cards[self.owner]) + if (card !== self && card.turn === ctx.state.turn) earlier++; + const gain = Math.min(earlier * amount(ctx, 1), ctx.params.cap ?? 2); + if (gain > 0) { self.bonus += gain; ctx.log(`${self.card.title}: Viral +${gain}`); } + }, + }, + rising: { + id: 'rising', name: 'Rising', text: 'End of turn: +{amount} power (max +{cap} in total).', + // Stateless: the gain so far is a function of how many ends of turn it has seen. + endOfTurn(ctx, self) { + const step = amount(ctx, 1), cap = ctx.params.cap ?? 2; + const seen = ctx.state.turn - self.turn; // ends of turn before this one + const gain = Math.min(cap, (seen + 1) * step) - Math.min(cap, seen * step); + if (gain > 0) { self.bonus += gain; ctx.log(`${self.card.title}: Rising +${gain}`); } + }, + }, + local: { + id: 'local', name: 'Local', text: '+{amount} power while on-topic.', + ongoing(ctx, self, target) { + return target === self && isOnTopic(ctx.state, self) ? amount(ctx, 1) : 0; + }, + }, + encyclopedic: { + id: 'encyclopedic', name: 'Encyclopedic', text: '+{amount} power if there are no other cards here.', + onReveal(ctx, self) { + const [mine, theirs] = ctx.state.lanes[self.lane].cards; + if (mine.every(card => card === self) && theirs.length === 0) { + self.bonus += amount(ctx, 2); + ctx.log(`${self.card.title}: Encyclopedic +${amount(ctx, 2)}`); + } + }, + }, + nostalgic: { + id: 'nostalgic', name: 'Nostalgic', text: '+{amount} power if you are losing here.', + onReveal(ctx, self) { + // Topic power just before this card was added (§10.2): take it out, measure, put it back. + const side = ctx.state.lanes[self.lane].cards[self.owner]; + const index = side.indexOf(self); + side.splice(index, 1); + const [mine, theirs] = [self.owner, self.owner === 0 ? 1 : 0] + .map(seat => ctx.state.lanes[self.lane].cards[seat].reduce((sum, card) => sum + ctx.power(card), 0)); + side.splice(index, 0, self); + if (theirs > mine) { + self.bonus += amount(ctx, 2); + ctx.log(`${self.card.title}: Nostalgic +${amount(ctx, 2)}`); + } + }, + }, + translated: { + id: 'translated', name: 'Translated', text: '+{amount} power to your most recently revealed card in each other Topic.', + onReveal(ctx, self) { + ctx.state.lanes.forEach((lane, index) => { + if (index === self.lane) return; + // Highest global reveal sequence number among your cards there (§10.2). + const latest = lane.cards[self.owner].reduce((best, card) => (!best || card.seq > best.seq ? card : best), undefined); + if (!latest) return; + latest.bonus += amount(ctx, 1); + ctx.log(`${self.card.title}: Translated +${amount(ctx, 1)} to ${latest.card.title}`); + }); + }, + }, + + // Implemented, disabled by default (not in keywordsEnabled): modes only. + edition: { + id: 'edition', name: 'Edition', text: '+{amount} power for each other copy of this article on your side.', + ongoing(ctx, self, target) { + if (target !== self) return 0; + let copies = 0; + for (const lane of ctx.state.lanes) for (const card of lane.cards[self.owner]) + if (card !== self && self.card.pageId !== null && card.card.pageId === self.card.pageId) copies++; + return copies * amount(ctx, 2); + }, + }, + obscure: { + id: 'obscure', name: 'Obscure', text: 'Your opponent sees this card face down until the match ends.', + }, + wildcard: { + id: 'wildcard', name: 'Wildcard', text: "On reveal: its home stat becomes this Topic's stat.", + onReveal(ctx, self) { + const stat: Stat = ctx.state.lanes[self.lane].topic.stat; + if (self.card.home !== stat) { self.card.home = stat; ctx.log(`${self.card.title}: Wildcard → ${stat}`); } + }, + }, +}; + +/** DESIGN §10.3 Portals, keyed by portal id (= Topic id). Numbers from Ruleset.portalParams. */ +export const PORTALS: Record = { + 'main-page': { + id: 'main-page', name: 'Main Page', text: 'At scoring, each card here gets +{amount} power.', + atScoring(ctx) { + const [a, b] = ctx.state.lanes[ctx.lane].cards; + return [a.length * amount(ctx, 1), b.length * amount(ctx, 1)]; + }, + }, + trending: { + id: 'trending', name: 'Trending', text: 'Trend arrows count ×{factor} here.', + ongoing(ctx, target) { return target.card.trend * ((ctx.params.factor ?? 2) - 1); }, + }, + 'featured-article': { + id: 'featured-article', name: 'Featured Article', + text: 'At scoring, the player with the single highest-power card here gets +{amount}.', + atScoring(ctx) { + const best = ctx.state.lanes[ctx.lane].cards.map(side => Math.max(-1, ...side.map(card => ctx.power(card)))); + if (best[0] === best[1] || Math.max(best[0], best[1]) < 0) return [0, 0]; + return best[0] > best[1] ? [amount(ctx, 2), 0] : [0, amount(ctx, 2)]; + }, + }, + stub: { + id: 'stub', name: 'Stub', text: 'Lane capacity here is {value} per player.', + capacity(ctx) { return ctx.params.value ?? 2; }, + }, + interwiki: { + id: 'interwiki', name: 'Interwiki', text: '+{amount} Topic power here if you have a card in every Topic.', + // Judged at scoring: in v1 Topic leads only matter at scoring (initiative alternates, underdog off). + atScoring(ctx) { + const lanes = ctx.state.lanes; + return [0, 1].map(seat => lanes.every(lane => lane.cards[seat].length > 0) ? amount(ctx, 1) : 0) as [number, number]; + }, + }, + disambiguation: { + id: 'disambiguation', name: 'Disambiguation', text: 'Every card here counts as on-topic.', allOnTopic: true, + }, +}; -/** Filled in by engine-b (§10.3). Ids must be in PORTAL_IDS. */ -export const PORTALS: Record = {}; diff --git a/shared/game/starter.ts b/shared/game/starter.ts index a5b16b1..a502e7a 100644 --- a/shared/game/starter.ts +++ b/shared/game/starter.ts @@ -4,6 +4,7 @@ * Loaners are off-chain preview cards: not NFTs, never minted or moved. * engine-b / council-data replace STARTER_POOL with derived cards (cards.ts). */ +import { DEFAULT_DERIVATION, deriveCard, type CardInput, type DerivationRules } from './derive.ts'; import { Rng } from './rng.ts'; import type { Faction, GameCard, Stat } from './types.ts'; @@ -64,3 +65,63 @@ export function starterDeck(seed: number | string): GameCard[] { } return deck; } + +// ---------- DESIGN §2.1 starter decks v1 (PR #18) ---------- + +type Pin = [cost: number, title: string, faction: Faction, home: Stat]; + +/** Real pageIds for the shared/catalog.ts cards; the others have none yet (§2.1), see loanerPageId. */ +const CATALOG_PAGE_IDS: Record = { Moon: 19331, 'Periodic table': 23053, Octopus: 22780, 'Albert Einstein': 736 }; + +export interface StarterDeckDef { id: string; name: string; cards: readonly Pin[] } + +/** Four 12-card loaner decks, each with the curve 1,1,2,2,3,3,3,4,4,5,5,6, 6+6 factions and 4 cards per home stat. */ +export const STARTER_DECKS: readonly StarterDeckDef[] = [ + { id: 'stargazers', name: 'Stargazers', cards: [ + [1, 'Moon', 'Space', 'reach'], [1, 'Electron', 'Science', 'depth'], [2, 'Mars', 'Space', 'attention'], + [2, 'Periodic table', 'Science', 'depth'], [3, 'Saturn', 'Space', 'reach'], [3, 'Photosynthesis', 'Science', 'attention'], + [3, 'Black hole', 'Space', 'depth'], [4, 'Quantum mechanics', 'Science', 'reach'], [4, 'Milky Way', 'Space', 'attention'], + [5, 'DNA', 'Science', 'attention'], [5, 'Sun', 'Space', 'reach'], [6, 'Theory of relativity', 'Science', 'depth'], + ] }, + { id: 'field-guide', name: 'Field Guide', cards: [ + [1, 'Octopus', 'Nature', 'depth'], [1, 'Stonehenge', 'History', 'attention'], [2, 'Axolotl', 'Nature', 'attention'], + [2, 'Rosetta Stone', 'History', 'reach'], [3, 'Coral reef', 'Nature', 'depth'], [3, 'Roman Empire', 'History', 'reach'], + [3, 'Honey bee', 'Nature', 'attention'], [4, 'Ancient Egypt', 'History', 'depth'], [4, 'Amazon rainforest', 'Nature', 'reach'], + [5, 'Blue whale', 'Nature', 'attention'], [5, 'Great Wall of China', 'History', 'reach'], [6, 'World War II', 'History', 'depth'], + ] }, + { id: 'headliners', name: 'Headliners', cards: [ + [1, 'Haiku', 'Culture', 'attention'], [1, 'Ada Lovelace', 'People', 'depth'], [2, 'Jazz', 'Culture', 'attention'], + [2, 'Marie Curie', 'People', 'reach'], [3, 'Mona Lisa', 'Culture', 'reach'], [3, 'Frida Kahlo', 'People', 'attention'], + [3, 'Chess', 'Culture', 'depth'], [4, 'Leonardo da Vinci', 'People', 'reach'], [4, 'The Beatles', 'Culture', 'attention'], + [5, 'William Shakespeare', 'People', 'depth'], [5, 'Olympic Games', 'Culture', 'reach'], [6, 'Wolfgang Amadeus Mozart', 'People', 'depth'], + ] }, + { id: 'pioneers', name: 'Pioneers', cards: [ + [1, 'Sputnik 1', 'Space', 'reach'], [1, 'Nikola Tesla', 'People', 'attention'], [2, 'Hubble Space Telescope', 'Space', 'depth'], + [2, 'Isaac Newton', 'People', 'reach'], [3, 'Neil Armstrong', 'People', 'attention'], [3, 'Jupiter', 'Space', 'reach'], + [3, 'Galileo Galilei', 'People', 'depth'], [4, 'Albert Einstein', 'People', 'attention'], [4, 'International Space Station', 'Space', 'depth'], + [5, 'Apollo 11', 'Space', 'attention'], [5, 'Charles Darwin', 'People', 'reach'], [6, 'Solar System', 'Space', 'depth'], + ] }, +]; + +const kebab = (title: string) => title.toLowerCase().normalize('NFKD').replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, ''); + +/** §2.1: the real pageId for the shared/catalog.ts cards, null for the rest (copies then count per cardId). */ +export function loanerPageId(title: string): number | null { + return Object.hasOwn(CATALOG_PAGE_IDS, title) ? CATALOG_PAGE_IDS[title] : null; +} + +/** The §1 CardInput for a pinned loaner. Snapshot stats are unused (pinned replaces §1.1–1.5). */ +export function loanerInput([cost, title, faction, home]: Pin): CardInput { + return { cardId: `loaner:${kebab(title)}`, pageId: loanerPageId(title), title, category: faction, rarity: 'Common', + snapshot: { stats: { attention: null, depth: 0, reach: 0 } }, live: { trendPercent: null, dailyAverage: null }, + check: 'loaner', pinned: { cost, home, faction } }; +} + +const NO_TABLE = { attention: [], depth: [], reach: [] }; + +/** A §2.1 starter deck by id, derived with the given rules (modes that change the curve change loaners too). */ +export function starterDeckById(id: string, rules: DerivationRules = DEFAULT_DERIVATION): GameCard[] { + const def = STARTER_DECKS.find(deck => deck.id === id); + if (!def) throw new RangeError(`Unknown starter deck: ${id}`); + return def.cards.map(pin => deriveCard(loanerInput(pin), NO_TABLE, rules)); +} diff --git a/tests/game-derive.test.ts b/tests/game-derive.test.ts new file mode 100644 index 0000000..8106149 --- /dev/null +++ b/tests/game-derive.test.ts @@ -0,0 +1,146 @@ +import test from 'node:test'; +import assert from 'node:assert/strict'; +import { + DEFAULT_DERIVATION, percentile, percentiles, fame, costFor, homeStat, trendFor, keywordFor, deriveCard, deriveDeck, + type CardInput, type PercentileTable, type DerivationRules, type Faction, +} from '../shared/game/index.ts'; +import { forAll } from './game/property.ts'; + +/** Cut points 1..99: score s sits at percentile ~s, which makes examples readable. */ +const LINEAR = Array.from({ length: 99 }, (_, i) => i + 1); +const TABLE: PercentileTable = { attention: LINEAR, depth: LINEAR, reach: LINEAR }; +const RULES = DEFAULT_DERIVATION; +const LIVE = { trendPercent: null, dailyAverage: null }; + +function input(stats: CardInput['snapshot']['stats'], overrides: Partial = {}): CardInput { + return { cardId: 'c1', pageId: 1, title: 'T', category: 'Science', rarity: 'Common', + snapshot: { stats }, live: LIVE, check: 'verified', ...overrides }; +} + +test('percentile counts cuts strictly below plus half of equal ones, rounded down (§1.1)', () => { + assert.equal(percentile(0, LINEAR), 0); + assert.equal(percentile(50, LINEAR), 49); + assert.equal(percentile(50.5, LINEAR), 50); + assert.equal(percentile(1000, LINEAR), 99); + assert.equal(percentile(5, [5, 5, 5, 5]), 2); + assert.equal(percentile(5, [1, 5, 5, 9]), 2); +}); + +test('null attention gives a null percentile and is ignored by fame (§1.1, §1.2)', () => { + const pct = percentiles({ attention: null, depth: 61, reach: 31 }, TABLE); + assert.deepEqual(pct, { attention: null, depth: 60, reach: 30 }); + assert.equal(fame(pct), 45); +}); + +test('fame rounds half up', () => { + assert.equal(fame({ attention: 10, depth: 11, reach: null }), 11); + assert.equal(fame({ attention: 10, depth: 10, reach: 11 }), 10); + assert.equal(fame({ attention: 10, depth: 11, reach: 11 }), 11); +}); + +test('cost is 1 + thresholds ≤ fame, spanning 1–6 (§1.2)', () => { + const t = RULES.costThresholds; + assert.deepEqual([0, 14, 15, 54, 55, 89, 90, 100].map(f => costFor(f, t)), [1, 1, 2, 3, 4, 5, 6, 6]); +}); + +test('home stat: highest percentile, ties depth > reach > attention, never null (§1.4)', () => { + assert.equal(homeStat({ attention: 90, depth: 10, reach: 10 }), 'attention'); + assert.equal(homeStat({ attention: 50, depth: 50, reach: 50 }), 'depth'); + assert.equal(homeStat({ attention: 50, depth: 40, reach: 50 }), 'reach'); + assert.equal(homeStat({ attention: null, depth: 0, reach: 0 }), 'depth'); + assert.equal(homeStat({ attention: null, depth: 0, reach: 1 }), 'reach'); +}); + +test('trend: ±1 at inclusive thresholds, 0 for null, 0 under trendMinDaily (§1.6)', () => { + const modeRules = { ...RULES, trendDown: -25 }; // a mode that turns the down arrow back on + const t = (trendPercent: number | null, dailyAverage: number | null = 100) => trendFor({ trendPercent, dailyAverage }, modeRules); + assert.deepEqual([t(25), t(24.9), t(-25), t(-24.9), t(null), t(Number.NaN), t(1e9)], [1, 0, -1, 0, 0, 0, 1]); + assert.equal(trendFor({ trendPercent: -99, dailyAverage: 1000 }, RULES), 0, 'v1 default: no down arrow'); + assert.equal(t(80, 19.9), 0); + assert.equal(t(80, 20), 1); + assert.equal(t(80, null), 0); +}); + +test('keyword choice: cost 1 vanilla, faction keyword otherwise, disabled → plain vanilla (§10.1)', () => { + const expected: Record = { Culture: 'viral', Nature: 'rising', People: 'local', + Science: 'encyclopedic', History: 'nostalgic', Space: 'translated' }; + for (const [faction, keyword] of Object.entries(expected) as [Faction, string][]) { + assert.deepEqual(keywordFor(faction, 1, false, RULES), { keyword: null, vanilla: true }); + assert.deepEqual(keywordFor(faction, 3, false, RULES), { keyword, vanilla: false }); + assert.deepEqual(keywordFor(faction, 3, false, { keywordsEnabled: [] }), { keyword: null, vanilla: false }); + } + assert.equal(keywordFor('Culture', 3, true, RULES).keyword, 'viral', 'edition is off by default'); + assert.equal(keywordFor('Culture', 3, true, { keywordsEnabled: ['edition', 'viral'] }).keyword, 'edition'); + assert.equal(keywordFor('Culture', 1, true, { keywordsEnabled: ['edition'] }).keyword, null, 'cost 1 stays vanilla'); +}); + +test('deriveCard: cost, power, vanillaBonus, home, trend and source', () => { + // pct 80/70/60 → fame 70 → cost 4 → power 6, Science → encyclopedic + const card = deriveCard(input({ attention: 81, depth: 71, reach: 61 }, { live: { trendPercent: 40, dailyAverage: 50 } }), TABLE); + assert.deepEqual(card, { cardId: 'c1', pageId: 1, title: 'T', faction: 'Science', rarity: 'Common', + cost: 4, power: 6, home: 'attention', trend: 1, keyword: 'encyclopedic', source: 'owned', check: 'verified' }); + const cheap = deriveCard(input({ attention: 5, depth: 5, reach: 5 }, { check: 'loaner' }), TABLE); + assert.deepEqual([cheap.cost, cheap.power, cheap.keyword, cheap.source], [1, 2, null, 'loaner']); + const disabled = deriveCard(input({ attention: 81, depth: 71, reach: 61 }), TABLE, { ...RULES, keywordsEnabled: [] }); + assert.deepEqual([disabled.power, disabled.keyword], [6, null]); +}); + +test('rarity is cosmetic: it never changes cost, power or keyword (§1.7)', () => { + const stats = { attention: 40, depth: 60, reach: 20 }; + const cards = (['Common', 'Rare', 'Epic', 'Legendary'] as const).map(rarity => deriveCard(input(stats, { rarity }), TABLE)); + for (const card of cards) assert.deepEqual({ ...card, rarity: 'Common' }, { ...cards[0], rarity: 'Common' }); +}); + +test('unchecked cards are capped at uncheckedCostCap and keep their home stat (§1.10)', () => { + const stats = { attention: 100, depth: 100, reach: 99 }; + const checked = deriveCard(input(stats), TABLE); + const unchecked = deriveCard(input(stats, { check: 'unchecked' }), TABLE); + assert.equal(checked.cost, 6); + assert.equal(unchecked.cost, 4); + assert.equal(unchecked.power, RULES.powerByCost[4]); + assert.equal(unchecked.home, checked.home); +}); + +test('powerDelta from keywordParams lowers keyword cards only, clamped to −3..0', () => { + const rules: DerivationRules = { ...RULES, keywordParams: { encyclopedic: { powerDelta: -2 }, viral: { powerDelta: -9 } } }; + assert.equal(deriveCard(input({ attention: 81, depth: 71, reach: 61 }), TABLE, rules).power, 4); + assert.equal(deriveCard(input({ attention: 81, depth: 71, reach: 61 }, { category: 'Culture' }), TABLE, rules).power, 3); + assert.equal(deriveCard(input({ attention: 5, depth: 5, reach: 5 }), TABLE, rules).power, 2); +}); + +test('deriveDeck marks copies for Edition when it is enabled', () => { + const a = input({ attention: 50, depth: 50, reach: 50 }, { cardId: 'a', pageId: 7, category: 'Culture' }); + const b = { ...a, cardId: 'b' }; + const c = { ...a, cardId: 'c', pageId: 8 }; + const rules = { ...RULES, keywordsEnabled: [...RULES.keywordsEnabled, 'edition'] }; + assert.deepEqual(deriveDeck([a, b, c], TABLE, rules).map(card => card.keyword), ['edition', 'edition', 'viral']); + assert.deepEqual(deriveDeck([a, b, c], TABLE).map(card => card.keyword), ['viral', 'viral', 'viral']); +}); + +test('power depends only on cost: forged stats only move a card up the curve (§1.3)', () => { + forAll(300, g => { + const stats = { attention: g.bool(0.1) ? null : g.int(0, 100), depth: g.int(0, 100), reach: g.int(0, 100) }; + const card = deriveCard(input(stats, { category: g.pick(['Space', 'Nature', 'People', 'Science', 'History', 'Culture'] as const) }), TABLE); + assert.ok(card.cost >= 1 && card.cost <= 6); + assert.equal(card.power, RULES.powerByCost[card.cost] + (card.cost === 1 ? RULES.vanillaBonus : 0)); + assert.ok(stats[card.home] !== null, 'home is never a null stat'); + const bumped = { ...stats, depth: Math.min(100, stats.depth + g.int(1, 30)) }; + assert.ok(deriveCard(input(bumped), TABLE).cost >= card.cost, 'raising a stat never lowers cost'); + }); +}); + +test('deriveCard rejects a rules config with no power for the derived cost', () => { + assert.throws(() => deriveCard(input({ attention: 100, depth: 100, reach: 100 }), TABLE, { ...RULES, powerByCost: [0, 1, 2] }), RangeError); +}); + +test('pinned values replace §1.1–1.5 for loaners only (§2.1)', () => { + const pinned = { cost: 5, home: 'reach' as const, faction: 'History' as const }; + const stats = { attention: 5, depth: 5, reach: 5 }; + const loaner = deriveCard(input(stats, { check: 'loaner', pinned, rarity: 'Epic', live: { trendPercent: 99, dailyAverage: 999 } }), TABLE); + assert.deepEqual([loaner.cost, loaner.power, loaner.home, loaner.faction, loaner.keyword, loaner.rarity, loaner.trend, loaner.source], + [5, 8, 'reach', 'History', 'nostalgic', 'Common', 0, 'loaner']); + const owned = deriveCard(input(stats, { pinned }), TABLE); + assert.deepEqual([owned.cost, owned.faction], [1, 'Science'], 'pinned is ignored when check !== loaner'); + const cheap = deriveCard(input(stats, { check: 'loaner', pinned: { ...pinned, cost: 1 } }), TABLE); + assert.deepEqual([cheap.power, cheap.keyword], [2, null], 'vanillaBonus still applies to pinned cost-1'); +}); diff --git a/tests/game-golden.test.ts b/tests/game-golden.test.ts new file mode 100644 index 0000000..af3981a --- /dev/null +++ b/tests/game-golden.test.ts @@ -0,0 +1,124 @@ +/** + * Golden test: DESIGN.md §12 worked example (PR #17 @ cf2fceb), encoded exactly. + * The Topic order, hands and initiative are injected; each player's per-turn + * commit list is the table's, in the listed queue order. Owner: engine-b. + * + * Passes against night/engine/core e0ac157 (frozen §3–§7 rules). + */ +import test from 'node:test'; +import assert from 'node:assert/strict'; +import { + DEFAULT_RULESET, applyAction, createMatch, isOver, lanePower, result, starterDeck, topicsLed, + type Action, type GameCard, type MatchState, type PlayerId, type Ruleset, type Stat, type Faction, +} from '../shared/game/index.ts'; + +const opts = {}; + +/** §9 defaults the example depends on. */ +const FROZEN = { + laneCapacity: 3, powerByCost: [0, 1, 2, 4, 6, 8, 10], onTopicBonus: [0, 1, 1, 2, 2, 3, 3], + vanillaBonus: 1, energyCarryMax: 1, underdog: false, portalReveal: [2, 3, 4], +}; + +const c = (owner: string, title: string, faction: Faction, cost: number, power: number, home: Stat, keyword: string | null): GameCard => + ({ cardId: `${owner}:${title}`, pageId: title.length * 1000 + cost, title, faction, rarity: 'Common', + cost, power, home, trend: 0, keyword, source: 'loaner' }); + +const ANA = [ + c('ana', 'Octopus', 'Nature', 1, 2, 'depth', null), + c('ana', 'Moon', 'Space', 2, 2, 'reach', 'translated'), + c('ana', 'Coral reef', 'Nature', 2, 2, 'depth', 'rising'), + c('ana', 'Albert Einstein', 'People', 4, 6, 'attention', 'local'), + c('ana', 'Ancient Rome', 'History', 5, 8, 'depth', 'nostalgic'), + c('ana', 'Library of Alexandria', 'History', 4, 6, 'depth', 'nostalgic'), + c('ana', 'Periodic table', 'Science', 3, 4, 'depth', 'encyclopedic'), +]; +const BO = [ + c('bo', 'Haiku', 'Culture', 1, 2, 'attention', null), + c('bo', 'Mars', 'Space', 2, 2, 'reach', 'translated'), + c('bo', 'Jazz', 'Culture', 2, 2, 'attention', 'viral'), + c('bo', 'Pop music', 'Culture', 4, 6, 'attention', 'viral'), + c('bo', 'Jupiter', 'Space', 5, 8, 'reach', 'translated'), + c('bo', 'Fern', 'Nature', 3, 4, 'depth', 'rising'), + c('bo', 'Mona Lisa', 'Culture', 3, 4, 'attention', 'viral'), +]; + +const T1 = 0, T2 = 1, T3 = 2; +/** [player, title, lane] in queue order, per turn (§12 table). */ +const PLAN: [PlayerId, string, number][][] = [ + [[0, 'Octopus', T1], [1, 'Haiku', T2]], + [[0, 'Moon', T3]], // Bo passes to carry 1 + [[0, 'Coral reef', T1], [1, 'Mars', T3], [1, 'Jazz', T2]], + [[1, 'Pop music', T3], [0, 'Albert Einstein', T2]], + [[0, 'Ancient Rome', T3], [1, 'Jupiter', T1]], + [[1, 'Fern', T1], [0, 'Library of Alexandria', T1], [1, 'Mona Lisa', T2], [0, 'Periodic table', T2]], +]; + +function setup(): MatchState { + const rules: Ruleset = { ...DEFAULT_RULESET }; + const state = createMatch(rules, [starterDeck('golden-a'), starterDeck('golden-b')], 1); + const pool = state.ruleset.topicPool; + const find = (id: string) => pool.find(t => t.id === id) ?? assert.fail(`topic ${id} missing from the default pool`); + const topics = [find('archive'), find('main-page'), find('translations')]; + state.lanes = topics.map(topic => ({ topic, portalRevealed: false, cards: [[], []] })); + // Inject: every card the example plays starts in hand, nothing left to draw. + state.players[0].hand = structuredClone(ANA); + state.players[1].hand = structuredClone(BO); + for (const p of state.players) p.deck = []; + state.initiative = 0; // Ana has initiative on odd turns + return state; +} + +const id = (player: PlayerId, title: string) => `${player === 0 ? 'ana' : 'bo'}:${title}`; + +function playTurn(state: MatchState, plays: [PlayerId, string, number][]): MatchState { + for (const [player, title, lane] of plays) state = applyAction(state, { type: 'play', player, cardId: id(player, title), lane } as Action); + state = applyAction(state, { type: 'commit', player: 0 }); + return applyAction(state, { type: 'commit', player: 1 }); +} + +test('§12 golden: rules defaults match the frozen §9 values', opts, () => { + for (const [key, value] of Object.entries(FROZEN)) assert.deepEqual((DEFAULT_RULESET as unknown as Record)[key], value, key); +}); + +test('§12 golden: final Topic powers 19–15, 15–19, 13–10; Ana (p0) wins 2–1', opts, () => { + let state = setup(); + const energyAtStart: [number, number][] = []; + const snapshots: MatchState[] = []; + for (const plays of PLAN) { + energyAtStart.push([state.players[0].energy, state.players[1].energy]); + state = playTurn(state, plays); + snapshots.push(state); + } + assert.ok(isOver(state)); + const r = result(state)!; + assert.deepEqual(r.lanePower, [[19, 15], [15, 19], [13, 10]]); + assert.equal(r.winner, 0); + assert.deepEqual(r.topicsLed, [2, 1]); + + // Carry-over: Bo 4 at the start of turn 3; Ana 5, 6, 7 at the start of turns 4, 5, 6. + assert.equal(energyAtStart[2][1], 4); + assert.deepEqual(energyAtStart.slice(3).map(e => e[0]), [5, 6, 7]); + + // After turn 5: T2 is 9–9 and Bo leads it by consensus (2 on-topic cards to 1). + const afterFive = snapshots[4]; + assert.deepEqual(lanePower(afterFive, T2), [9, 9]); + assert.deepEqual(lanePower(afterFive, T1), [9, 8]); + assert.deepEqual(lanePower(afterFive, T3), [13, 10]); + assert.deepEqual(topicsLed(afterFive), [2, 1]); +}); + +test('§12 golden: per-turn Topic powers match the table', opts, () => { + const expected = [ + [[3, 0], [0, 3], [0, 0]], + [[4, 0], [0, 3], [3, 0]], + [[8, 0], [0, 8], [3, 3]], + [[9, 0], [9, 8], [3, 9]], + [[9, 8], [9, 9], [13, 10]], + ]; + let state = setup(); + PLAN.slice(0, 5).forEach((plays, turn) => { + state = playTurn(state, plays); + assert.deepEqual(state.lanes.map((_, lane) => lanePower(state, lane)), expected[turn], `after turn ${turn + 1}`); + }); +}); diff --git a/tests/game-keywords.test.ts b/tests/game-keywords.test.ts new file mode 100644 index 0000000..fcc28e0 --- /dev/null +++ b/tests/game-keywords.test.ts @@ -0,0 +1,229 @@ +// Keyword and Portal unit tests (DESIGN §10.2, §10.3 — PR #17 @ cf2fceb). Owner: engine-b. +import test from 'node:test'; +import assert from 'node:assert/strict'; +import { + DEFAULT_RULESET, FACTION_KEYWORD, KEYWORDS, OPTIONAL_KEYWORDS, PORTALS, V1_KEYWORDS, hiddenFrom, isOnTopic, parseRuleset, +} from '../shared/game/index.ts'; +import { board, card, cardPower, ctxFor, endOfTurn, place, reveal, topic, atScoring } from './game/build.ts'; + + +test('registry: ids match keys, every entry has name and text, v1 set is one keyword per faction', () => { + for (const [id, def] of [...Object.entries(KEYWORDS), ...Object.entries(PORTALS)]) { + assert.equal(def.id, id); + assert.ok(def.name && def.text, `${id} needs name and text`); + } + assert.deepEqual([...V1_KEYWORDS].sort(), ['encyclopedic', 'local', 'nostalgic', 'rising', 'translated', 'viral']); + assert.equal(new Set(Object.values(FACTION_KEYWORD)).size, 6); + for (const id of [...V1_KEYWORDS, ...OPTIONAL_KEYWORDS]) assert.ok(KEYWORDS[id], `${id} implemented`); +}); + +test('the default ruleset (topic pool and params) validates', () => { + assert.doesNotThrow(() => parseRuleset(DEFAULT_RULESET)); + for (const t of DEFAULT_RULESET.topicPool) if (t.portal) assert.equal(t.portal, t.id, 'portal id = topic id'); + assert.equal(DEFAULT_RULESET.topicPool.length, 9); +}); + +// ---- viral ---- +test('viral: +1 per other own card revealed earlier this turn, any Topic, capped at +2', () => { + const s = board(); + place(s, 0, 0, card(), s.turn - 1); // an older card does not count + place(s, 1, 1, card()); // nor do the opponent's + assert.equal(reveal(s, 0, 1, card({ keyword: 'viral' })).bonus, 0); + place(s, 0, 2, card()); + // two earlier this turn now (the first viral card and this one) → +2 + assert.equal(reveal(s, 0, 2, card({ keyword: 'viral' })).bonus, 2); + for (let i = 0; i < 3; i++) place(s, 0, 0, card()); + assert.equal(reveal(s, 0, 0, card({ keyword: 'viral' })).bonus, 2, 'cap'); +}); + +test('viral: the §12 example (Mars then Jazz → +1)', () => { + const s = board(); + place(s, 1, 2, card({ title: 'Mars' })); + assert.equal(reveal(s, 1, 1, card({ title: 'Jazz', keyword: 'viral' })).bonus, 1); +}); + +// ---- rising ---- +test('rising: +1 at each end of turn, stopping after +2 in total', () => { + const s = board(); + const r = place(s, 0, 0, card({ power: 2, keyword: 'rising' })); + const seen: number[] = []; + for (let i = 0; i < 4; i++) { endOfTurn(s, r); seen.push(r.bonus); s.turn++; } + assert.deepEqual(seen, [1, 2, 2, 2]); +}); + +test('rising: other bonuses do not count toward its cap', () => { + const s = board(); + const r = place(s, 0, 0, card({ keyword: 'rising' })); + r.bonus = 5; + endOfTurn(s, r); s.turn++; endOfTurn(s, r); s.turn++; endOfTurn(s, r); + assert.equal(r.bonus, 7); +}); + +test('rising: respects keywordParams amount and cap', () => { + const s = board(); + s.ruleset.keywordParams.rising = { amount: 2, cap: 3 }; + const r = place(s, 0, 0, card({ keyword: 'rising' })); + endOfTurn(s, r); s.turn++; endOfTurn(s, r); s.turn++; endOfTurn(s, r); + assert.equal(r.bonus, 3); +}); + +// ---- local ---- +test('local: +1 only while on-topic, on top of the on-topic bonus', () => { + const s = board(); + const on = place(s, 0, 1, card({ cost: 4, power: 6, home: 'attention', keyword: 'local' })); + const off = place(s, 0, 0, card({ cost: 4, power: 6, home: 'attention', keyword: 'local' })); + const plain = place(s, 1, 1, card({ cost: 4, power: 6, home: 'attention' })); + assert.equal(cardPower(s, on) - cardPower(s, plain), 1); + assert.equal(cardPower(s, off), 6); + assert.equal(KEYWORDS.local.ongoing!(ctxFor(s, {}, 1), on, plain), 0, 'only buffs itself'); +}); + +// ---- encyclopedic ---- +test('encyclopedic: +2 only into a completely empty Topic (either side)', () => { + const s = board(); + assert.equal(reveal(s, 0, 0, card({ keyword: 'encyclopedic' })).bonus, 2); + place(s, 1, 1, card()); + assert.equal(reveal(s, 0, 1, card({ keyword: 'encyclopedic' })).bonus, 0, 'opponent card here'); + place(s, 0, 2, card()); + assert.equal(reveal(s, 0, 2, card({ keyword: 'encyclopedic' })).bonus, 0, 'own card here'); +}); + +// ---- nostalgic ---- +test('nostalgic: +2 when strictly losing, counted before this card is added', () => { + const s = board(); + place(s, 0, 2, card({ power: 3, home: 'attention' })); + place(s, 1, 2, card({ power: 9, home: 'attention' })); + const n = reveal(s, 0, 2, card({ power: 8, home: 'depth', keyword: 'nostalgic' })); + assert.equal(n.bonus, 2); + assert.equal(s.lanes[2].cards[0].indexOf(n), 1, 'card is back in place, in reveal order'); +}); + +test('nostalgic: a tie is not losing, and neither is an empty Topic', () => { + const s = board(); + place(s, 0, 2, card({ power: 4 })); + place(s, 1, 2, card({ power: 4 })); + assert.equal(reveal(s, 0, 2, card({ keyword: 'nostalgic' })).bonus, 0); + assert.equal(reveal(s, 1, 0, card({ keyword: 'nostalgic' })).bonus, 0); +}); + +// ---- translated ---- +test('translated: +1 to your most recently revealed card in each other Topic', () => { + const s = board(); + const first = place(s, 0, 0, card()); + const latest = place(s, 0, 0, card()); + const enemy = place(s, 1, 2, card()); + const t = reveal(s, 0, 1, card({ keyword: 'translated' })); + assert.deepEqual([first.bonus, latest.bonus, enemy.bonus, t.bonus], [0, 1, 0, 0]); +}); + +test('translated: the §12 example (Jupiter → Jazz in T2 and Pop music in T3)', () => { + const s = board(); + const haiku = place(s, 1, 1, card({ title: 'Haiku' })); + const jazz = place(s, 1, 1, card({ title: 'Jazz' })); + const mars = place(s, 1, 2, card({ title: 'Mars' })); + const pop = place(s, 1, 2, card({ title: 'Pop music' })); + reveal(s, 1, 0, card({ title: 'Jupiter', keyword: 'translated' })); + assert.deepEqual([haiku.bonus, jazz.bonus, mars.bonus, pop.bonus], [0, 1, 0, 1]); +}); + +// ---- optional keywords ---- +test('edition: +2 per other copy of the same pageId on your side (when enabled)', () => { + const s = board(); + const a0 = place(s, 0, 1, card({ pageId: 41, power: 5, home: 'reach', keyword: 'edition' })); + place(s, 0, 2, card({ pageId: 41, power: 5, home: 'depth', keyword: 'edition' })); + assert.equal(cardPower(s, a0), 5, 'disabled by default'); + s.ruleset.keywordsEnabled = [...s.ruleset.keywordsEnabled, 'edition']; + assert.equal(cardPower(s, a0), 7); + s.lanes[1].cards[0] = []; s.lanes[2].cards[0] = []; + const a = place(s, 0, 0, card({ pageId: 42, power: 5, home: 'reach', keyword: 'edition' })); + assert.equal(cardPower(s, a), 5); + place(s, 0, 2, card({ pageId: 42, power: 5, home: 'depth', keyword: 'edition' })); + place(s, 1, 0, card({ pageId: 42 })); + assert.equal(cardPower(s, a), 7); +}); + +test('wildcard: its home stat becomes the Topic stat on reveal', () => { + const s = board(); + s.ruleset.keywordsEnabled = [...s.ruleset.keywordsEnabled, 'wildcard']; + const w = reveal(s, 0, 2, card({ home: 'attention', keyword: 'wildcard' })); + assert.equal(w.card.home, 'reach'); + assert.ok(isOnTopic(s, w)); +}); + +test('obscure: hidden only from the opponent, only while running, only when enabled', () => { + const s = board(); + const o = place(s, 0, 1, card({ keyword: 'obscure' })); + (s.ruleset as unknown as { keywordsEnabled: string[] }).keywordsEnabled = ['obscure']; + assert.equal(hiddenFrom(s, o, 1), true); + assert.equal(hiddenFrom(s, o, 0), false); + (s.ruleset as unknown as { keywordsEnabled: string[] }).keywordsEnabled = [...V1_KEYWORDS]; + assert.equal(hiddenFrom(s, o, 1), false, 'disabled by default'); + (s.ruleset as unknown as { keywordsEnabled: string[] }).keywordsEnabled = ['obscure']; + s.phase = 'over'; + assert.equal(hiddenFrom(s, o, 1), false); +}); + +// ---- Portals (§10.3) ---- +test('isOnTopic: home stat matches the Topic stat; Disambiguation makes everything on-topic once revealed', () => { + const s = board([topic('depth'), topic('reach', 'disambiguation'), topic('reach')]); + assert.ok(isOnTopic(s, place(s, 0, 0, card({ home: 'depth' })))); + assert.ok(!isOnTopic(s, place(s, 0, 2, card({ home: 'depth' })))); + const d = place(s, 0, 1, card({ home: 'attention' })); + assert.ok(isOnTopic(s, d)); + s.lanes[1].portalRevealed = false; + assert.ok(!isOnTopic(s, d), 'Portal not active while face down'); +}); + +test('Main Page: +1 per card at scoring', () => { + const s = board([topic('depth'), topic('attention', 'main-page'), topic('reach')]); + place(s, 0, 1, card()); place(s, 0, 1, card()); place(s, 1, 1, card()); + assert.deepEqual(atScoring(s, 1), [2, 1]); +}); + +test('Trending: trend arrows count double', () => { + const s = board([topic('depth'), topic('attention', 'trending'), topic('reach')]); + const up = place(s, 0, 1, card({ trend: 1 })); + const down = place(s, 1, 1, card({ trend: -1 })); + const flat = place(s, 1, 1, card({ trend: 0 })); + const portal = PORTALS.trending; + const ctx = ctxFor(s, s.ruleset.portalParams.trending, 1); + assert.deepEqual([portal.ongoing!(ctx, up), portal.ongoing!(ctx, down), portal.ongoing!(ctx, flat)], [1, -1, 0]); +}); + +test('Featured Article: +2 to the owner of the single highest card at scoring; tie → nobody', () => { + const s = board([topic('depth', 'featured-article'), topic('attention'), topic('reach')]); + place(s, 0, 0, card({ power: 6, home: 'reach' })); + const bo = place(s, 1, 0, card({ power: 5, home: 'reach' })); + assert.deepEqual(atScoring(s, 0), [2, 0]); + bo.bonus = 1; + assert.deepEqual(atScoring(s, 0), [0, 0], 'tied highest'); + bo.bonus = 3; + assert.deepEqual(atScoring(s, 0), [0, 2]); + assert.deepEqual(atScoring(board([topic('depth', 'featured-article')]), 0), [0, 0], 'empty'); +}); + +test('Stub: lane capacity 2', () => { + const s = board([topic('depth', 'stub'), topic('attention'), topic('reach')]); + assert.equal(PORTALS.stub.capacity!(ctxFor(s, s.ruleset.portalParams.stub, 0)), 2); +}); + +test('Interwiki: +1 Topic power to a player with a card in every Topic', () => { + const s = board([topic('depth'), topic('attention'), topic('reach', 'interwiki')]); + for (const lane of [0, 1, 2]) place(s, 0, lane, card()); + place(s, 1, 2, card()); + assert.deepEqual(atScoring(s, 2), [1, 0]); + assert.deepEqual(atScoring(s, 2), [1, 0]); +}); + +test('no keyword or Portal hook moves or removes cards (§10 v1 constraint)', () => { + const s = board([topic('depth', 'featured-article'), topic('attention', 'main-page'), topic('reach', 'interwiki')]); + for (const lane of [0, 1, 2]) { place(s, 0, lane, card()); place(s, 1, lane, card()); } + const count = () => s.lanes.map(l => l.cards.map(side => side.map(c => c.card.cardId))); + for (const id of [...V1_KEYWORDS, ...OPTIONAL_KEYWORDS]) { + const before = count(); + const c = reveal(s, 0, 1, card({ keyword: id })); + endOfTurn(s, c); + s.lanes[1].cards[0].pop(); + assert.deepEqual(count(), before, id); + } +}); diff --git a/tests/game-property.test.ts b/tests/game-property.test.ts new file mode 100644 index 0000000..dd2d80f --- /dev/null +++ b/tests/game-property.test.ts @@ -0,0 +1,123 @@ +// Property tests over random legal play (engine-b). Failures print a seed: rerun with PROP_SEED=. +import test from 'node:test'; +import assert from 'node:assert/strict'; +import { + DEFAULT_RULESET, FACTION_KEYWORD, PLAYERS, applyAction, createMatch, deserialize, isOver, legalActions, replay, result, + serialize, starterDeck, viewFor, type Action, type Faction, type GameCard, type MatchState, +} from '../shared/game/index.ts'; +import { forAll, type Gen } from './game/property.ts'; + +const MAX_ACTIONS = 2000; +const FACTIONS = Object.keys(FACTION_KEYWORD) as Faction[]; +const STATS = ['attention', 'depth', 'reach'] as const; + +/** A starter deck with random factions, homes and trend, keywords per §10.1, so every keyword and Portal gets exercised. */ +function randomDeck(g: Gen, tag: string): GameCard[] { + return starterDeck(tag).map(card => { + const faction = g.pick(FACTIONS); + return { ...card, cardId: `${tag}:${card.cardId}`, faction, home: g.pick(STATS), trend: g.pick([-1, 0, 0, 1] as const), + keyword: card.cost === 1 ? null : FACTION_KEYWORD[faction] }; + }); +} + +function decksFor(g: Gen, seed: number): [GameCard[], GameCard[]] { + return [randomDeck(g, `a-${seed}`), randomDeck(g, `b-${seed}`)]; +} + +/** Random legal play; commits come out at random so queues of every length happen. Concede is rare. */ +function playOut(g: Gen, state: MatchState, check?: (s: MatchState) => void) { + const log: Action[] = []; + for (let steps = 0; !isOver(state); steps++) { + assert.ok(steps <= MAX_ACTIONS, `match did not terminate within ${MAX_ACTIONS} actions`); + const options = PLAYERS.flatMap(player => legalActions(state, player)); + assert.ok(options.length > 0, `no legal actions in a live match (turn ${state.turn})`); + const action: Action = g.bool(0.002) ? { type: 'concede', player: g.pick(PLAYERS) } : g.pick(options); + log.push(action); + state = applyAction(state, action); + check?.(state); + } + return { state, log }; +} + +test('random legal play never crashes, always terminates within the turn cap, and has a result', () => { + forAll(200, (g, seed) => { + const { state } = playOut(g, createMatch(DEFAULT_RULESET, decksFor(g, seed), seed)); + const r = result(state); + assert.ok(r, 'finished match has a result'); + assert.ok(r.turns <= DEFAULT_RULESET.turns); + if (r.reason !== 'concede' && r.reason !== 'afk') { + const led = r.topicsLed; + if (r.winner === null) assert.equal(led[0], led[1]); + else assert.ok(led[r.winner] > led[1 - r.winner] || r.reason === 'totalPower'); + } + }); +}); + +test('same seed, decks and actions give the same match (replay)', () => { + forAll(50, (g, seed) => { + const decks = decksFor(g, seed); + const first = playOut(g, createMatch(DEFAULT_RULESET, decks, seed)); + const again = replay(DEFAULT_RULESET, decks, seed, first.log); + assert.deepEqual(again, first.state); + }); +}); + +test('createMatch is deterministic per seed and varies across seeds', () => { + const decks = (): [GameCard[], GameCard[]] => [starterDeck('x'), starterDeck('y')]; + assert.deepEqual(createMatch(DEFAULT_RULESET, decks(), 7), createMatch(DEFAULT_RULESET, decks(), 7)); + const distinct = new Set(Array.from({ length: 20 }, (_, i) => JSON.stringify(createMatch(DEFAULT_RULESET, decks(), i)))); + assert.ok(distinct.size > 1); +}); + +test('serialize/deserialize round-trips after every action', () => { + forAll(30, (g, seed) => { + playOut(g, createMatch(DEFAULT_RULESET, decksFor(g, seed), seed), s => assert.deepEqual(deserialize(serialize(s)), s)); + }); +}); + +test('applyAction never mutates its input', () => { + forAll(30, (g, seed) => { + let state = createMatch(DEFAULT_RULESET, decksFor(g, seed), seed); + for (let steps = 0; !isOver(state) && steps < MAX_ACTIONS; steps++) { + const before = serialize(state); + const next = applyAction(state, g.pick(PLAYERS.flatMap(player => legalActions(state, player)))); + assert.equal(serialize(state), before); + state = next; + } + }); +}); + +test('every listed legal action is accepted; a finished match lists none', () => { + forAll(30, (g, seed) => { + const { state } = playOut(g, createMatch(DEFAULT_RULESET, decksFor(g, seed), seed), s => { + for (const player of PLAYERS) for (const action of legalActions(s, player)) assert.doesNotThrow(() => applyAction(s, action)); + }); + for (const player of PLAYERS) assert.deepEqual(legalActions(state, player), []); + }); +}); + +test('lane power is never negative and lanes never exceed capacity', () => { + forAll(50, (g, seed) => { + playOut(g, createMatch(DEFAULT_RULESET, decksFor(g, seed), seed), s => { + for (const player of PLAYERS) { + const view = viewFor(s, player); + for (const lane of view.lanes) { + assert.ok(lane.power[0] >= 0 && lane.power[1] >= 0); + for (const side of lane.cardPower) for (const p of side) assert.ok(p >= 0); + } + } + for (const lane of s.lanes) for (const side of lane.cards) assert.ok(side.length <= s.ruleset.laneCapacity); + }); + }); +}); + +test('a view never shows the opponent hand or queue', () => { + forAll(30, (g, seed) => { + playOut(g, createMatch(DEFAULT_RULESET, decksFor(g, seed), seed), s => { + for (const player of PLAYERS) { + const text = JSON.stringify(viewFor(s, player)); + for (const card of s.players[1 - player].hand) assert.ok(!text.includes(`"${card.cardId}"`), `p${player} sees ${card.cardId}`); + } + }); + }); +}); diff --git a/tests/game-starter.test.ts b/tests/game-starter.test.ts new file mode 100644 index 0000000..df2ab40 --- /dev/null +++ b/tests/game-starter.test.ts @@ -0,0 +1,52 @@ +// DESIGN §2.1 starter decks (PR #18). Owner: engine-b. +import test from 'node:test'; +import assert from 'node:assert/strict'; +import { + DEFAULT_DERIVATION, DEFAULT_RULESET, FACTION_KEYWORD, STARTER_DECKS, createMatch, starterDeckById, validateDeck, +} from '../shared/game/index.ts'; + +const countBy = (keys: string[]) => keys.reduce>((m, k) => ({ ...m, [k]: (m[k] ?? 0) + 1 }), {}); + +test('four starter decks, each with the frozen curve, 6+6 factions and 4 cards per home stat', () => { + assert.deepEqual(STARTER_DECKS.map(d => d.id), ['stargazers', 'field-guide', 'headliners', 'pioneers']); + for (const def of STARTER_DECKS) { + const deck = starterDeckById(def.id); + assert.deepEqual(deck.map(c => c.cost), [1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6], def.id); + const factions = Object.values(countBy(deck.map(c => c.faction))); + assert.deepEqual(factions, [6, 6], `${def.id} factions`); + const homes = Object.values(countBy(deck.map(c => c.home))); + assert.deepEqual(homes, [4, 4, 4], `${def.id} homes`); + } +}); + +test('starter cards follow §10.1 and the power curve like owned cards', () => { + for (const def of STARTER_DECKS) for (const card of starterDeckById(def.id)) { + assert.equal(card.source, 'loaner'); + assert.equal(card.rarity, 'Common'); + assert.equal(card.trend, 0); + assert.match(card.cardId, /^loaner:[a-z0-9-]+$/); + if (card.cost === 1) assert.deepEqual([card.keyword, card.power], [null, 2]); + else assert.deepEqual([card.keyword, card.power], [FACTION_KEYWORD[card.faction], DEFAULT_DERIVATION.powerByCost[card.cost]]); + } +}); + +test('all 6 factions and all 4 shared/catalog.ts cards (with real pageIds) are covered', () => { + const all = STARTER_DECKS.flatMap(d => starterDeckById(d.id)); + assert.equal(new Set(all.map(c => c.faction)).size, 6); + const ids = Object.fromEntries(all.map(c => [c.title, c.pageId])); + assert.deepEqual([ids.Moon, ids['Periodic table'], ids.Octopus, ids['Albert Einstein']], [19331, 23053, 22780, 736]); + for (const c of all) if (!['Moon', 'Periodic table', 'Octopus', 'Albert Einstein'].includes(c.title)) assert.equal(c.pageId, null, c.title); +}); + +test('every starter deck passes engine deck validation and starts a match against every other', () => { + for (const a of STARTER_DECKS) { + assert.deepEqual(validateDeck(DEFAULT_RULESET, starterDeckById(a.id)), [], a.id); + for (const b of STARTER_DECKS) assert.doesNotThrow(() => createMatch(DEFAULT_RULESET, [starterDeckById(a.id), starterDeckById(b.id)], 1)); + } +}); + +test('modes changing the curve change loaners too; unknown ids are rejected', () => { + const flat = starterDeckById('pioneers', { ...DEFAULT_DERIVATION, powerByCost: [0, 3, 3, 3, 3, 3, 3], vanillaBonus: 0 }); + assert.ok(flat.every(c => c.power === 3)); + assert.throws(() => starterDeckById('nope'), RangeError); +}); diff --git a/tests/game/build.ts b/tests/game/build.ts new file mode 100644 index 0000000..366fdb3 --- /dev/null +++ b/tests/game/build.ts @@ -0,0 +1,57 @@ +/** Hand-built boards for keyword and Portal unit tests (engine-b). */ +import { + DEFAULT_RULESET, KEYWORDS, PORTALS, Rng, cardPower, createMatch, lanePower, starterDeck, + type CardInPlay, type EffectContext, type GameCard, type MatchState, type PlayerId, type Stat, type TopicDef, +} from '../../shared/game/index.ts'; + +export const topic = (stat: Stat, portal: string | null = null, id = portal ?? `plain-${stat}`): TopicDef => + ({ id, name: id, stat, portal }); + +/** Empty board, turn 1; lanes are depth / attention / reach plain Topics unless given. */ +export function board(topics: TopicDef[] = [topic('depth'), topic('attention'), topic('reach')], revealed = true): MatchState { + const state = createMatch(DEFAULT_RULESET, [starterDeck('a'), starterDeck('b')], 'keyword-test'); + state.lanes = topics.map(t => ({ topic: t, portalRevealed: revealed, cards: [[], []] as [CardInPlay[], CardInPlay[]] })); + return state; +} + +let serial = 0; +export function card(overrides: Partial = {}): GameCard { + serial++; + return { cardId: `t${serial}`, pageId: 1000 + serial, title: `Card ${serial}`, faction: 'Culture', rarity: 'Common', + cost: 2, power: 2, home: 'attention', trend: 0, keyword: null, source: 'loaner', ...overrides }; +} + +/** Put a card in a lane with no effects (mutates). */ +export function place(state: MatchState, owner: PlayerId, lane: number, c: GameCard, turn = state.turn): CardInPlay { + state.revealSeq += 1; + const inPlay: CardInPlay = { card: c, owner, lane, turn, seq: state.revealSeq, bonus: 0 }; + state.lanes[lane].cards[owner].push(inPlay); + return inPlay; +} + +export function ctxFor(state: MatchState, params: Record | undefined, lane: number): EffectContext { + return { state, rng: new Rng(1), params: params ?? {}, lane, log: () => {}, power: c => cardPower(state, c) }; +} + +/** Place a card and fire its keyword's onReveal, as the engine does at reveal (mutates). */ +export function reveal(state: MatchState, owner: PlayerId, lane: number, c: GameCard): CardInPlay { + const inPlay = place(state, owner, lane, c); + const keyword = c.keyword ? KEYWORDS[c.keyword] : undefined; + keyword?.onReveal?.(ctxFor(state, state.ruleset.keywordParams[keyword.id], lane), inPlay); + return inPlay; +} + +export function endOfTurn(state: MatchState, self: CardInPlay): void { + const keyword = self.card.keyword ? KEYWORDS[self.card.keyword] : undefined; + keyword?.endOfTurn?.(ctxFor(state, state.ruleset.keywordParams[keyword.id], self.lane), self); +} + +/** A Portal's at-scoring Topic power for [seat 0, seat 1] (DESIGN §7). */ +export function atScoring(state: MatchState, lane: number): [number, number] { + const id = state.lanes[lane].topic.portal; + const portal = id ? PORTALS[id] : undefined; + const params = state.ruleset.portalParams[state.lanes[lane].topic.id] ?? state.ruleset.portalParams[id!]; + return portal?.atScoring?.(ctxFor(state, params, lane)) ?? [0, 0]; +} + +export { cardPower, lanePower }; diff --git a/tests/game/property.ts b/tests/game/property.ts new file mode 100644 index 0000000..08db70c --- /dev/null +++ b/tests/game/property.ts @@ -0,0 +1,47 @@ +/** + * Tiny dependency-free property-testing helper. Each case gets its own seed + * so a failure reports a reproducible seed: rerun with PROP_SEED=. + */ +export function mulberry32(seed: number): () => number { + let a = seed >>> 0; + return () => { + a = (a + 0x6d2b79f5) >>> 0; + let t = a; + t = Math.imul(t ^ (t >>> 15), t | 1); + t ^= t + Math.imul(t ^ (t >>> 7), t | 61); + return ((t ^ (t >>> 14)) >>> 0) / 4294967296; + }; +} + +export interface Gen { + rand: () => number; + int(min: number, max: number): number; + pick(items: readonly T[]): T; + bool(p?: number): boolean; +} + +export function gen(seed: number): Gen { + const rand = mulberry32(seed); + return { + rand, + int: (min, max) => min + Math.floor(rand() * (max - min + 1)), + pick: items => { + if (!items.length) throw new Error('pick from empty list'); + return items[Math.floor(rand() * items.length)]; + }, + bool: (p = 0.5) => rand() < p, + }; +} + +export function forAll(runs: number, property: (g: Gen, seed: number) => void, baseSeed = 0x5eed): void { + const fixed = process.env.PROP_SEED; + const seeds = fixed ? [Number(fixed)] : Array.from({ length: runs }, (_, i) => (baseSeed + i * 2654435761) >>> 0); + for (const seed of seeds) { + try { + property(gen(seed), seed); + } catch (error) { + const message = error instanceof Error ? error.message : String(error); + throw new Error(`Property failed for seed ${seed} (rerun with PROP_SEED=${seed}): ${message}`, { cause: error }); + } + } +} From 5a83d34c596b5449d09989fd360cfdff1f7f1dd4 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 04:42:51 +0000 Subject: [PATCH 4/5] Night 1: final card data, 236 cards, percentiles and starter-deck pageIds (#28) Co-Authored-By: Claude Opus 5.5 --- docs/game/CARD_DATA.md | 163 +- docs/game/card-sample.json | 11807 +++++++++++++++++++++++++++++++- docs/game/starter-cards.json | 1980 +++++- scripts/night/card_analyze.py | 17 + scripts/night/card_sample.py | 2 +- 5 files changed, 13506 insertions(+), 463 deletions(-) diff --git a/docs/game/CARD_DATA.md b/docs/game/CARD_DATA.md index 949e90f..105b0df 100644 --- a/docs/game/CARD_DATA.md +++ b/docs/game/CARD_DATA.md @@ -1,67 +1,119 @@ # Card data: real stat distributions (council-data) -Status: **interim**, generated 2026-11-16 23:06 EST. The full 330-card run is still fetching pageviews politely; this file and `card-sample.json` will be regenerated. +Status: **final for tonight**, 236 fully enriched cards, generated 2026-11-16 23:20 EST. Sampling stopped early on night-lead's request because Wikimedia was rate-limiting (429) our shared egress IP. 330 cards were picked; the first 236 finished enrichment. -Method: `scripts/night/card_sample.py` draws random ns0 articles in batches of 20 and keeps those passing the `server/wiki.ts` filter (thumbnail from upload/thumb.wikimedia.org, intro extract of at least 40 characters). It enriches them with the same API parameters as `server/enrichment.ts`: six completed months Jun–Oct 2026; attention uses October. It adds Wikidata P31 and 30-day drift (views 10-17..11-15 vs 09-17..10-16). `scripts/night/card_analyze.py` produces the tables below. +**Method:** `scripts/night/card_sample.py` draws random ns0 articles in batches of 20 and keeps those that pass the `server/wiki.ts` filter: a thumbnail from upload/thumb.wikimedia.org and an intro extract of at least 40 characters. About 44% of random pages pass. Each card is enriched with the same API parameters as `server/enrichment.ts`: +- six completed months, Jun–Oct 2026; attention uses October +- monthly views summed from the daily REST pageviews -## Headline findings (INTERIM: 100 fully enriched random illustrated cards; 330 sampled, rest still fetching under Wikimedia 429 rate limits) +On top of that it adds Wikidata P31 and a 30-day drift (views 10-17..11-15 vs 09-17..10-16). -1. **Raw stats are compressed and skewed.** Median card: attention 33, depth 63, reach 24 (p10–p90: attention 23–53, depth 54–71, reach 9–48). No card above 81 on anything; 100 is unreachable honestly. **Use the 1–10 tier tables below (sample deciles), not 0–100.** -2. **Correlation is weaker than feared, except attention↔depth (Spearman 0.59).** Reach is nearly independent of both (0.10 / 0.02): stub villages get many bot-made language editions. So reach is a real separate axis; attention+depth partly double-count fame. -3. **Underlying raw values are very long-tailed:** monthly views median 94 (p90 1,438, max 14k); pageBytes median 6 KB; languageCount median 4, and **10% have 0 other languages** (reach 0). -4. **Trend is mostly negative:** 69% of cards have trendPercent < 0 (median −10%), 31% positive, 14% swing by more than 50%. Null is rare (1%). A "Trending" keyword fires for about a third of cards: fine as a small ±1. -5. **Live values are fairly stable in score terms:** 30-day pageview drift median |18%| (p90 55%), but that moves the attention score by only a median of **1.4 points** (p90 5.6). So "live vs. mint" differences are small for random cards; big swings only come from deliberate inflation (see the critic's point A4). -6. **The legacy `category()` buckets are unusable as factions:** Culture 53%, People 30%, Nature 9%, History 5%, Science 3%, **Space 0%**. -7. **Candidate factions from Wikidata P31 (instance of), clean and readable:** People 31%, Places 25%, Nature 10%, Structures 6%, Works 5%, Events 5%, Sport 3%, Ideas & Tech 3%, Organisations 2%, unclassified 10%. Suggest **6 factions**: People, Places, Nature, Works & Culture (Works + Organisations + Sport), Structures, Events & Ideas (Events + Ideas & Tech), plus a neutral fallback. People and Places are big, so faction bonuses should scale with *share in deck*, not raw count, or the small factions need their own perks. -8. **Starter/loaner list:** frozen stats for up to 4 cards per legacy category, spread across tiers, in `docs/game/starter-cards.json` (Space has no sample cards: hand-pick e.g. the Moon from `shared/catalog.ts`). +**Politeness:** the sampler runs serially at 1 request a second or slower, honours Retry-After, and caches every response to disk. `scripts/night/card_analyze.py` produces everything below, plus the `percentiles` (99 cut points each, for DESIGN §1.1) in `card-sample.json`. + +## Files +- `card-sample.json`: `cards[]` with the `PageEnrichment` shape, plus `category` (legacy `category()`), `instanceOf` (P31), `faction` (the P31 rules below), `tiers` and `drift30`. Top level: `percentiles`, `tierBreakpoints`, `factionRules` and `note`. +- `starter-cards.json`: the loaner **pool**, 20 real frozen snapshots (a `MintStatsSnapshot` in `snapshot`). It also holds `starterDeckPageIds`: the 48 DESIGN §2.1 starter titles with their real pageIds and `cardId`s. + +## Headline findings (236 cards) +1. **Raw scores are compressed.** + + | score | median | p10–p90 | max | + |---|---|---|---| + | attention | 32 | 20–53 | 77 | + | depth | 63 | 54–73 | 87 | + | reach | 20 | 0–45 | 70 | + + No honest card reaches 100. Use `percentiles` (§1.1) or the 1–10 tiers, never the raw 0–100 values. +2. **Correlations (Spearman):** + - attention and depth: 0.61, so these two double-count fame + - reach is nearly independent of both (0.17 with attention, 0.02 with depth) +3. **Reach has a hard floor:** 18% of cards (42) have 0 other languages, so reach is 0. Under the §1.1 counting, all of them get pct_reach of about 8. +4. **Raw values are long-tailed:** + + | value | median | p90 | max | + |---|---|---|---| + | monthly views | 82 | 1,576 | 42k | + | pageBytes | 6.1 KB | 24 KB | | + | languageCount | 3 | 22 | | +5. **Trend is mostly down:** + - 65% of cards have a negative trendPercent, 34% positive; median −9.5% + - 16% swing by more than 50% either way + - null: 1% +6. **Live drift is small in score terms.** The 30-day median |pageview drift| is 22% (p90 60%). That moves attention by only **1.7 points** (p90 6.3), so at-mint and live values differ little unless someone inflates them. +7. **The legacy `category()` split is very skewed:** + + | category | share | + |---|---| + | Culture | 56% | + | People | 26% | + | Nature | 8% | + | History | 8% | + | Science | 1% | + | Space | 0.4% | +8. **Candidate factions from P31:** + + | faction | share | + |---|---| + | People | 29% | + | Places | 20% | + | Nature | 8% | + | Structures | 7% | + | Works | 5% | + | Events | 5% | + | Organisations | 4% | + | Ideas & Tech | 3% | + | Sport | 3% | + | unclassified | 14% | + + Suggested 6 for v2: People, Places, Nature, Works & Culture (Works + Organisations + Sport), Structures, Events & Ideas, plus a neutral fallback. ## Full tables -Sample: **100 cards**; ~44% (149/340 logged during sampling) of random pages pass the illustrated filter. Pageviews available for 100. +Sample: **236 cards**; ~44% (149/340 logged during sampling) of random pages pass the illustrated filter. Pageviews available for 236. | stat | n | min | p10 | p25 | median | p75 | p90 | max | mean | skew | |---|---|---|---|---|---|---|---|---|---|---| -| attention | 100 | 13 | 23 | 27 | 33 | 41 | 53 | 69 | 35 | 0.75 | -| depth | 100 | 50 | 54 | 59 | 63 | 68 | 71 | 81 | 63 | 0.24 | -| reach | 100 | 0 | 9 | 16 | 24 | 36 | 48 | 59 | 26 | 0.11 | -| pageBytes | 100 | 998 | 1804 | 3407 | 6018 | 12512 | 19161 | 74169 | 9885 | 3.20 | -| languageCount | 100 | 0 | 1 | 2 | 4 | 11 | 27 | 56 | 9 | 1.83 | -| monthlyViews | 100 | 5 | 22 | 43 | 94 | 277 | 1438 | 14374 | 611 | 5.76 | -| dailyAverage | 100 | 0.2 | 0.7 | 1.4 | 3.0 | 8.9 | 46.4 | 463.7 | 19.7 | 5.76 | -| trendPercent | 99 | -86.6 | -45.1 | -26.4 | -10.4 | 4.5 | 21.1 | 187.1 | -9.5 | 1.83 | -| drift30Percent | 99 | -94.7 | -45.9 | -30.7 | -12.7 | -1.7 | 14.8 | 72.1 | -16.1 | -0.20 | +| attention | 236 | 13 | 20 | 25 | 32 | 41 | 53 | 77 | 35 | 0.78 | +| depth | 236 | 48 | 54 | 58 | 63 | 68 | 73 | 87 | 64 | 0.42 | +| reach | 236 | 0 | 0 | 10 | 20 | 33 | 45 | 70 | 23 | 0.36 | +| pageBytes | 236 | 772 | 1847 | 3084 | 6110 | 12805 | 24412 | 168332 | 11691 | 4.61 | +| languageCount | 236 | 0 | 0 | 1 | 3 | 9 | 22 | 124 | 8 | 4.14 | +| monthlyViews | 236 | 5 | 16 | 30 | 82 | 300 | 1576 | 42025 | 812 | 9.82 | +| dailyAverage | 236 | 0.2 | 0.5 | 1.0 | 2.6 | 9.7 | 50.8 | 1355.6 | 26.2 | 9.82 | +| trendPercent | 234 | -86.6 | -49.3 | -26.3 | -9.5 | 5.3 | 31.2 | 388.9 | -3.6 | 4.11 | +| drift30Percent | 235 | -94.7 | -58.2 | -33.8 | -12.9 | 1.0 | 27.7 | 2268.7 | -4.2 | 14.07 | **Spearman rank correlations** (cards with pageviews): | | attention | depth | reach | trendPercent | drift30Percent | |---|---|---|---|---|---| -| attention | 1.00 | 0.59 | 0.10 | 0.24 | 0.25 | -| depth | 0.59 | 1.00 | 0.02 | 0.07 | 0.05 | -| reach | 0.10 | 0.02 | 1.00 | -0.10 | 0.24 | -| trendPercent | 0.24 | 0.07 | -0.10 | 1.00 | 0.53 | -| drift30Percent | 0.25 | 0.05 | 0.24 | 0.53 | 1.00 | +| attention | 1.00 | 0.61 | 0.17 | 0.35 | 0.33 | +| depth | 0.61 | 1.00 | 0.02 | 0.15 | 0.14 | +| reach | 0.17 | 0.02 | 1.00 | 0.00 | 0.09 | +| trendPercent | 0.35 | 0.15 | 0.00 | 1.00 | 0.31 | +| drift30Percent | 0.33 | 0.14 | 0.09 | 0.31 | 1.00 | -(n=99; attention~monthlyViews, depth~pageBytes, reach~languageCount are monotonic so their rank correlations are identical.) +(n=234; attention~monthlyViews, depth~pageBytes, reach~languageCount are monotonic so their rank correlations are identical.) -**trendPercent sign:** positive 31 (31%), negative 68 (69%), zero 0; null (prior month 0 or no views) 1. |trend| > 50%: 14; > 100%: 1. +**trendPercent sign:** positive 79 (34%), negative 153 (65%), zero 2; null (prior month 0 or no views) 2. |trend| > 50%: 38; > 100%: 7. -**30-day drift** (views 10-17..11-15 vs 09-17..10-16): median |drift| 18%, p90 |drift| 55%. Attention score change implied: median 1.4 points, p90 5.6 points. +**30-day drift** (views 10-17..11-15 vs 09-17..10-16): median |drift| 22%, p90 |drift| 60%. Attention score change implied: median 1.7 points, p90 6.3 points. -**attention histogram (deciles 0-9,10-19..90-100):** 0 4 30 39 12 11 4 0 0 0 -**depth histogram (deciles 0-9,10-19..90-100):** 0 0 0 0 0 30 53 15 2 0 -**reach histogram (deciles 0-9,10-19..90-100):** 10 25 23 23 10 9 0 0 0 0 +**attention histogram (deciles 0-9,10-19..90-100):** 0 19 74 74 36 20 12 1 0 0 +**depth histogram (deciles 0-9,10-19..90-100):** 0 0 0 0 2 72 117 38 7 0 +**reach histogram (deciles 0-9,10-19..90-100):** 42 60 53 43 21 15 1 1 0 0 -Reach = 0 (no other languages): 10; reach 100 (>=999 langs) impossible in practice, max langs 56. Attention null: 0; attention 0: 0. +Reach = 0 (no other languages): 42; reach 100 (>=999 langs) impossible in practice, max langs 124. Attention null: 0; attention 0: 0. -**Sum of three stats:** min 84, p10 97, p25 107, median 120, p75 140, p90 155, max 193 +**Sum of three stats:** min 73, p10 89, p25 102, median 116, p75 135, p90 156, max 222 -**Legacy `category()` (server/wiki.ts):** Culture 53, People 30, Nature 9, History 5, Science 3 +**Legacy `category()` (server/wiki.ts):** Culture 133, People 62, Nature 19, History 18, Science 3, Space 1 -**Top Wikidata P31 classes:** human 30, taxon 8, river 4, village 4, commune of France 3, musical group 2, building 2, castle 2, rural municipality of Austria 1, municipality of Austria 1, municipality of Brazil 1, television film 1, nor'easter 1, rail company (Japan) 1, village of Poland 1, municipality 1, civil parish 1, association football match 1, final 1, local government area of Victoria 1, plant disease 1, basketball team season 1, mosque 1, functional programming language 1, purely functional programming language 1, dependently typed programming language 1, programming language 1, free software 1, proof assistant 1, municipality of Croatia 1, municipality of Bangladesh 1, town 1, town in the United States 1, municipality of Georgia 1, epiphyte 1, protest 1, region of Mauritania 1, legislative election 1, musical work/composition 1, plateau 1 +**Top Wikidata P31 classes:** human 64, taxon 16, village 7, commune of France 6, river 5, human settlement 4, musical group 3, building 3, gene 3, village of Poland 2, civil parish 2, protest 2, legislative election 2, castle 2, events in a specific year or time period 2, township of Pennsylvania 2, film 2, company 2, island 2, rural municipality of Austria 1, municipality of Austria 1, municipality of Brazil 1, television film 1, nor'easter 1, rail company (Japan) 1, municipality 1, association football match 1, final 1, local government area of Victoria 1, plant disease 1, basketball team season 1, mosque 1, functional programming language 1, purely functional programming language 1, dependently typed programming language 1, programming language 1, free software 1, proof assistant 1, municipality of Croatia 1, municipality of Bangladesh 1 -No Wikidata item: 0; no P31: 6 +No Wikidata item: 0; no P31: 13 -**Most frequent category words (cards containing):** stubs 35, births 27, people 26, from 24, century 22, living 16, geography 15, deaths 14, american 13, county 9, university 8, male 7, united 7, film 7, players 7, district 6, states 6, sports 6, biography 6, television 5, alumni 5, genera 5, established 5, villages 5, football 5, city 5, buildings 5, expatriate 5, sportspeople 5, sportsmen 5, towns 4, municipalities 4, writers 4, women 4, faculty 4, communes 4, rivers 4, places 4, establishments 4, actors 4, california 4, russian 4, association 4, structures 4, described 3, british 3, french 3, ohio 3, academics 3, based 3, japanese 3, pennsylvania 3, argentine 3, australia 3, populated 3, directors 3, rock 3, musical 3, conference 3, division 3 +**Most frequent category words (cards containing):** stubs 81, births 55, people 50, from 50, century 46, living 33, geography 30, american 29, deaths 28, united 27, county 27, states 23, established 21, establishments 20, alumni 18, places 17, university 16, buildings 16, state 15, national 14, structures 14, male 13, players 12, district 11, villages 11, sportsmen 11, members 11, described 10, football 10, sports 10, city 10, film 10, british 9, companies 9, populated 9, sportspeople 9, biography 9, york 9, women 8, taxa 8, germany 8, politicians 8, television 7, writers 7, french 7, genera 7, based 7, communes 7, language 7, expatriate 7, named 7, olympics 7, completed 7, historic 7, register 7, faculty 6, pennsylvania 6, civil 6, history 6, california 6 ## Rank-normalised tiers (1–10) @@ -70,29 +122,28 @@ Tier = 1 + number of breakpoints the score is **>=**. Breakpoints are the sample | stat | p10 | p20 | p30 | p40 | p50 | p60 | p70 | p80 | p90 | |---|---|---|---|---|---|---|---|---|---| -| attention | 23 | 25 | 28 | 31 | 33 | 36 | 38 | 45 | 53 | -| depth | 54 | 57 | 60 | 61 | 63 | 65 | 67 | 69 | 72 | -| reach | 10 | 10 | 16 | 20 | 26 | 30 | 36 | 39 | 49 | +| attention | 20 | 24 | 27 | 30 | 32 | 35 | 39 | 44 | 53 | +| depth | 54 | 57 | 59 | 61 | 63 | 65 | 67 | 69 | 73 | +| reach | 0 | 10 | 10 | 16 | 20 | 26 | 30 | 36 | 45 | -Resulting tier counts — attention: None:0 1:10 2:9 3:7 4:14 5:8 6:12 7:7 8:12 9:10 10:11 -; depth: 1:7 2:11 3:12 4:6 5:11 6:11 7:9 8:9 9:14 10:10 -; reach: 1:10 2:0 3:13 4:12 5:15 6:8 7:11 8:10 9:11 10:10 +Resulting tier counts — attention: None:0 1:19 2:27 3:24 4:23 5:23 6:17 7:28 8:25 9:22 10:28 +; depth: 1:14 2:23 3:26 4:21 5:25 6:26 7:22 8:21 9:30 10:28 +; reach: 1:0 2:42 3:0 4:30 5:30 6:32 7:21 8:27 9:27 10:27 -Starter candidates: 19 written to /tmp/claude-1000/-home-eric-worker-jobs-night-council-data/d4e31987-ce7f-4f28-8262-8f0225215102/scratchpad/starter.json: Counter({'Nature': 4, 'People': 4, 'History': 4, 'Culture': 4, 'Science': 3}) ## Candidate factions (Wikidata P31 rules) | faction | n | share | median attention | median depth | median reach | example | |---|---|---|---|---|---|---| -| People | 31 | 31% | 33 | 65 | 26 | Salahuddin of Aceh | -| Places | 25 | 25% | 28 | 61 | 36 | St. Georgen am Längsee | -| Nature | 10 | 10% | 30 | 56 | 31 | Dichromorpha viridis | -| Other | 10 | 10% | 52 | 64 | 22 | Village (Pennsylvania) | -| Structures | 6 | 6% | 32 | 58 | 16 | Pathrail Mosque | -| Works | 5 | 5% | 40 | 64 | 16 | The Best of Men | -| Events | 5 | 5% | 38 | 72 | 10 | April 2021 nor'easter | -| Sport | 3 | 3% | 25 | 71 | 0 | 1912 Argentine Primera División final | -| Ideas & Tech | 3 | 3% | 37 | 62 | 20 | Agda (programming language) | -| Organisations | 2 | 2% | 50 | 62 | 24 | Hiroshima Electric Railway | +| People | 68 | 29% | 31 | 65 | 22 | Salahuddin of Aceh | +| Places | 48 | 20% | 28 | 61 | 32 | St. Georgen am Längsee | +| Other | 34 | 14% | 40 | 65 | 16 | Village (Pennsylvania) | +| Nature | 20 | 8% | 30 | 56 | 29 | Dichromorpha viridis | +| Structures | 17 | 7% | 26 | 57 | 10 | Pathrail Mosque | +| Works | 12 | 5% | 36 | 63 | 13 | The Best of Men | +| Events | 12 | 5% | 40 | 72 | 13 | April 2021 nor'easter | +| Organisations | 10 | 4% | 48 | 68 | 10 | Hiroshima Electric Railway | +| Ideas & Tech | 8 | 3% | 30 | 63 | 16 | Agda (programming language) | +| Sport | 7 | 3% | 27 | 70 | 16 | 1912 Argentine Primera División final | -Unclassified P31 labels: typeface 1, annexation 1, position 1, family 1 +Unclassified P31 labels: typeface 1, annexation 1, position 1, family 1, historic site 1, automobile manufacturer 1, historical society 1, stock character 1, pigeon breed 1, shopping center 1, Wikimedia list article 1, clinical sign 1, tram route 1, rubber-tyred tram 1, oil refinery 1, waterfall 1, orisha 1, water deity 1, Loa 1, arch 1, award 1, sex scandal 1, military base 1, artillery battery 1 diff --git a/docs/game/card-sample.json b/docs/game/card-sample.json index c66c833..b82b298 100644 --- a/docs/game/card-sample.json +++ b/docs/game/card-sample.json @@ -1,8 +1,8 @@ { - "generatedAt": "2026-11-17T04:05:04.081324+00:00", + "generatedAt": "2026-11-17T04:19:07.777994+00:00", "method": "random ns0 batches of 20, filter as server/wiki.ts (thumbnail + extract>=40); enrichment as server/enrichment.ts; monthly views summed from daily REST pageviews; P31 from Wikidata", - "randomBatches": 0, - "rawPagesSeen": 0, + "randomBatches": 17, + "rawPagesSeen": 340, "cards": [ { "pageId": 8723556, @@ -70,7 +70,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 7, + "depth": 6, + "reach": 7 + }, + "faction": "People", + "category": "People" }, { "pageId": 10800205, @@ -140,7 +147,14 @@ "id": "Q667509", "label": "municipality of Austria" } - ] + ], + "tiers": { + "attention": 4, + "depth": 5, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 25468405, @@ -206,7 +220,14 @@ "id": "Q3184121", "label": "municipality of Brazil" } - ] + ], + "tiers": { + "attention": 5, + "depth": 5, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 25856905, @@ -272,7 +293,14 @@ "id": "Q16521", "label": "taxon" } - ] + ], + "tiers": { + "attention": 7, + "depth": 1, + "reach": 6 + }, + "faction": "Nature", + "category": "Nature" }, { "pageId": 36740675, @@ -343,7 +371,14 @@ "id": "Q506240", "label": "television film" } - ] + ], + "tiers": { + "attention": 9, + "depth": 6, + "reach": 6 + }, + "faction": "Works", + "category": "Science" }, { "pageId": 41530188, @@ -411,7 +446,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 4, + "depth": 8, + "reach": 7 + }, + "faction": "People", + "category": "People" }, { "pageId": 41676480, @@ -485,7 +527,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 2, + "depth": 5, + "reach": 6 + }, + "faction": "People", + "category": "People" }, { "pageId": 60187566, @@ -552,7 +601,14 @@ "id": "Q16521", "label": "taxon" } - ] + ], + "tiers": { + "attention": 5, + "depth": 2, + "reach": 7 + }, + "faction": "Nature", + "category": "Nature" }, { "pageId": 67426902, @@ -623,7 +679,14 @@ "id": "Q2001587", "label": "nor'easter" } - ] + ], + "tiers": { + "attention": 6, + "depth": 10, + "reach": 2 + }, + "faction": "Events", + "category": "Culture" }, { "pageId": 8330236, @@ -694,7 +757,14 @@ "id": "Q85907346", "label": "rail company (Japan)" } - ] + ], + "tiers": { + "attention": 9, + "depth": 7, + "reach": 9 + }, + "faction": "Organisations", + "category": "Culture" }, { "pageId": 15810707, @@ -760,7 +830,14 @@ "id": "Q484170", "label": "commune of France" } - ] + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 15884863, @@ -825,7 +902,14 @@ "id": "Q4022", "label": "river" } - ] + ], + "tiers": { + "attention": 3, + "depth": 4, + "reach": 7 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 18775530, @@ -891,7 +975,14 @@ "id": "Q3558970", "label": "village of Poland" } - ] + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 24509551, @@ -951,7 +1042,14 @@ "prev30": 60, "pct": -33.33333333333333 }, - "instanceOf": [] + "instanceOf": [], + "tiers": { + "attention": 4, + "depth": 4, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" }, { "pageId": 25207440, @@ -1018,7 +1116,14 @@ "id": "Q27676428", "label": "municipality" } - ] + ], + "tiers": { + "attention": 2, + "depth": 5, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 29902322, @@ -1088,7 +1193,14 @@ "id": "Q1115575", "label": "civil parish" } - ] + ], + "tiers": { + "attention": 4, + "depth": 4, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 66508497, @@ -1155,7 +1267,14 @@ "id": "Q16521", "label": "taxon" } - ] + ], + "tiers": { + "attention": 5, + "depth": 1, + "reach": 8 + }, + "faction": "Nature", + "category": "Nature" }, { "pageId": 80560274, @@ -1230,7 +1349,14 @@ "id": "Q1366722", "label": "final" } - ] + ], + "tiers": { + "attention": 2, + "depth": 8, + "reach": 2 + }, + "faction": "Sport", + "category": "Culture" }, { "pageId": 466891, @@ -1298,7 +1424,14 @@ "id": "Q1426035", "label": "local government area of Victoria" } - ] + ], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 2453788, @@ -1363,7 +1496,14 @@ "id": "Q2662845", "label": "plant disease" } - ] + ], + "tiers": { + "attention": 9, + "depth": 8, + "reach": 6 + }, + "faction": "Nature", + "category": "Culture" }, { "pageId": 2806760, @@ -1449,7 +1589,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "People", + "category": "People" }, { "pageId": 9026000, @@ -1511,7 +1658,14 @@ "prev30": 1458, "pct": -11.179698216735254 }, - "instanceOf": [] + "instanceOf": [], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 6 + }, + "faction": "Other", + "category": "History" }, { "pageId": 15768716, @@ -1577,7 +1731,14 @@ "id": "Q484170", "label": "commune of France" } - ] + ], + "tiers": { + "attention": 5, + "depth": 4, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 38195538, @@ -1644,7 +1805,14 @@ "id": "Q215380", "label": "musical group" } - ] + ], + "tiers": { + "attention": 6, + "depth": 3, + "reach": 4 + }, + "faction": "Works", + "category": "Culture" }, { "pageId": 39770094, @@ -1713,7 +1881,14 @@ "id": "Q26894053", "label": "basketball team season" } - ] + ], + "tiers": { + "attention": 3, + "depth": 10, + "reach": 2 + }, + "faction": "Sport", + "category": "Culture" }, { "pageId": 49830722, @@ -1780,7 +1955,14 @@ "id": "Q16521", "label": "taxon" } - ] + ], + "tiers": { + "attention": 5, + "depth": 2, + "reach": 2 + }, + "faction": "Nature", + "category": "Nature" }, { "pageId": 52302489, @@ -1850,7 +2032,14 @@ "id": "Q32815", "label": "mosque" } - ] + ], + "tiers": { + "attention": 5, + "depth": 6, + "reach": 6 + }, + "faction": "Structures", + "category": "Culture" }, { "pageId": 1979500, @@ -1924,7 +2113,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 8, + "depth": 6, + "reach": 9 + }, + "faction": "People", + "category": "People" }, { "pageId": 4426773, @@ -2023,7 +2219,14 @@ "id": "Q11387554", "label": "proof assistant" } - ] + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 9 + }, + "faction": "Ideas & Tech", + "category": "Science" }, { "pageId": 4674437, @@ -2092,7 +2295,14 @@ "id": "Q57058", "label": "municipality of Croatia" } - ] + ], + "tiers": { + "attention": 8, + "depth": 9, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 5096391, @@ -2182,7 +2392,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 10 + }, + "faction": "People", + "category": "People" }, { "pageId": 15915366, @@ -2248,7 +2465,14 @@ "id": "Q484170", "label": "commune of France" } - ] + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 15963682, @@ -2351,7 +2575,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 6, + "depth": 9, + "reach": 9 + }, + "faction": "People", + "category": "People" }, { "pageId": 28025187, @@ -2419,7 +2650,14 @@ "id": "Q51049922", "label": "village" } - ] + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 49116132, @@ -2490,7 +2728,14 @@ "id": "Q3957", "label": "town" } - ] + ], + "tiers": { + "attention": 3, + "depth": 5, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 49444193, @@ -2563,7 +2808,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 7, + "depth": 10, + "reach": 9 + }, + "faction": "People", + "category": "People" }, { "pageId": 110015, @@ -2634,7 +2886,14 @@ "id": "Q76514543", "label": "municipality of Georgia" } - ] + ], + "tiers": { + "attention": 7, + "depth": 7, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 11240525, @@ -2718,7 +2977,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 7, + "depth": 4, + "reach": 9 + }, + "faction": "People", + "category": "People" }, { "pageId": 23256692, @@ -2788,7 +3054,14 @@ "id": "Q188238", "label": "epiphyte" } - ] + ], + "tiers": { + "attention": 2, + "depth": 1, + "reach": 8 + }, + "faction": "Nature", + "category": "Nature" }, { "pageId": 30886907, @@ -2860,7 +3133,14 @@ "id": "Q4022", "label": "river" } - ] + ], + "tiers": { + "attention": 6, + "depth": 5, + "reach": 4 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 62190512, @@ -2934,7 +3214,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 5, + "depth": 4, + "reach": 6 + }, + "faction": "People", + "category": "People" }, { "pageId": 64406081, @@ -3001,7 +3288,14 @@ "id": "Q532", "label": "village" } - ] + ], + "tiers": { + "attention": 3, + "depth": 6, + "reach": 4 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 65287105, @@ -3076,7 +3370,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 10, + "depth": 6, + "reach": 5 + }, + "faction": "People", + "category": "People" }, { "pageId": 81307395, @@ -3152,7 +3453,14 @@ "id": "Q273120", "label": "protest" } - ] + ], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 4 + }, + "faction": "Events", + "category": "Culture" }, { "pageId": 902446, @@ -3218,7 +3526,14 @@ "id": "Q846327", "label": "region of Mauritania" } - ] + ], + "tiers": { + "attention": 7, + "depth": 9, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 1374812, @@ -3296,7 +3611,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 10 + }, + "faction": "People", + "category": "People" }, { "pageId": 15362336, @@ -3364,7 +3686,14 @@ "id": "Q2618461", "label": "legislative election" } - ] + ], + "tiers": { + "attention": 7, + "depth": 4, + "reach": 5 + }, + "faction": "Events", + "category": "History" }, { "pageId": 23242983, @@ -3432,7 +3761,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 7, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" }, { "pageId": 49648409, @@ -3499,7 +3835,14 @@ "id": "Q105543609", "label": "musical work/composition" } - ] + ], + "tiers": { + "attention": 3, + "depth": 9, + "reach": 4 + }, + "faction": "Works", + "category": "Culture" }, { "pageId": 84332185, @@ -3568,7 +3911,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 7, + "depth": 4, + "reach": 4 + }, + "faction": "People", + "category": "People" }, { "pageId": 2385264, @@ -3642,7 +3992,14 @@ "id": "Q4022", "label": "river" } - ] + ], + "tiers": { + "attention": 8, + "depth": 5, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 7674700, @@ -3709,7 +4066,14 @@ "id": "Q75520", "label": "plateau" } - ] + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 4 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 21016492, @@ -3776,7 +4140,14 @@ "id": "Q41176", "label": "building" } - ] + ], + "tiers": { + "attention": 6, + "depth": 2, + "reach": 8 + }, + "faction": "Structures", + "category": "Culture" }, { "pageId": 51796741, @@ -3850,7 +4221,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 7, + "depth": 7, + "reach": 2 + }, + "faction": "People", + "category": "People" }, { "pageId": 1587861, @@ -3915,7 +4293,14 @@ "id": "Q2074737", "label": "municipality of Spain" } - ] + ], + "tiers": { + "attention": 9, + "depth": 10, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 4289899, @@ -3985,7 +4370,14 @@ "id": "Q47487597", "label": "monotypic fossil taxon" } - ] + ], + "tiers": { + "attention": 8, + "depth": 7, + "reach": 9 + }, + "faction": "Nature", + "category": "Nature" }, { "pageId": 17506241, @@ -4059,7 +4451,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 4, + "depth": 3, + "reach": 9 + }, + "faction": "People", + "category": "People" }, { "pageId": 20701320, @@ -4130,7 +4529,14 @@ "id": "Q215380", "label": "musical group" } - ] + ], + "tiers": { + "attention": 8, + "depth": 6, + "reach": 5 + }, + "faction": "Works", + "category": "Culture" }, { "pageId": 47784502, @@ -4200,7 +4606,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 5, + "depth": 7, + "reach": 7 + }, + "faction": "People", + "category": "People" }, { "pageId": 64423476, @@ -4268,7 +4681,14 @@ "id": "Q152450", "label": "municipal election" } - ] + ], + "tiers": { + "attention": 6, + "depth": 10, + "reach": 5 + }, + "faction": "Events", + "category": "Culture" }, { "pageId": 77371520, @@ -4333,7 +4753,14 @@ "id": "Q7278", "label": "political party" } - ] + ], + "tiers": { + "attention": 9, + "depth": 4, + "reach": 4 + }, + "faction": "Organisations", + "category": "Culture" }, { "pageId": 115448, @@ -4399,7 +4826,14 @@ "id": "Q1093829", "label": "city in the United States" } - ] + ], + "tiers": { + "attention": 6, + "depth": 6, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 4324457, @@ -4469,7 +4903,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 4, + "depth": 8, + "reach": 6 + }, + "faction": "People", + "category": "People" }, { "pageId": 9472671, @@ -4534,7 +4975,14 @@ "id": "Q17451", "label": "typeface" } - ] + ], + "tiers": { + "attention": 6, + "depth": 1, + "reach": 4 + }, + "faction": "Other", + "category": "Culture" }, { "pageId": 12516367, @@ -4601,7 +5049,14 @@ "id": "Q5084", "label": "hamlet" } - ] + ], + "tiers": { + "attention": 3, + "depth": 1, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 25275009, @@ -4670,7 +5125,14 @@ "id": "Q194465", "label": "annexation" } - ] + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 8 + }, + "faction": "Other", + "category": "History" }, { "pageId": 33276983, @@ -4740,7 +5202,14 @@ "id": "Q486972", "label": "human settlement" } - ] + ], + "tiers": { + "attention": 4, + "depth": 4, + "reach": 9 + }, + "faction": "People", + "category": "Culture" }, { "pageId": 39238370, @@ -4807,7 +5276,14 @@ "id": "Q26895936", "label": "American football team season" } - ] + ], + "tiers": { + "attention": 7, + "depth": 9, + "reach": 2 + }, + "faction": "Sport", + "category": "Culture" }, { "pageId": 46263191, @@ -4890,7 +5366,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 4, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" }, { "pageId": 50185825, @@ -4962,7 +5445,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 4, + "depth": 7, + "reach": 7 + }, + "faction": "People", + "category": "People" }, { "pageId": 52540452, @@ -5037,7 +5527,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 9 + }, + "faction": "People", + "category": "People" }, { "pageId": 71038192, @@ -5102,7 +5599,14 @@ "prev30": 23, "pct": 17.391304347826086 }, - "instanceOf": [] + "instanceOf": [], + "tiers": { + "attention": 3, + "depth": 5, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" }, { "pageId": 81318312, @@ -5171,7 +5675,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 9, + "depth": 6, + "reach": 4 + }, + "faction": "People", + "category": "People" }, { "pageId": 2218990, @@ -5239,7 +5750,14 @@ "id": "Q4164871", "label": "position" } - ] + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 8 + }, + "faction": "Other", + "category": "Culture" }, { "pageId": 8275276, @@ -5314,7 +5832,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 9, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" }, { "pageId": 21376831, @@ -5384,7 +5909,14 @@ "id": "Q4022", "label": "river" } - ] + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 5 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 22403198, @@ -5454,7 +5986,14 @@ "id": "Q532", "label": "village" } - ] + ], + "tiers": { + "attention": 4, + "depth": 4, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 22517668, @@ -5516,7 +6055,14 @@ "prev30": 347, "pct": -19.596541786743515 }, - "instanceOf": [] + "instanceOf": [], + "tiers": { + "attention": 8, + "depth": 6, + "reach": 4 + }, + "faction": "Other", + "category": "Culture" }, { "pageId": 47519878, @@ -5592,7 +6138,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 3, + "depth": 2, + "reach": 6 + }, + "faction": "People", + "category": "People" }, { "pageId": 48714450, @@ -5666,7 +6219,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 7, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" }, { "pageId": 78868030, @@ -5732,7 +6292,14 @@ "id": "Q23413", "label": "castle" } - ] + ], + "tiers": { + "attention": 1, + "depth": 3, + "reach": 5 + }, + "faction": "Structures", + "category": "Culture" }, { "pageId": 84606242, @@ -5809,7 +6376,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 6, + "depth": 7, + "reach": 2 + }, + "faction": "People", + "category": "People" }, { "pageId": 981340, @@ -5881,7 +6455,14 @@ "id": "Q1107679", "label": "animation studio" } - ] + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 9 + }, + "faction": "Works", + "category": "Culture" }, { "pageId": 2020649, @@ -5944,7 +6525,14 @@ "prev30": 1117, "pct": -10.205908683974933 }, - "instanceOf": [] + "instanceOf": [], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 7 + }, + "faction": "Other", + "category": "Culture" }, { "pageId": 2978129, @@ -6010,7 +6598,14 @@ "id": "Q16521", "label": "taxon" } - ] + ], + "tiers": { + "attention": 7, + "depth": 4, + "reach": 9 + }, + "faction": "Nature", + "category": "Nature" }, { "pageId": 14048250, @@ -6077,7 +6672,14 @@ "id": "Q6644778", "label": "village in Saskatchewan" } - ] + ], + "tiers": { + "attention": 7, + "depth": 9, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" }, { "pageId": 30524663, @@ -6147,7 +6749,14 @@ "id": "Q15056995", "label": "aircraft model" } - ] + ], + "tiers": { + "attention": 5, + "depth": 5, + "reach": 6 + }, + "faction": "Ideas & Tech", + "category": "Culture" }, { "pageId": 30852837, @@ -6220,7 +6829,14 @@ "id": "Q16521", "label": "taxon" } - ] + ], + "tiers": { + "attention": 5, + "depth": 6, + "reach": 10 + }, + "faction": "Nature", + "category": "Nature" }, { "pageId": 42770753, @@ -6286,7 +6902,14 @@ "id": "Q23413", "label": "castle" } - ] + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 4 + }, + "faction": "Structures", + "category": "History" }, { "pageId": 48653101, @@ -6354,7 +6977,14 @@ "id": "Q18340514", "label": "events in a specific year or time period" } - ] + ], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 2 + }, + "faction": "Events", + "category": "Culture" }, { "pageId": 55083500, @@ -6425,7 +7055,14 @@ "id": "Q41176", "label": "building" } - ] + ], + "tiers": { + "attention": 6, + "depth": 3, + "reach": 4 + }, + "faction": "Structures", + "category": "Culture" }, { "pageId": 3372934, @@ -6518,7 +7155,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 5, + "depth": 7, + "reach": 9 + }, + "faction": "People", + "category": "People" }, { "pageId": 8341140, @@ -6585,7 +7229,14 @@ "id": "Q8436", "label": "family" } - ] + ], + "tiers": { + "attention": 10, + "depth": 7, + "reach": 6 + }, + "faction": "Other", + "category": "Culture" }, { "pageId": 13799810, @@ -6661,7 +7312,14 @@ "id": "Q113145171", "label": "type of chemical entity" } - ] + ], + "tiers": { + "attention": 7, + "depth": 5, + "reach": 5 + }, + "faction": "Ideas & Tech", + "category": "Science" }, { "pageId": 17755916, @@ -6740,7 +7398,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 8, + "depth": 10, + "reach": 7 + }, + "faction": "People", + "category": "People" }, { "pageId": 19025970, @@ -6817,7 +7482,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 3, + "depth": 2, + "reach": 9 + }, + "faction": "People", + "category": "People" }, { "pageId": 24114222, @@ -6885,7 +7557,14 @@ "prev30": 1848, "pct": 24.404761904761905 }, - "instanceOf": [] + "instanceOf": [], + "tiers": { + "attention": 10, + "depth": 5, + "reach": 8 + }, + "faction": "Other", + "category": "Culture" }, { "pageId": 31581668, @@ -6956,7 +7635,14 @@ "id": "Q207694", "label": "art museum" } - ] + ], + "tiers": { + "attention": 7, + "depth": 8, + "reach": 5 + }, + "faction": "Structures", + "category": "History" }, { "pageId": 33510186, @@ -7029,7 +7715,14 @@ "id": "Q5", "label": "human" } - ] + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 6 + }, + "faction": "People", + "category": "People" }, { "pageId": 34748061, @@ -7097,7 +7790,10913 @@ "id": "Q16521", "label": "taxon" } - ] + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 8 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 47646414, + "title": "John Mellencamp Pavilion", + "description": "American athletics facility at Indiana University Bloomington", + "wikidataId": "Q22097461", + "revisionId": 1384401817, + "pageBytes": 4069, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1996 establishments in Indiana", + "Indiana Hoosiers field hockey", + "Indiana Hoosiers football", + "Indiana Hoosiers sports venues", + "John Mellencamp", + "Sports venues completed in 1996" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 168 + }, + { + "month": "2026-06", + "views": 132 + }, + { + "month": "2026-07", + "views": 229 + }, + { + "month": "2026-08", + "views": 306 + }, + { + "month": "2026-09", + "views": 316 + }, + { + "month": "2026-10", + "views": 263 + } + ], + "latestMonth": "2026-10", + "total": 1414, + "dailyAverage": 8.483870967741936, + "trendPercent": -16.77215189873418 + }, + "stats": { + "attention": 40, + "depth": 60, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 242, + "prev30": 284, + "pct": -14.788732394366196 + }, + "instanceOf": [ + { + "id": "Q41176", + "label": "building" + } + ], + "tiers": { + "attention": 8, + "depth": 4, + "reach": 2 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 59063273, + "title": "Nathan M. Johnson", + "description": "American politician and composer (born 1968)", + "wikidataId": "Q58756295", + "revisionId": 1385547666, + "pageBytes": 24226, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1968 births", + "21st-century members of the Texas Legislature", + "Anime composers", + "Composers from Texas", + "Democratic Party Texas state senators", + "Lawyers from Dallas", + "Lawyers from Fort Worth, Texas", + "Living people", + "Politicians from Dallas", + "Politicians from Fort Worth, Texas", + "Texas attorneys general", + "University of Arizona alumni", + "University of Texas School of Law alumni" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 7795 + }, + { + "month": "2026-06", + "views": 1850 + }, + { + "month": "2026-07", + "views": 2567 + }, + { + "month": "2026-08", + "views": 2615 + }, + { + "month": "2026-09", + "views": 3447 + }, + { + "month": "2026-10", + "views": 11429 + } + ], + "latestMonth": "2026-10", + "total": 29703, + "dailyAverage": 368.6774193548387, + "trendPercent": 231.5636785610676 + }, + "stats": { + "attention": 68, + "depth": 73, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 151291, + "prev30": 6387, + "pct": 2268.733364646939 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 61315367, + "title": "Payson J. Treat", + "description": "American Japanologist (1879–1972)", + "wikidataId": "Q59628931", + "revisionId": 1380314462, + "pageBytes": 4887, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1879 births", + "1972 deaths", + "20th-century American historians", + "20th-century American male non-fiction writers", + "Academic staff of the University of Tokyo", + "American Japanologists", + "American academic biography stubs", + "Columbia University alumni", + "Historians of Japan", + "Stanford University Department of History faculty", + "Wesleyan University alumni", + "Writers from New York City" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 19 + }, + { + "month": "2026-06", + "views": 30 + }, + { + "month": "2026-07", + "views": 27 + }, + { + "month": "2026-08", + "views": 15 + }, + { + "month": "2026-09", + "views": 19 + }, + { + "month": "2026-10", + "views": 16 + } + ], + "latestMonth": "2026-10", + "total": 126, + "dailyAverage": 0.5161290322580645, + "trendPercent": -15.789473684210526 + }, + "stats": { + "attention": 21, + "depth": 61, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 18, + "prev30": 10, + "pct": 80.0 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 2, + "depth": 5, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 1544504, + "title": "Walter Rauschenbusch", + "description": "American theologian and Baptist pastor (1861-1918)", + "wikidataId": "Q1345238", + "revisionId": 1384187229, + "pageBytes": 28946, + "languageCount": 18, + "languagesTruncated": false, + "categories": [ + "1861 births", + "1918 deaths", + "19th-century American Protestant theologians", + "19th-century American male non-fiction writers", + "19th-century Baptist ministers from the United States", + "20th-century American Protestant theologians", + "20th-century Baptist ministers from the United States", + "American Baptist Churches USA ministers", + "American Christian pacifists", + "American Christian socialists", + "American historians of Christianity", + "American people of German descent", + "Baptist pacifists", + "Baptist socialists", + "Baptist theologians from the United States", + "Baptists from New York (state)", + "Christian ethicists", + "Christian socialist theologians", + "Colgate Rochester Crozer Divinity School faculty", + "Georgist activists" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1475 + }, + { + "month": "2026-06", + "views": 1163 + }, + { + "month": "2026-07", + "views": 1184 + }, + { + "month": "2026-08", + "views": 1171 + }, + { + "month": "2026-09", + "views": 1657 + }, + { + "month": "2026-10", + "views": 1476 + } + ], + "latestMonth": "2026-10", + "total": 8126, + "dailyAverage": 47.61290322580645, + "trendPercent": -10.92335546167773 + }, + "stats": { + "attention": 53, + "depth": 74, + "reach": 43 + }, + "legacyCategory": "People", + "drift30": { + "last30": 1385, + "prev30": 1689, + "pct": -17.998815867377147 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 2431156, + "title": "Organization of the Luftwaffe (1933–1945)", + "description": "Structure of German air force", + "wikidataId": "Q636182", + "revisionId": 1368504160, + "pageBytes": 89478, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Luftwaffe", + "Structure of contemporary air forces" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1865 + }, + { + "month": "2026-06", + "views": 1751 + }, + { + "month": "2026-07", + "views": 1536 + }, + { + "month": "2026-08", + "views": 1766 + }, + { + "month": "2026-09", + "views": 1563 + }, + { + "month": "2026-10", + "views": 1568 + } + ], + "latestMonth": "2026-10", + "total": 10049, + "dailyAverage": 50.58064516129032, + "trendPercent": 0.3198976327575176 + }, + "stats": { + "attention": 53, + "depth": 83, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1457, + "prev30": 1492, + "pct": -2.3458445040214477 + }, + "instanceOf": [ + { + "id": "Q15627509", + "label": "military organization" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 8 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 7008871, + "title": "Duke Blue Devils football", + "description": "Football team of Duke University", + "wikidataId": "Q5312733", + "revisionId": 1382159622, + "pageBytes": 89730, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1888 establishments in North Carolina", + "American football teams established in 1888", + "Duke Blue Devils football" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2888 + }, + { + "month": "2026-06", + "views": 2485 + }, + { + "month": "2026-07", + "views": 3482 + }, + { + "month": "2026-08", + "views": 4578 + }, + { + "month": "2026-09", + "views": 9980 + }, + { + "month": "2026-10", + "views": 9280 + } + ], + "latestMonth": "2026-10", + "total": 32693, + "dailyAverage": 299.35483870967744, + "trendPercent": -7.014028056112225 + }, + "stats": { + "attention": 66, + "depth": 83, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 11566, + "prev30": 8795, + "pct": 31.506537805571348 + }, + "instanceOf": [ + { + "id": "Q17156793", + "label": "American football team" + }, + { + "id": "Q18558301", + "label": "college sports team" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 5 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 11087981, + "title": "SREBP cleavage-activating protein", + "description": "Protein-coding gene in the species Homo sapiens", + "wikidataId": "Q14913782", + "revisionId": 1383233544, + "pageBytes": 10534, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Genes on human chromosome 3", + "Human chromosome 3 gene stubs", + "WD repeat proteins" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 78 + }, + { + "month": "2026-06", + "views": 60 + }, + { + "month": "2026-07", + "views": 55 + }, + { + "month": "2026-08", + "views": 52 + }, + { + "month": "2026-09", + "views": 77 + }, + { + "month": "2026-10", + "views": 63 + } + ], + "latestMonth": "2026-10", + "total": 385, + "dailyAverage": 2.032258064516129, + "trendPercent": -18.181818181818183 + }, + "stats": { + "attention": 30, + "depth": 67, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 49, + "prev30": 76, + "pct": -35.526315789473685 + }, + "instanceOf": [ + { + "id": "Q7187", + "label": "gene" + } + ], + "tiers": { + "attention": 5, + "depth": 8, + "reach": 5 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 14967767, + "title": "Everton, Nottinghamshire", + "description": "Village and civil parish in Nottinghamshire, England", + "wikidataId": "Q5417389", + "revisionId": 1346472302, + "pageBytes": 6739, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "Bassetlaw District", + "Civil parishes in Nottinghamshire", + "Villages in Nottinghamshire" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 147 + }, + { + "month": "2026-06", + "views": 103 + }, + { + "month": "2026-07", + "views": 129 + }, + { + "month": "2026-08", + "views": 136 + }, + { + "month": "2026-09", + "views": 104 + }, + { + "month": "2026-10", + "views": 82 + } + ], + "latestMonth": "2026-10", + "total": 701, + "dailyAverage": 2.6451612903225805, + "trendPercent": -21.153846153846153 + }, + "stats": { + "attention": 32, + "depth": 64, + "reach": 28 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 102, + "prev30": 72, + "pct": 41.66666666666667 + }, + "instanceOf": [ + { + "id": "Q532", + "label": "village" + }, + { + "id": "Q1115575", + "label": "civil parish" + } + ], + "tiers": { + "attention": 6, + "depth": 6, + "reach": 7 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 23223171, + "title": "Plectania", + "description": "Genus of fungi", + "wikidataId": "Q5235905", + "revisionId": 1351215348, + "pageBytes": 6797, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Pezizales", + "Pezizales genera", + "Pezizomycetes stubs", + "Taxa described in 1870", + "Taxa named by Karl Wilhelm Gottlieb Leopold Fuckel" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 53 + }, + { + "month": "2026-06", + "views": 44 + }, + { + "month": "2026-07", + "views": 39 + }, + { + "month": "2026-08", + "views": 47 + }, + { + "month": "2026-09", + "views": 53 + }, + { + "month": "2026-10", + "views": 38 + } + ], + "latestMonth": "2026-10", + "total": 274, + "dailyAverage": 1.2258064516129032, + "trendPercent": -28.30188679245283 + }, + "stats": { + "attention": 27, + "depth": 64, + "reach": 30 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 23, + "prev30": 42, + "pct": -45.23809523809524 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 4, + "depth": 6, + "reach": 8 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 36287721, + "title": "Magheracross", + "description": "Townland in County Fermanagh, Northern Ireland", + "wikidataId": "Q6730410", + "revisionId": 1364688814, + "pageBytes": 7448, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Civil parishes of County Fermanagh", + "Civil parishes of County Tyrone", + "Townlands of County Fermanagh" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 48 + }, + { + "month": "2026-06", + "views": 44 + }, + { + "month": "2026-07", + "views": 103 + }, + { + "month": "2026-08", + "views": 66 + }, + { + "month": "2026-09", + "views": 57 + }, + { + "month": "2026-10", + "views": 36 + } + ], + "latestMonth": "2026-10", + "total": 354, + "dailyAverage": 1.1612903225806452, + "trendPercent": -36.84210526315789 + }, + "stats": { + "attention": 26, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 40, + "prev30": 52, + "pct": -23.076923076923077 + }, + "instanceOf": [ + { + "id": "Q2151232", + "label": "townland" + } + ], + "tiers": { + "attention": 3, + "depth": 7, + "reach": 2 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 52781093, + "title": "SS Iberia (1873)", + "description": "Steamship by John Elder", + "wikidataId": "Q28232395", + "revisionId": 1360733771, + "pageBytes": 2604, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1873 ships", + "Individual ship or boat stubs", + "Ships built on the River Clyde", + "Steamships of the United Kingdom" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 31 + }, + { + "month": "2026-06", + "views": 34 + }, + { + "month": "2026-07", + "views": 32 + }, + { + "month": "2026-08", + "views": 33 + }, + { + "month": "2026-09", + "views": 43 + }, + { + "month": "2026-10", + "views": 37 + } + ], + "latestMonth": "2026-10", + "total": 210, + "dailyAverage": 1.1935483870967742, + "trendPercent": -13.953488372093023 + }, + "stats": { + "attention": 26, + "depth": 57, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 40, + "prev30": 43, + "pct": -6.976744186046512 + }, + "instanceOf": [ + { + "id": "Q12859788", + "label": "steamship" + } + ], + "tiers": { + "attention": 3, + "depth": 3, + "reach": 2 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 19652, + "title": "Monoid", + "description": "Algebraic structure with an associative operation and an identity element", + "wikidataId": "Q208237", + "revisionId": 1382146482, + "pageBytes": 35884, + "languageCount": 47, + "languagesTruncated": false, + "categories": [ + "Algebraic structures", + "Category theory", + "Semigroup theory" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 6802 + }, + { + "month": "2026-06", + "views": 5702 + }, + { + "month": "2026-07", + "views": 5579 + }, + { + "month": "2026-08", + "views": 5479 + }, + { + "month": "2026-09", + "views": 5671 + }, + { + "month": "2026-10", + "views": 6028 + } + ], + "latestMonth": "2026-10", + "total": 35261, + "dailyAverage": 194.4516129032258, + "trendPercent": 6.295186034209134 + }, + "stats": { + "attention": 63, + "depth": 76, + "reach": 56 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5409, + "prev30": 5957, + "pct": -9.199261373174416 + }, + "instanceOf": [], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 4961906, + "title": "Chinese star maps", + "description": "Depictions of the positions of stars on the celestial sphere", + "wikidataId": "Q16241158", + "revisionId": 1343697567, + "pageBytes": 27997, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Astronomy in China", + "Star atlases", + "Star maps" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 515 + }, + { + "month": "2026-06", + "views": 399 + }, + { + "month": "2026-07", + "views": 487 + }, + { + "month": "2026-08", + "views": 476 + }, + { + "month": "2026-09", + "views": 506 + }, + { + "month": "2026-10", + "views": 437 + } + ], + "latestMonth": "2026-10", + "total": 2820, + "dailyAverage": 14.096774193548388, + "trendPercent": -13.636363636363635 + }, + "stats": { + "attention": 44, + "depth": 74, + "reach": 16 + }, + "legacyCategory": "Space", + "drift30": { + "last30": 407, + "prev30": 464, + "pct": -12.284482758620689 + }, + "instanceOf": [], + "tiers": { + "attention": 9, + "depth": 10, + "reach": 5 + }, + "faction": "Other", + "category": "Space" + }, + { + "pageId": 9131803, + "title": "Shooting at the 1912 Summer Olympics – Men's 30 metre rapid fire pistol", + "description": "Olympic shooting event", + "wikidataId": "Q7500632", + "revisionId": 1351670352, + "pageBytes": 9919, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "Rapid fire pistol at the Olympics", + "Shooting at the 1912 Summer Olympics" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 53 + }, + { + "month": "2026-06", + "views": 47 + }, + { + "month": "2026-07", + "views": 71 + }, + { + "month": "2026-08", + "views": 65 + }, + { + "month": "2026-09", + "views": 41 + }, + { + "month": "2026-10", + "views": 43 + } + ], + "latestMonth": "2026-10", + "total": 320, + "dailyAverage": 1.3870967741935485, + "trendPercent": 4.878048780487805 + }, + "stats": { + "attention": 27, + "depth": 67, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 60, + "prev30": 43, + "pct": 39.53488372093023 + }, + "instanceOf": [ + { + "id": "Q18536594", + "label": "Olympic sporting event" + } + ], + "tiers": { + "attention": 4, + "depth": 8, + "reach": 7 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 12123196, + "title": "Phu Phra Bat Buabok Forest Park", + "description": "Forest park in Ban Phue District, Thailand", + "wikidataId": "Q250022", + "revisionId": 1362893730, + "pageBytes": 2744, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1996 establishments in Thailand", + "Forest parks of Thailand", + "IUCN Category V", + "Isan geography stubs", + "Phu Phan Mountains", + "Protected areas established in 1996", + "Tourist attractions in Udon Thani province" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 55 + }, + { + "month": "2026-06", + "views": 43 + }, + { + "month": "2026-07", + "views": 18 + }, + { + "month": "2026-08", + "views": 15 + }, + { + "month": "2026-09", + "views": 26 + }, + { + "month": "2026-10", + "views": 33 + } + ], + "latestMonth": "2026-10", + "total": 190, + "dailyAverage": 1.064516129032258, + "trendPercent": 26.923076923076923 + }, + "stats": { + "attention": 26, + "depth": 57, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 17, + "prev30": 38, + "pct": -55.26315789473685 + }, + "instanceOf": [ + { + "id": "Q13020522", + "label": "forest park in Thailand" + } + ], + "tiers": { + "attention": 3, + "depth": 3, + "reach": 5 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 15105978, + "title": "Well", + "description": "Excavation or structure to provide access to groundwater", + "wikidataId": "Q43483", + "revisionId": 1384889405, + "pageBytes": 49360, + "languageCount": 124, + "languagesTruncated": false, + "categories": [ + "Archaeological features", + "Bodies of water", + "In situ geotechnical investigations", + "Water supply infrastructure", + "Water wells" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 7066 + }, + { + "month": "2026-06", + "views": 6418 + }, + { + "month": "2026-07", + "views": 6817 + }, + { + "month": "2026-08", + "views": 6116 + }, + { + "month": "2026-09", + "views": 7739 + }, + { + "month": "2026-10", + "views": 7247 + } + ], + "latestMonth": "2026-10", + "total": 41403, + "dailyAverage": 233.7741935483871, + "trendPercent": -6.357410518154801 + }, + "stats": { + "attention": 64, + "depth": 78, + "reach": 70 + }, + "legacyCategory": "History", + "drift30": { + "last30": 7881, + "prev30": 7423, + "pct": 6.170012124477974 + }, + "instanceOf": [], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 48469081, + "title": "Dr. John L. Butler House", + "description": "Historic house in Arkansas, United States", + "wikidataId": "Q24041379", + "revisionId": 1373109716, + "pageBytes": 2235, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in Grant County, Arkansas", + "Colonial Revival architecture in Arkansas", + "Houses completed in 1914", + "Houses on the National Register of Historic Places in Arkansas", + "National Register of Historic Places in Grant County, Arkansas", + "Southwest Arkansas Registered Historic Place stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 22 + }, + { + "month": "2026-06", + "views": 7 + }, + { + "month": "2026-07", + "views": 7 + }, + { + "month": "2026-08", + "views": 2 + }, + { + "month": "2026-09", + "views": 13 + }, + { + "month": "2026-10", + "views": 10 + } + ], + "latestMonth": "2026-10", + "total": 61, + "dailyAverage": 0.3225806451612903, + "trendPercent": -23.076923076923077 + }, + "stats": { + "attention": 17, + "depth": 56, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 6, + "prev30": 16, + "pct": -62.5 + }, + "instanceOf": [ + { + "id": "Q3947", + "label": "house" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 2 + }, + "faction": "Structures", + "category": "History" + }, + { + "pageId": 66276726, + "title": "Inaechelys", + "description": "Genus of reptiles", + "wikidataId": "Q26700596", + "revisionId": 1326195763, + "pageBytes": 2058, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Bothremydidae", + "Danian life", + "Fossil taxa described in 2016", + "Fossils of Brazil", + "Monotypic turtle genera", + "Paleocene turtles", + "Paleogene Brazil", + "Paleogene reptiles of South America", + "Prehistoric turtle genera", + "Prehistoric turtle stubs", + "Tiupampan" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 54 + }, + { + "month": "2026-06", + "views": 38 + }, + { + "month": "2026-07", + "views": 41 + }, + { + "month": "2026-08", + "views": 44 + }, + { + "month": "2026-09", + "views": 36 + }, + { + "month": "2026-10", + "views": 33 + } + ], + "latestMonth": "2026-10", + "total": 246, + "dailyAverage": 1.064516129032258, + "trendPercent": -8.333333333333332 + }, + "stats": { + "attention": 26, + "depth": 55, + "reach": 10 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 29, + "prev30": 46, + "pct": -36.95652173913043 + }, + "instanceOf": [ + { + "id": "Q23038290", + "label": "fossil taxon" + } + ], + "tiers": { + "attention": 3, + "depth": 2, + "reach": 4 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 81502704, + "title": "Wenshet", + "description": null, + "wikidataId": "Q2559642", + "revisionId": 1373685251, + "pageBytes": 6048, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "26th-century BC clergy", + "26th-century BC women", + "Ancient Egyptian priestesses", + "Princesses of the Fourth Dynasty of Egypt" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 54 + }, + { + "month": "2026-06", + "views": 57 + }, + { + "month": "2026-07", + "views": 88 + }, + { + "month": "2026-08", + "views": 160 + }, + { + "month": "2026-09", + "views": 87 + }, + { + "month": "2026-10", + "views": 49 + } + ], + "latestMonth": "2026-10", + "total": 495, + "dailyAverage": 1.5806451612903225, + "trendPercent": -43.67816091954023 + }, + "stats": { + "attention": 28, + "depth": 63, + "reach": 23 + }, + "legacyCategory": "History", + "drift30": { + "last30": 51, + "prev30": 58, + "pct": -12.068965517241379 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 6, + "reach": 6 + }, + "faction": "People", + "category": "History" + }, + { + "pageId": 2141241, + "title": "Hvis lyset tar oss", + "description": "1994 studio album by Burzum", + "wikidataId": "Q1129211", + "revisionId": 1381701379, + "pageBytes": 5731, + "languageCount": 25, + "languagesTruncated": false, + "categories": [ + "1990s concept albums", + "1994 albums", + "Burzum albums", + "Misanthropy Records albums", + "Norwegian-language albums" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2870 + }, + { + "month": "2026-06", + "views": 2517 + }, + { + "month": "2026-07", + "views": 2705 + }, + { + "month": "2026-08", + "views": 3136 + }, + { + "month": "2026-09", + "views": 2882 + }, + { + "month": "2026-10", + "views": 3264 + } + ], + "latestMonth": "2026-10", + "total": 17374, + "dailyAverage": 105.29032258064517, + "trendPercent": 13.25468424705066 + }, + "stats": { + "attention": 59, + "depth": 63, + "reach": 47 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 3084, + "prev30": 3000, + "pct": 2.8000000000000003 + }, + "instanceOf": [ + { + "id": "Q482994", + "label": "album" + } + ], + "tiers": { + "attention": 10, + "depth": 6, + "reach": 10 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 4127940, + "title": "Lunugala", + "description": "Town in Uva Province, Sri Lanka", + "wikidataId": "Q6704475", + "revisionId": 1376763672, + "pageBytes": 5617, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Populated places in Uva Province", + "Sri Lanka geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 159 + }, + { + "month": "2026-06", + "views": 130 + }, + { + "month": "2026-07", + "views": 178 + }, + { + "month": "2026-08", + "views": 196 + }, + { + "month": "2026-09", + "views": 165 + }, + { + "month": "2026-10", + "views": 108 + } + ], + "latestMonth": "2026-10", + "total": 936, + "dailyAverage": 3.4838709677419355, + "trendPercent": -34.54545454545455 + }, + "stats": { + "attention": 34, + "depth": 62, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 110, + "prev30": 153, + "pct": -28.104575163398692 + }, + "instanceOf": [ + { + "id": "Q486972", + "label": "human settlement" + } + ], + "tiers": { + "attention": 6, + "depth": 5, + "reach": 5 + }, + "faction": "People", + "category": "Culture" + }, + { + "pageId": 15488641, + "title": "Dominique Rodgers-Cromartie", + "description": "American football player (born 1986)", + "wikidataId": "Q434024", + "revisionId": 1384010653, + "pageBytes": 63642, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "1986 births", + "American football cornerbacks", + "American football safeties", + "American people of Haitian descent", + "Arizona Cardinals players", + "Denver Broncos players", + "Lake Highland Preparatory School alumni", + "Lakewood Ranch High School alumni", + "Living people", + "National Conference Pro Bowl players", + "New York Giants players", + "Oakland Raiders players", + "Philadelphia Eagles players", + "Players of American football from Bradenton, Florida", + "Sportspeople of Haitian descent", + "Tennessee State Tigers football players", + "Unconferenced Pro Bowl players", + "Washington Redskins players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 3046 + }, + { + "month": "2026-06", + "views": 3460 + }, + { + "month": "2026-07", + "views": 3415 + }, + { + "month": "2026-08", + "views": 3973 + }, + { + "month": "2026-09", + "views": 4137 + }, + { + "month": "2026-10", + "views": 4144 + } + ], + "latestMonth": "2026-10", + "total": 22175, + "dailyAverage": 133.67741935483872, + "trendPercent": 0.1692047377326565 + }, + "stats": { + "attention": 60, + "depth": 80, + "reach": 26 + }, + "legacyCategory": "People", + "drift30": { + "last30": 3919, + "prev30": 4146, + "pct": -5.475156777616981 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 24593488, + "title": "Žižki", + "description": "Place in Prekmurje, Slovenia", + "wikidataId": "Q280193", + "revisionId": 1379665199, + "pageBytes": 4821, + "languageCount": 16, + "languagesTruncated": false, + "categories": [ + "Pomurska statistical region geography stubs", + "Populated places in the Municipality of Črenšovci" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 27 + }, + { + "month": "2026-06", + "views": 18 + }, + { + "month": "2026-07", + "views": 20 + }, + { + "month": "2026-08", + "views": 49 + }, + { + "month": "2026-09", + "views": 31 + }, + { + "month": "2026-10", + "views": 25 + } + ], + "latestMonth": "2026-10", + "total": 170, + "dailyAverage": 0.8064516129032258, + "trendPercent": -19.35483870967742 + }, + "stats": { + "attention": 24, + "depth": 61, + "reach": 41 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 21, + "prev30": 18, + "pct": 16.666666666666664 + }, + "instanceOf": [ + { + "id": "Q486972", + "label": "human settlement" + } + ], + "tiers": { + "attention": 3, + "depth": 5, + "reach": 9 + }, + "faction": "People", + "category": "Culture" + }, + { + "pageId": 51469913, + "title": "Beaconsfield Station Sheep Wash", + "description": "Historic site in Queensland, Australia", + "wikidataId": "Q28035337", + "revisionId": 1364729120, + "pageBytes": 11345, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Agricultural buildings and structures in Queensland", + "Australian sheep industry", + "Longreach Region", + "Queensland Heritage Register" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 22 + }, + { + "month": "2026-06", + "views": 29 + }, + { + "month": "2026-07", + "views": 22 + }, + { + "month": "2026-08", + "views": 29 + }, + { + "month": "2026-09", + "views": 26 + }, + { + "month": "2026-10", + "views": 14 + } + ], + "latestMonth": "2026-10", + "total": 142, + "dailyAverage": 0.45161290322580644, + "trendPercent": -46.15384615384615 + }, + "stats": { + "attention": 20, + "depth": 68, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 26, + "prev30": 20, + "pct": 30.0 + }, + "instanceOf": [ + { + "id": "Q1081138", + "label": "historic site" + } + ], + "tiers": { + "attention": 2, + "depth": 8, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 53418112, + "title": "2012 United States presidential straw poll in Guam", + "description": "", + "wikidataId": "Q29097654", + "revisionId": 1383301063, + "pageBytes": 7644, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "2012 United States presidential election by state or territory", + "2012 elections in Guam", + "Guam stubs", + "Oceanian history stubs", + "United States election stubs", + "United States presidential straw polls in Guam" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 187 + }, + { + "month": "2026-06", + "views": 204 + }, + { + "month": "2026-07", + "views": 194 + }, + { + "month": "2026-08", + "views": 225 + }, + { + "month": "2026-09", + "views": 150 + }, + { + "month": "2026-10", + "views": 173 + } + ], + "latestMonth": "2026-10", + "total": 1133, + "dailyAverage": 5.580645161290323, + "trendPercent": 15.333333333333332 + }, + "stats": { + "attention": 37, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 428, + "prev30": 160, + "pct": 167.5 + }, + "instanceOf": [ + { + "id": "Q858439", + "label": "presidential election" + } + ], + "tiers": { + "attention": 7, + "depth": 7, + "reach": 2 + }, + "faction": "Events", + "category": "Nature" + }, + { + "pageId": 54512419, + "title": "Elephant Square", + "description": null, + "wikidataId": "Q39046311", + "revisionId": 1282834290, + "pageBytes": 2504, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in the London Borough of Southwark", + "London stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 166 + }, + { + "month": "2026-06", + "views": 181 + }, + { + "month": "2026-07", + "views": 179 + }, + { + "month": "2026-08", + "views": 184 + }, + { + "month": "2026-09", + "views": 161 + }, + { + "month": "2026-10", + "views": 166 + } + ], + "latestMonth": "2026-10", + "total": 1037, + "dailyAverage": 5.354838709677419, + "trendPercent": 3.1055900621118013 + }, + "stats": { + "attention": 37, + "depth": 57, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 171, + "prev30": 153, + "pct": 11.76470588235294 + }, + "instanceOf": [ + { + "id": "Q174782", + "label": "square" + }, + { + "id": "Q1788454", + "label": "road junction" + } + ], + "tiers": { + "attention": 7, + "depth": 3, + "reach": 4 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 59233120, + "title": "Maryland Independent", + "description": "Semi-weekly newspaper published in Waldorf, Maryland, US", + "wikidataId": "Q55667255", + "revisionId": 1316504057, + "pageBytes": 7397, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1874 establishments in Maryland", + "Newspapers established in 1874", + "Newspapers published in Maryland", + "Weekly newspapers published in the United States" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 40 + }, + { + "month": "2026-06", + "views": 29 + }, + { + "month": "2026-07", + "views": 36 + }, + { + "month": "2026-08", + "views": 30 + }, + { + "month": "2026-09", + "views": 31 + }, + { + "month": "2026-10", + "views": 41 + } + ], + "latestMonth": "2026-10", + "total": 207, + "dailyAverage": 1.3225806451612903, + "trendPercent": 32.25806451612903 + }, + "stats": { + "attention": 27, + "depth": 64, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 21, + "prev30": 45, + "pct": -53.333333333333336 + }, + "instanceOf": [ + { + "id": "Q11032", + "label": "newspaper" + } + ], + "tiers": { + "attention": 4, + "depth": 6, + "reach": 2 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 78154568, + "title": "Lithodes mamillifer", + "description": "Species of king crab", + "wikidataId": "Q13768243", + "revisionId": 1384643280, + "pageBytes": 1515, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Anomura of the Indian Ocean", + "Anomura stubs", + "Crustaceans described in 1988", + "Crustaceans of Madagascar", + "Crustaceans of South Africa", + "King crabs", + "Taxa named by Enrique Macpherson" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 25 + }, + { + "month": "2026-06", + "views": 23 + }, + { + "month": "2026-07", + "views": 24 + }, + { + "month": "2026-08", + "views": 24 + }, + { + "month": "2026-09", + "views": 23 + }, + { + "month": "2026-10", + "views": 15 + } + ], + "latestMonth": "2026-10", + "total": 134, + "dailyAverage": 0.4838709677419355, + "trendPercent": -34.78260869565217 + }, + "stats": { + "attention": 20, + "depth": 53, + "reach": 10 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 45, + "prev30": 17, + "pct": 164.70588235294116 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 2, + "depth": 1, + "reach": 4 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 132638, + "title": "Perry Township, Greene County, Pennsylvania", + "description": "Township in Pennsylvania, US", + "wikidataId": "Q5809786", + "revisionId": 1375881246, + "pageBytes": 8117, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "Townships in Greene County, Pennsylvania" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 66 + }, + { + "month": "2026-06", + "views": 33 + }, + { + "month": "2026-07", + "views": 42 + }, + { + "month": "2026-08", + "views": 85 + }, + { + "month": "2026-09", + "views": 57 + }, + { + "month": "2026-10", + "views": 60 + } + ], + "latestMonth": "2026-10", + "total": 343, + "dailyAverage": 1.935483870967742, + "trendPercent": 5.263157894736842 + }, + "stats": { + "attention": 30, + "depth": 65, + "reach": 28 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 26, + "prev30": 62, + "pct": -58.06451612903226 + }, + "instanceOf": [ + { + "id": "Q9035798", + "label": "township of Pennsylvania" + } + ], + "tiers": { + "attention": 5, + "depth": 7, + "reach": 7 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 858133, + "title": "Ashley (automobile)", + "description": "British manufacturers of car body shells & chassis for specials (1955-1962)", + "wikidataId": "Q725930", + "revisionId": 1261572264, + "pageBytes": 6867, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1955 establishments in England", + "1972 disestablishments in England", + "British companies disestablished in 1972", + "British companies established in 1955", + "Companies based in East Hertfordshire District", + "Companies based in Essex", + "Defunct motor vehicle manufacturers of England", + "Kit car manufacturers", + "Manufacturing companies disestablished in 1972", + "Vehicle manufacturers operating in Essex", + "Vehicle manufacturing companies established in 1955" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 200 + }, + { + "month": "2026-06", + "views": 194 + }, + { + "month": "2026-07", + "views": 168 + }, + { + "month": "2026-08", + "views": 225 + }, + { + "month": "2026-09", + "views": 241 + }, + { + "month": "2026-10", + "views": 186 + } + ], + "latestMonth": "2026-10", + "total": 1214, + "dailyAverage": 6.0, + "trendPercent": -22.821576763485478 + }, + "stats": { + "attention": 38, + "depth": 64, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 163, + "prev30": 213, + "pct": -23.474178403755868 + }, + "instanceOf": [ + { + "id": "Q786820", + "label": "automobile manufacturer" + } + ], + "tiers": { + "attention": 7, + "depth": 6, + "reach": 5 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 17603693, + "title": "Bad Little Angel", + "description": "1939 film by Wilhelm Thiele", + "wikidataId": "Q2483475", + "revisionId": 1339376467, + "pageBytes": 3197, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1930s drama film stubs", + "1939 American films", + "1939 English-language films", + "1939 drama films", + "1939 films", + "American black-and-white films", + "American drama films", + "English-language drama films", + "Films about orphans", + "Films directed by Wilhelm Thiele", + "Films scored by Edward Ward (composer)", + "Films with screenplays by Dorothy Yost", + "Metro-Goldwyn-Mayer films" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 211 + }, + { + "month": "2026-06", + "views": 165 + }, + { + "month": "2026-07", + "views": 180 + }, + { + "month": "2026-08", + "views": 297 + }, + { + "month": "2026-09", + "views": 294 + }, + { + "month": "2026-10", + "views": 182 + } + ], + "latestMonth": "2026-10", + "total": 1329, + "dailyAverage": 5.870967741935484, + "trendPercent": -38.095238095238095 + }, + "stats": { + "attention": 38, + "depth": 58, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 164, + "prev30": 179, + "pct": -8.379888268156424 + }, + "instanceOf": [ + { + "id": "Q11424", + "label": "film" + } + ], + "tiers": { + "attention": 7, + "depth": 3, + "reach": 5 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 22974735, + "title": "Christianity in the 5th century", + "description": "", + "wikidataId": "Q5110603", + "revisionId": 1374856654, + "pageBytes": 41099, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "5th century in Christianity", + "Christianity by century" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 613 + }, + { + "month": "2026-06", + "views": 515 + }, + { + "month": "2026-07", + "views": 547 + }, + { + "month": "2026-08", + "views": 523 + }, + { + "month": "2026-09", + "views": 499 + }, + { + "month": "2026-10", + "views": 452 + } + ], + "latestMonth": "2026-10", + "total": 3149, + "dailyAverage": 14.580645161290322, + "trendPercent": -9.418837675350701 + }, + "stats": { + "attention": 44, + "depth": 77, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 447, + "prev30": 468, + "pct": -4.487179487179487 + }, + "instanceOf": [ + { + "id": "Q18340514", + "label": "events in a specific year or time period" + } + ], + "tiers": { + "attention": 9, + "depth": 10, + "reach": 5 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 25966388, + "title": "Phacelia quickii", + "description": "Species of plant", + "wikidataId": "Q7179927", + "revisionId": 1329232874, + "pageBytes": 2013, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Endemic flora of California", + "Flora of the Sierra Nevada (United States)", + "Phacelia" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 61 + }, + { + "month": "2026-06", + "views": 63 + }, + { + "month": "2026-07", + "views": 39 + }, + { + "month": "2026-08", + "views": 26 + }, + { + "month": "2026-09", + "views": 29 + }, + { + "month": "2026-10", + "views": 10 + } + ], + "latestMonth": "2026-10", + "total": 228, + "dailyAverage": 0.3225806451612903, + "trendPercent": -65.51724137931035 + }, + "stats": { + "attention": 17, + "depth": 55, + "reach": 20 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 17, + "prev30": 24, + "pct": -29.166666666666668 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 6 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 35746583, + "title": "Barbajada", + "description": "Italian chocolate coffee drink", + "wikidataId": "Q3634571", + "revisionId": 1346095921, + "pageBytes": 2816, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "Chocolate drinks", + "Coffee in Italy", + "Cuisine of Lombardy", + "Italian drinks" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 321 + }, + { + "month": "2026-06", + "views": 254 + }, + { + "month": "2026-07", + "views": 211 + }, + { + "month": "2026-08", + "views": 186 + }, + { + "month": "2026-09", + "views": 250 + }, + { + "month": "2026-10", + "views": 299 + } + ], + "latestMonth": "2026-10", + "total": 1521, + "dailyAverage": 9.64516129032258, + "trendPercent": 19.6 + }, + "stats": { + "attention": 41, + "depth": 57, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 319, + "prev30": 251, + "pct": 27.091633466135455 + }, + "instanceOf": [], + "tiers": { + "attention": 8, + "depth": 3, + "reach": 7 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 37575830, + "title": "Özkan Yıldırım", + "description": "German footballer", + "wikidataId": "Q1152151", + "revisionId": 1385253370, + "pageBytes": 7250, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "1993 births", + "2. Bundesliga players", + "21st-century German sportsmen", + "3. Liga players", + "Bundesliga players", + "Eintracht Braunschweig players", + "Expatriate men's footballers in Turkey", + "Footballers from Lower Saxony", + "Fortuna Düsseldorf players", + "German expatriate men's footballers", + "German expatriate sportspeople in Turkey", + "German men's footballers", + "German people of Turkish descent", + "Germany men's under-21 international footballers", + "Germany men's youth international footballers", + "Living people", + "Men's association football midfielders", + "Menemen F.K. footballers", + "People from Sulingen", + "Regionalliga players", + "SV Werder Bremen II players", + "SV Werder Bremen players", + "Sportspeople of Turkish descent", + "TFF 1. Lig players", + "TFF 2. Lig players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 44 + }, + { + "month": "2026-06", + "views": 53 + }, + { + "month": "2026-07", + "views": 50 + }, + { + "month": "2026-08", + "views": 48 + }, + { + "month": "2026-09", + "views": 44 + }, + { + "month": "2026-10", + "views": 29 + } + ], + "latestMonth": "2026-10", + "total": 268, + "dailyAverage": 0.9354838709677419, + "trendPercent": -34.090909090909086 + }, + "stats": { + "attention": 25, + "depth": 64, + "reach": 33 + }, + "legacyCategory": "People", + "drift30": { + "last30": 44, + "prev30": 28, + "pct": 57.14285714285714 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 6, + "reach": 8 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 64381478, + "title": "Denis Zabolotin", + "description": "Russian handball player", + "wikidataId": "Q96644151", + "revisionId": 1381097840, + "pageBytes": 2197, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1998 births", + "21st-century Russian sportsmen", + "Handball players from Krasnodar", + "Living people", + "Russian expatriate handball players", + "Russian expatriate sportspeople in Belarus", + "Russian handball biography stubs", + "Russian male handball players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 44 + }, + { + "month": "2026-06", + "views": 32 + }, + { + "month": "2026-07", + "views": 33 + }, + { + "month": "2026-08", + "views": 23 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 25 + } + ], + "latestMonth": "2026-10", + "total": 179, + "dailyAverage": 0.8064516129032258, + "trendPercent": 13.636363636363635 + }, + "stats": { + "attention": 24, + "depth": 56, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 16, + "prev30": 35, + "pct": -54.285714285714285 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 2, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 65723245, + "title": "Russell A. Sanborn", + "description": "U.S. Marine major general", + "wikidataId": "Q29852979", + "revisionId": 1380335385, + "pageBytes": 12789, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Living people", + "Recipients of the Defense Superior Service Medal", + "Recipients of the Legion of Merit", + "Recipients of the Meritorious Service Medal (United States)", + "United States Marine Corps generals", + "United States Marine Corps officers", + "United States Marine Corps personnel of the Gulf War", + "United States Marine Corps personnel of the Iraq War" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 135 + }, + { + "month": "2026-06", + "views": 125 + }, + { + "month": "2026-07", + "views": 127 + }, + { + "month": "2026-08", + "views": 146 + }, + { + "month": "2026-09", + "views": 109 + }, + { + "month": "2026-10", + "views": 107 + } + ], + "latestMonth": "2026-10", + "total": 749, + "dailyAverage": 3.4516129032258065, + "trendPercent": -1.834862385321101 + }, + "stats": { + "attention": 34, + "depth": 68, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 117, + "prev30": 114, + "pct": 2.631578947368421 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 6, + "depth": 8, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 82002316, + "title": "Taupo Totara Timber Company", + "description": "New Zealand timber and building supplies company", + "wikidataId": "Q138001385", + "revisionId": 1357961360, + "pageBytes": 27310, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Logging in New Zealand", + "Railway companies of New Zealand" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 61 + }, + { + "month": "2026-06", + "views": 74 + }, + { + "month": "2026-07", + "views": 50 + }, + { + "month": "2026-08", + "views": 99 + }, + { + "month": "2026-09", + "views": 61 + }, + { + "month": "2026-10", + "views": 61 + } + ], + "latestMonth": "2026-10", + "total": 406, + "dailyAverage": 1.967741935483871, + "trendPercent": 0.0 + }, + "stats": { + "attention": 30, + "depth": 74, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 34, + "prev30": 67, + "pct": -49.25373134328358 + }, + "instanceOf": [ + { + "id": "Q783794", + "label": "company" + } + ], + "tiers": { + "attention": 5, + "depth": 10, + "reach": 2 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 1220003, + "title": "Robert Hawthorne", + "description": "Recipient of the Victoria Cross", + "wikidataId": "Q3681767", + "revisionId": 1381976644, + "pageBytes": 14763, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1823 births", + "1879 deaths", + "19th-century Irish people", + "52nd Regiment of Foot soldiers", + "British Army recipients of the Victoria Cross", + "British military musicians", + "Burials in Greater Manchester", + "Indian Rebellion of 1857 recipients of the Victoria Cross", + "Irish recipients of the Victoria Cross", + "Irish soldiers in the British Army", + "Military personnel from County Londonderry", + "People from Maghera" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 67 + }, + { + "month": "2026-06", + "views": 95 + }, + { + "month": "2026-07", + "views": 93 + }, + { + "month": "2026-08", + "views": 68 + }, + { + "month": "2026-09", + "views": 66 + }, + { + "month": "2026-10", + "views": 318 + } + ], + "latestMonth": "2026-10", + "total": 707, + "dailyAverage": 10.258064516129032, + "trendPercent": 381.8181818181818 + }, + "stats": { + "attention": 42, + "depth": 69, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 151, + "prev30": 224, + "pct": -32.589285714285715 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 8, + "depth": 9, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 20241765, + "title": "Imre Szöllősi", + "description": "Hungarian canoeist (1941–2022)", + "wikidataId": "Q6008352", + "revisionId": 1362148473, + "pageBytes": 4120, + "languageCount": 14, + "languagesTruncated": false, + "categories": [ + "1941 births", + "2022 deaths", + "20th-century Hungarian sportsmen", + "Canoeists at the 1960 Summer Olympics", + "Canoeists at the 1964 Summer Olympics", + "Canoeists at the 1968 Summer Olympics", + "Canoeists from Budapest", + "Hungarian canoe Olympic medalist stubs", + "Hungarian male canoeists", + "ICF Canoe Sprint World Championships medalists in kayak", + "Medalists at the 1960 Summer Olympics", + "Medalists at the 1968 Summer Olympics", + "Olympic bronze medalists for Hungary", + "Olympic canoeists for Hungary", + "Olympic medalists in canoeing", + "Olympic silver medalists for Hungary" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 37 + }, + { + "month": "2026-06", + "views": 16 + }, + { + "month": "2026-07", + "views": 14 + }, + { + "month": "2026-08", + "views": 37 + }, + { + "month": "2026-09", + "views": 28 + }, + { + "month": "2026-10", + "views": 16 + } + ], + "latestMonth": "2026-10", + "total": 148, + "dailyAverage": 0.5161290322580645, + "trendPercent": -42.857142857142854 + }, + "stats": { + "attention": 21, + "depth": 60, + "reach": 39 + }, + "legacyCategory": "People", + "drift30": { + "last30": 19, + "prev30": 21, + "pct": -9.523809523809524 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 2, + "depth": 4, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 25327485, + "title": "Marc Fesneau", + "description": "French politician (born 1971)", + "wikidataId": "Q6755549", + "revisionId": 1378155021, + "pageBytes": 11163, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "1971 births", + "Democratic Movement (France) politicians", + "Deputies of the 15th National Assembly of the French Fifth Republic", + "Deputies of the 16th National Assembly of the French Fifth Republic", + "Deputies of the 17th National Assembly of the French Fifth Republic", + "Living people", + "Mayors of places in Centre-Val de Loire", + "Members of the Attal government", + "Members of the Borne government", + "Ministers of agriculture of France", + "Ministers of food of France", + "Politicians from Centre-Val de Loire", + "Politicians from Paris", + "Regional councillors of France", + "Sciences Po alumni", + "Union for French Democracy politicians" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 392 + }, + { + "month": "2026-06", + "views": 190 + }, + { + "month": "2026-07", + "views": 166 + }, + { + "month": "2026-08", + "views": 165 + }, + { + "month": "2026-09", + "views": 155 + }, + { + "month": "2026-10", + "views": 335 + } + ], + "latestMonth": "2026-10", + "total": 1403, + "dailyAverage": 10.806451612903226, + "trendPercent": 116.12903225806453 + }, + "stats": { + "attention": 42, + "depth": 67, + "reach": 28 + }, + "legacyCategory": "People", + "drift30": { + "last30": 274, + "prev30": 246, + "pct": 11.38211382113821 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 8, + "depth": 8, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 41543067, + "title": "Arms and the Girl", + "description": "1917 American silent film", + "wikidataId": "Q16248487", + "revisionId": 1381927878, + "pageBytes": 5602, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "1917 American films", + "1917 English-language films", + "1917 drama films", + "1917 films", + "American World War I films", + "American black-and-white films", + "American films based on plays", + "American silent drama films", + "American silent feature films", + "English-language drama films", + "Films directed by Joseph Kaufman", + "Films set in Belgium", + "Paramount Pictures films", + "Surviving American silent films" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 69 + }, + { + "month": "2026-06", + "views": 58 + }, + { + "month": "2026-07", + "views": 83 + }, + { + "month": "2026-08", + "views": 75 + }, + { + "month": "2026-09", + "views": 61 + }, + { + "month": "2026-10", + "views": 75 + } + ], + "latestMonth": "2026-10", + "total": 421, + "dailyAverage": 2.4193548387096775, + "trendPercent": 22.950819672131146 + }, + "stats": { + "attention": 31, + "depth": 62, + "reach": 23 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 63, + "prev30": 65, + "pct": -3.076923076923077 + }, + "instanceOf": [ + { + "id": "Q11424", + "label": "film" + } + ], + "tiers": { + "attention": 5, + "depth": 5, + "reach": 6 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 41915964, + "title": "Taylor County Historical Society", + "description": "Non-profit organization in Florida, US", + "wikidataId": "Q16966311", + "revisionId": 1308018675, + "pageBytes": 2822, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1971 establishments in Florida", + "501(c)(3) organizations", + "Florida stubs", + "Historic bank buildings", + "Historical societies in Florida", + "Taylor County, Florida" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 34 + }, + { + "month": "2026-06", + "views": 15 + }, + { + "month": "2026-07", + "views": 15 + }, + { + "month": "2026-08", + "views": 9 + }, + { + "month": "2026-09", + "views": 18 + }, + { + "month": "2026-10", + "views": 20 + } + ], + "latestMonth": "2026-10", + "total": 111, + "dailyAverage": 0.6451612903225806, + "trendPercent": 11.11111111111111 + }, + "stats": { + "attention": 22, + "depth": 58, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 18, + "prev30": 23, + "pct": -21.73913043478261 + }, + "instanceOf": [ + { + "id": "Q5774403", + "label": "historical society" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 2 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 42179026, + "title": "Dojikko", + "description": "Extremely clumsy female character in anime and manga", + "wikidataId": "Q164896", + "revisionId": 1373475086, + "pageBytes": 2994, + "languageCount": 12, + "languagesTruncated": false, + "categories": [ + "Anime and manga stubs", + "Anime and manga terminology", + "Female stock characters in anime and manga" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 836 + }, + { + "month": "2026-06", + "views": 635 + }, + { + "month": "2026-07", + "views": 689 + }, + { + "month": "2026-08", + "views": 730 + }, + { + "month": "2026-09", + "views": 782 + }, + { + "month": "2026-10", + "views": 794 + } + ], + "latestMonth": "2026-10", + "total": 4466, + "dailyAverage": 25.612903225806452, + "trendPercent": 1.5345268542199488 + }, + "stats": { + "attention": 48, + "depth": 58, + "reach": 37 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 708, + "prev30": 843, + "pct": -16.014234875444842 + }, + "instanceOf": [ + { + "id": "Q636497", + "label": "stock character" + } + ], + "tiers": { + "attention": 9, + "depth": 3, + "reach": 9 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 53544117, + "title": "Jünkerath station", + "description": "Railway station in Jünkerath, Germany", + "wikidataId": "Q23924993", + "revisionId": 1371197205, + "pageBytes": 14517, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Railway stations in Germany opened in 1870", + "Railway stations in Rhineland-Palatinate", + "Vulkaneifel" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 31 + }, + { + "month": "2026-06", + "views": 20 + }, + { + "month": "2026-07", + "views": 19 + }, + { + "month": "2026-08", + "views": 24 + }, + { + "month": "2026-09", + "views": 15 + }, + { + "month": "2026-10", + "views": 23 + } + ], + "latestMonth": "2026-10", + "total": 132, + "dailyAverage": 0.7419354838709677, + "trendPercent": 53.333333333333336 + }, + "stats": { + "attention": 23, + "depth": 69, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 13, + "prev30": 19, + "pct": -31.57894736842105 + }, + "instanceOf": [ + { + "id": "Q55488", + "label": "railway station" + } + ], + "tiers": { + "attention": 2, + "depth": 9, + "reach": 4 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 59880339, + "title": "United Artists Releasing", + "description": "Film distribution successor to United Artists", + "wikidataId": "Q119348733", + "revisionId": 1382490836, + "pageBytes": 32007, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "2017 establishments in California", + "American companies disestablished in 2023", + "American companies established in 2017", + "Film distributors of the United States", + "Former Metro-Goldwyn-Mayer subsidiaries", + "Former joint ventures", + "Mass media companies disestablished in 2023", + "Mass media companies established in 2017" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2418 + }, + { + "month": "2026-06", + "views": 2275 + }, + { + "month": "2026-07", + "views": 2334 + }, + { + "month": "2026-08", + "views": 2505 + }, + { + "month": "2026-09", + "views": 2279 + }, + { + "month": "2026-10", + "views": 3347 + } + ], + "latestMonth": "2026-10", + "total": 15158, + "dailyAverage": 107.96774193548387, + "trendPercent": 46.86265906099166 + }, + "stats": { + "attention": 59, + "depth": 75, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 3347, + "prev30": 2560, + "pct": 30.7421875 + }, + "instanceOf": [ + { + "id": "Q783794", + "label": "company" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 6 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 77720522, + "title": "Hungarian Giant Pigeon", + "description": null, + "wikidataId": "Q12815231", + "revisionId": 1380422871, + "pageBytes": 3939, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Columbidae", + "Crested pigeons", + "Domestic pigeons", + "Pigeon breed stubs", + "Pigeon breeds", + "Utility pigeons" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 200 + }, + { + "month": "2026-06", + "views": 204 + }, + { + "month": "2026-07", + "views": 172 + }, + { + "month": "2026-08", + "views": 183 + }, + { + "month": "2026-09", + "views": 160 + }, + { + "month": "2026-10", + "views": 215 + } + ], + "latestMonth": "2026-10", + "total": 1134, + "dailyAverage": 6.935483870967742, + "trendPercent": 34.375 + }, + "stats": { + "attention": 39, + "depth": 60, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 152, + "prev30": 224, + "pct": -32.142857142857146 + }, + "instanceOf": [ + { + "id": "Q15623573", + "label": "pigeon breed" + } + ], + "tiers": { + "attention": 8, + "depth": 4, + "reach": 6 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 81412097, + "title": "Iona Moir", + "description": "British track cyclist", + "wikidataId": "Q130078456", + "revisionId": 1380568254, + "pageBytes": 9717, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "2003 births", + "21st-century Scottish sportswomen", + "British female cyclists", + "British track cyclists", + "Commonwealth Games bronze medallists in cycling", + "Cyclists at the 2026 Commonwealth Games", + "Living people", + "Medallists at the 2026 Commonwealth Games", + "Scottish female cyclists", + "Scottish track cyclists" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 25 + }, + { + "month": "2026-06", + "views": 80 + }, + { + "month": "2026-07", + "views": 295 + }, + { + "month": "2026-08", + "views": 295 + }, + { + "month": "2026-09", + "views": 53 + }, + { + "month": "2026-10", + "views": 117 + } + ], + "latestMonth": "2026-10", + "total": 865, + "dailyAverage": 3.774193548387097, + "trendPercent": 120.75471698113208 + }, + "stats": { + "attention": 35, + "depth": 66, + "reach": 30 + }, + "legacyCategory": "People", + "drift30": { + "last30": 77, + "prev30": 85, + "pct": -9.411764705882353 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 7, + "reach": 8 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 84243204, + "title": "Figueiredo (Guimarães)", + "description": "Extinct parish in Guimarães, Portugal", + "wikidataId": "Q1023176", + "revisionId": 1375287029, + "pageBytes": 3763, + "languageCount": 11, + "languagesTruncated": false, + "categories": [ + "Former parishes of Guimarães", + "Portugal geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 0 + }, + { + "month": "2026-06", + "views": 0 + }, + { + "month": "2026-07", + "views": 0 + }, + { + "month": "2026-08", + "views": 0 + }, + { + "month": "2026-09", + "views": 29 + }, + { + "month": "2026-10", + "views": 6 + } + ], + "latestMonth": "2026-10", + "total": 35, + "dailyAverage": 0.1935483870967742, + "trendPercent": -79.3103448275862 + }, + "stats": { + "attention": 14, + "depth": 60, + "reach": 36 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 3, + "prev30": 13, + "pct": -76.92307692307693 + }, + "instanceOf": [ + { + "id": "Q56046844", + "label": "former freguesia of Portugal" + } + ], + "tiers": { + "attention": 1, + "depth": 4, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 87495, + "title": "Kusilvak Census Area, Alaska", + "description": "Census area in Alaska, United States", + "wikidataId": "Q379474", + "revisionId": 1375332586, + "pageBytes": 21507, + "languageCount": 30, + "languagesTruncated": false, + "categories": [ + "Alaska boroughs", + "Alaska census areas", + "Bering Sea", + "Kusilvak Census Area, Alaska" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 881 + }, + { + "month": "2026-06", + "views": 837 + }, + { + "month": "2026-07", + "views": 925 + }, + { + "month": "2026-08", + "views": 930 + }, + { + "month": "2026-09", + "views": 943 + }, + { + "month": "2026-10", + "views": 818 + } + ], + "latestMonth": "2026-10", + "total": 5334, + "dailyAverage": 26.387096774193548, + "trendPercent": -13.255567338282079 + }, + "stats": { + "attention": 49, + "depth": 72, + "reach": 50 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1164, + "prev30": 881, + "pct": 32.122587968217935 + }, + "instanceOf": [ + { + "id": "Q56064719", + "label": "census area of Alaska" + } + ], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 3560741, + "title": "Martin Taylor (businessman)", + "description": "British businessman (born 1952)", + "wikidataId": "Q6776725", + "revisionId": 1372647813, + "pageBytes": 6171, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "1952 births", + "Alumni of Balliol College, Oxford", + "Barclays people", + "British business biography, 1950s birth stubs", + "British chief executives of financial services companies", + "Businesspeople from Lancashire", + "Goldman Sachs people", + "Living people", + "Members of the Steering Committee of the Bilderberg Group", + "People educated at Eton College", + "People from Burnley", + "RTL Group people" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 280 + }, + { + "month": "2026-06", + "views": 260 + }, + { + "month": "2026-07", + "views": 234 + }, + { + "month": "2026-08", + "views": 246 + }, + { + "month": "2026-09", + "views": 266 + }, + { + "month": "2026-10", + "views": 269 + } + ], + "latestMonth": "2026-10", + "total": 1555, + "dailyAverage": 8.67741935483871, + "trendPercent": 1.1278195488721803 + }, + "stats": { + "attention": 41, + "depth": 63, + "reach": 20 + }, + "legacyCategory": "People", + "drift30": { + "last30": 249, + "prev30": 243, + "pct": 2.4691358024691357 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 8, + "depth": 6, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 5368142, + "title": "Brass Mill Center", + "description": "Shopping mall in Connecticut, United States", + "wikidataId": "Q4957871", + "revisionId": 1385081865, + "pageBytes": 8018, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in Waterbury, Connecticut", + "Kohan Retail Investment Group", + "Shopping malls developed by GGP Inc.", + "Shopping malls established in 1997", + "Shopping malls in Connecticut", + "Shopping malls in the New York metropolitan area", + "Tourist attractions in New Haven County, Connecticut" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 417 + }, + { + "month": "2026-06", + "views": 342 + }, + { + "month": "2026-07", + "views": 333 + }, + { + "month": "2026-08", + "views": 357 + }, + { + "month": "2026-09", + "views": 277 + }, + { + "month": "2026-10", + "views": 315 + } + ], + "latestMonth": "2026-10", + "total": 2041, + "dailyAverage": 10.161290322580646, + "trendPercent": 13.718411552346572 + }, + "stats": { + "attention": 42, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 305, + "prev30": 283, + "pct": 7.773851590106007 + }, + "instanceOf": [ + { + "id": "Q11315", + "label": "shopping center" + } + ], + "tiers": { + "attention": 8, + "depth": 7, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 31573922, + "title": "Vincenza Sicari", + "description": "Italian long-distance runner (born 1979)", + "wikidataId": "Q2526833", + "revisionId": 1364585710, + "pageBytes": 12187, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "1979 births", + "20th-century Italian women", + "21st-century Italian sportswomen", + "Athletes (track and field) at the 2005 Mediterranean Games", + "Athletes (track and field) at the 2008 Summer Olympics", + "Athletes from Lombardy", + "Italian Athletics Championships winners", + "Italian women long-distance runners", + "Italian women marathon runners", + "Living people", + "Mediterranean Games competitors for Italy", + "Olympic athletes for Italy", + "Olympic women marathon runners", + "Sportspeople from Lodi, Lombardy" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 37 + }, + { + "month": "2026-06", + "views": 37 + }, + { + "month": "2026-07", + "views": 27 + }, + { + "month": "2026-08", + "views": 22 + }, + { + "month": "2026-09", + "views": 32 + }, + { + "month": "2026-10", + "views": 27 + } + ], + "latestMonth": "2026-10", + "total": 182, + "dailyAverage": 0.8709677419354839, + "trendPercent": -15.625 + }, + "stats": { + "attention": 24, + "depth": 68, + "reach": 26 + }, + "legacyCategory": "People", + "drift30": { + "last30": 21, + "prev30": 39, + "pct": -46.15384615384615 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 8, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 34707772, + "title": "Arnold I of Egmond", + "description": null, + "wikidataId": "Q1920891", + "revisionId": 1376437554, + "pageBytes": 3148, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "1330s births", + "1409 deaths", + "14th-century nobility from the Holy Roman Empire", + "15th-century nobility from the Holy Roman Empire", + "Dutch people stubs", + "European nobility stubs", + "Lords of Egmond", + "Lords of IJsselstein", + "People from Egmond" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 0 + }, + { + "month": "2026-06", + "views": 0 + }, + { + "month": "2026-07", + "views": 0 + }, + { + "month": "2026-08", + "views": 0 + }, + { + "month": "2026-09", + "views": 9 + }, + { + "month": "2026-10", + "views": 44 + } + ], + "latestMonth": "2026-10", + "total": 53, + "dailyAverage": 1.4193548387096775, + "trendPercent": 388.88888888888886 + }, + "stats": { + "attention": 28, + "depth": 58, + "reach": 23 + }, + "legacyCategory": "People", + "drift30": { + "last30": 31, + "prev30": 35, + "pct": -11.428571428571429 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 3, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 52333386, + "title": "Lewis and Elizabeth Bolton House", + "description": "Historic house in Missouri, United States", + "wikidataId": "Q28007838", + "revisionId": 1373477524, + "pageBytes": 2029, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in Jefferson City, Missouri", + "Central Missouri Registered Historic Place stubs", + "Greek Revival houses in Missouri", + "Houses completed in 1833", + "Houses on the National Register of Historic Places in Missouri", + "National Register of Historic Places in Cole County, Missouri" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 12 + }, + { + "month": "2026-06", + "views": 19 + }, + { + "month": "2026-07", + "views": 18 + }, + { + "month": "2026-08", + "views": 21 + }, + { + "month": "2026-09", + "views": 31 + }, + { + "month": "2026-10", + "views": 31 + } + ], + "latestMonth": "2026-10", + "total": 132, + "dailyAverage": 1.0, + "trendPercent": 0.0 + }, + "stats": { + "attention": 25, + "depth": 55, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 25, + "prev30": 34, + "pct": -26.47058823529412 + }, + "instanceOf": [ + { + "id": "Q1307276", + "label": "single-family detached home" + } + ], + "tiers": { + "attention": 3, + "depth": 2, + "reach": 2 + }, + "faction": "Works", + "category": "History" + }, + { + "pageId": 3440141, + "title": "Belgium at the 1948 Summer Olympics", + "description": "Sporting event delegation", + "wikidataId": "Q592430", + "revisionId": 1384669473, + "pageBytes": 9438, + "languageCount": 17, + "languagesTruncated": false, + "categories": [ + "1948 in Belgian sport", + "Belgium at the Summer Olympics by year", + "Nations at the 1948 Summer Olympics" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 53 + }, + { + "month": "2026-06", + "views": 51 + }, + { + "month": "2026-07", + "views": 51 + }, + { + "month": "2026-08", + "views": 37 + }, + { + "month": "2026-09", + "views": 40 + }, + { + "month": "2026-10", + "views": 29 + } + ], + "latestMonth": "2026-10", + "total": 261, + "dailyAverage": 0.9354838709677419, + "trendPercent": -27.500000000000004 + }, + "stats": { + "attention": 25, + "depth": 66, + "reach": 42 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 28, + "prev30": 36, + "pct": -22.22222222222222 + }, + "instanceOf": [ + { + "id": "Q26213387", + "label": "Olympic delegation" + } + ], + "tiers": { + "attention": 3, + "depth": 7, + "reach": 9 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 4374694, + "title": "National Register of Historic Places listings in Yates County, New York", + "description": "", + "wikidataId": "Q6977936", + "revisionId": 1384632958, + "pageBytes": 24304, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in Yates County, New York", + "Lists of National Register of Historic Places in New York (state) by county", + "National Register of Historic Places in Yates County, New York" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 61 + }, + { + "month": "2026-06", + "views": 30 + }, + { + "month": "2026-07", + "views": 45 + }, + { + "month": "2026-08", + "views": 41 + }, + { + "month": "2026-09", + "views": 87 + }, + { + "month": "2026-10", + "views": 39 + } + ], + "latestMonth": "2026-10", + "total": 303, + "dailyAverage": 1.2580645161290323, + "trendPercent": -55.172413793103445 + }, + "stats": { + "attention": 27, + "depth": 73, + "reach": 10 + }, + "legacyCategory": "History", + "drift30": { + "last30": 41, + "prev30": 66, + "pct": -37.878787878787875 + }, + "instanceOf": [ + { + "id": "Q13406463", + "label": "Wikimedia list article" + } + ], + "tiers": { + "attention": 4, + "depth": 10, + "reach": 4 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 15084630, + "title": "Uremic frost", + "description": "Crystallized urea deposits on skin", + "wikidataId": "Q18395101", + "revisionId": 1340554441, + "pageBytes": 3027, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Cutaneous conditions", + "Endocrine, nutritional and metabolic disease stubs", + "Kidney diseases", + "Nephrology" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1269 + }, + { + "month": "2026-06", + "views": 1136 + }, + { + "month": "2026-07", + "views": 1172 + }, + { + "month": "2026-08", + "views": 1097 + }, + { + "month": "2026-09", + "views": 1044 + }, + { + "month": "2026-10", + "views": 961 + } + ], + "latestMonth": "2026-10", + "total": 6679, + "dailyAverage": 31.0, + "trendPercent": -7.950191570881227 + }, + "stats": { + "attention": 50, + "depth": 58, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 915, + "prev30": 959, + "pct": -4.588112617309697 + }, + "instanceOf": [ + { + "id": "Q1441305", + "label": "clinical sign" + } + ], + "tiers": { + "attention": 9, + "depth": 3, + "reach": 5 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 16038960, + "title": "La Chapelle-Palluau", + "description": "Commune in Pays de la Loire, France", + "wikidataId": "Q675088", + "revisionId": 1381994388, + "pageBytes": 1697, + "languageCount": 35, + "languagesTruncated": false, + "categories": [ + "Communes of Vendée", + "Vendée geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 20 + }, + { + "month": "2026-06", + "views": 13 + }, + { + "month": "2026-07", + "views": 11 + }, + { + "month": "2026-08", + "views": 11 + }, + { + "month": "2026-09", + "views": 10 + }, + { + "month": "2026-10", + "views": 5 + } + ], + "latestMonth": "2026-10", + "total": 70, + "dailyAverage": 0.16129032258064516, + "trendPercent": -50.0 + }, + "stats": { + "attention": 13, + "depth": 54, + "reach": 52 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5, + "prev30": 8, + "pct": -37.5 + }, + "instanceOf": [ + { + "id": "Q484170", + "label": "commune of France" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 20139020, + "title": "Samuel Yeatman", + "description": "American baseball player (1839–1901)", + "wikidataId": "Q4911449", + "revisionId": 1307118821, + "pageBytes": 2314, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1848 births", + "1905 deaths", + "19th-century American sportsmen", + "19th-century Baptist ministers from the United States", + "19th-century baseball players", + "American baseball outfielder stubs", + "Baseball players from Washington, D.C.", + "George Washington University alumni", + "Georgetown University Law Center alumni", + "Washington Nationals (NA) players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 11 + }, + { + "month": "2026-06", + "views": 11 + }, + { + "month": "2026-07", + "views": 4 + }, + { + "month": "2026-08", + "views": 7 + }, + { + "month": "2026-09", + "views": 8 + }, + { + "month": "2026-10", + "views": 6 + } + ], + "latestMonth": "2026-10", + "total": 47, + "dailyAverage": 0.1935483870967742, + "trendPercent": -25.0 + }, + "stats": { + "attention": 14, + "depth": 56, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 4, + "prev30": 4, + "pct": 0.0 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 28703040, + "title": "Suðurey", + "description": "Island in Iceland", + "wikidataId": "Q3115506", + "revisionId": 1366016093, + "pageBytes": 772, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Iceland geography stubs", + "Vestmannaeyjar" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 97 + }, + { + "month": "2026-06", + "views": 74 + }, + { + "month": "2026-07", + "views": 133 + }, + { + "month": "2026-08", + "views": 113 + }, + { + "month": "2026-09", + "views": 75 + }, + { + "month": "2026-10", + "views": 66 + } + ], + "latestMonth": "2026-10", + "total": 558, + "dailyAverage": 2.129032258064516, + "trendPercent": -12.0 + }, + "stats": { + "attention": 30, + "depth": 48, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 49, + "prev30": 71, + "pct": -30.985915492957744 + }, + "instanceOf": [ + { + "id": "Q23442", + "label": "island" + } + ], + "tiers": { + "attention": 5, + "depth": 1, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 44714079, + "title": "Île-de-France tramway Line 6", + "description": "Suburban tram line in Hauts-de-Seine and Yvelines, southwest of Paris", + "wikidataId": "Q3238993", + "revisionId": 1364832308, + "pageBytes": 3480, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "2014 establishments in France", + "Railway lines opened in 2014", + "Tram lines in Île-de-France" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 242 + }, + { + "month": "2026-06", + "views": 198 + }, + { + "month": "2026-07", + "views": 224 + }, + { + "month": "2026-08", + "views": 269 + }, + { + "month": "2026-09", + "views": 221 + }, + { + "month": "2026-10", + "views": 230 + } + ], + "latestMonth": "2026-10", + "total": 1384, + "dailyAverage": 7.419354838709677, + "trendPercent": 4.072398190045249 + }, + "stats": { + "attention": 39, + "depth": 59, + "reach": 33 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 185, + "prev30": 231, + "pct": -19.913419913419915 + }, + "instanceOf": [ + { + "id": "Q15145593", + "label": "tram route" + }, + { + "id": "Q385653", + "label": "rubber-tyred tram" + } + ], + "tiers": { + "attention": 8, + "depth": 4, + "reach": 8 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 5076812, + "title": "Free-Stater (Kansas)", + "description": "Anti-Slavery organization", + "wikidataId": "Q5499603", + "revisionId": 1373793952, + "pageBytes": 5816, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Abolitionism in the United States", + "Bleeding Kansas", + "Politically motivated migrations" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1086 + }, + { + "month": "2026-06", + "views": 1079 + }, + { + "month": "2026-07", + "views": 1214 + }, + { + "month": "2026-08", + "views": 919 + }, + { + "month": "2026-09", + "views": 1316 + }, + { + "month": "2026-10", + "views": 791 + } + ], + "latestMonth": "2026-10", + "total": 6405, + "dailyAverage": 25.516129032258064, + "trendPercent": -39.8936170212766 + }, + "stats": { + "attention": 48, + "depth": 63, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 960, + "prev30": 766, + "pct": 25.326370757180154 + }, + "instanceOf": [ + { + "id": "Q15911314", + "label": "association" + } + ], + "tiers": { + "attention": 9, + "depth": 6, + "reach": 4 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 8528827, + "title": "Llandarcy Oil Refinery", + "description": "Former oil refinery in Neath Port Talbot, Wales", + "wikidataId": "Q27957412", + "revisionId": 1379603420, + "pageBytes": 13814, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1921 establishments in Wales", + "BP buildings and structures", + "Buildings and structures demolished in 2009", + "Buildings and structures in Neath Port Talbot", + "Demolished buildings and structures in Wales", + "Energy infrastructure completed in 1922", + "Energy infrastructure in Wales", + "Fossil fuels in Wales", + "History of Glamorgan", + "History of the petroleum industry in the United Kingdom", + "Industrial history of Wales", + "Oil refineries in the United Kingdom" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 242 + }, + { + "month": "2026-06", + "views": 161 + }, + { + "month": "2026-07", + "views": 202 + }, + { + "month": "2026-08", + "views": 184 + }, + { + "month": "2026-09", + "views": 232 + }, + { + "month": "2026-10", + "views": 242 + } + ], + "latestMonth": "2026-10", + "total": 1263, + "dailyAverage": 7.806451612903226, + "trendPercent": 4.310344827586207 + }, + "stats": { + "attention": 40, + "depth": 69, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 202, + "prev30": 232, + "pct": -12.931034482758621 + }, + "instanceOf": [ + { + "id": "Q12353044", + "label": "oil refinery" + } + ], + "tiers": { + "attention": 8, + "depth": 9, + "reach": 2 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 15348229, + "title": "Diocese of Mindelo", + "description": "Roman Catholic diocese in Cape Verde", + "wikidataId": "Q872428", + "revisionId": 1367445085, + "pageBytes": 2466, + "languageCount": 13, + "languagesTruncated": false, + "categories": [ + "African Roman Catholic diocese stubs", + "Cape Verde stubs", + "Christian organizations established in 2003", + "Exempt dioceses", + "Mindelo", + "Roman Catholic dioceses and prelatures established in the 21st century", + "Roman Catholic dioceses in Cape Verde" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 27 + }, + { + "month": "2026-06", + "views": 20 + }, + { + "month": "2026-07", + "views": 22 + }, + { + "month": "2026-08", + "views": 20 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 23 + } + ], + "latestMonth": "2026-10", + "total": 134, + "dailyAverage": 0.7419354838709677, + "trendPercent": 4.545454545454546 + }, + "stats": { + "attention": 23, + "depth": 57, + "reach": 38 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 22, + "prev30": 24, + "pct": -8.333333333333332 + }, + "instanceOf": [ + { + "id": "Q3146899", + "label": "Diocese of the Catholic Church" + }, + { + "id": "Q2665272", + "label": "Ecclesiastical circumscription immediately subject to the Holy See" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 9 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 15588865, + "title": "Bonnevaux-le-Prieuré", + "description": "Part of Ornans in Bourgogne-Franche-Comté, France", + "wikidataId": "Q837744", + "revisionId": 1381802984, + "pageBytes": 1557, + "languageCount": 28, + "languagesTruncated": false, + "categories": [ + "Besançon arrondissement geography stubs", + "Former communes of Doubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 15 + }, + { + "month": "2026-06", + "views": 16 + }, + { + "month": "2026-07", + "views": 5 + }, + { + "month": "2026-08", + "views": 15 + }, + { + "month": "2026-09", + "views": 11 + }, + { + "month": "2026-10", + "views": 13 + } + ], + "latestMonth": "2026-10", + "total": 75, + "dailyAverage": 0.41935483870967744, + "trendPercent": 18.181818181818183 + }, + "stats": { + "attention": 19, + "depth": 53, + "reach": 49 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 6, + "prev30": 17, + "pct": -64.70588235294117 + }, + "instanceOf": [ + { + "id": "Q484170", + "label": "commune of France" + }, + { + "id": "Q21869758", + "label": "delegated commune" + } + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 17172975, + "title": "Bukama", + "description": "Place in Haut-Lomami, Democratic Republic of the Congo", + "wikidataId": "Q2915071", + "revisionId": 1378041962, + "pageBytes": 6699, + "languageCount": 16, + "languagesTruncated": false, + "categories": [ + "Democratic Republic of the Congo geography stubs", + "Populated places in Haut-Lomami" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 110 + }, + { + "month": "2026-06", + "views": 112 + }, + { + "month": "2026-07", + "views": 150 + }, + { + "month": "2026-08", + "views": 118 + }, + { + "month": "2026-09", + "views": 161 + }, + { + "month": "2026-10", + "views": 159 + } + ], + "latestMonth": "2026-10", + "total": 810, + "dailyAverage": 5.129032258064516, + "trendPercent": -1.2422360248447204 + }, + "stats": { + "attention": 37, + "depth": 64, + "reach": 41 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 106, + "prev30": 170, + "pct": -37.64705882352941 + }, + "instanceOf": [ + { + "id": "Q515", + "label": "city" + } + ], + "tiers": { + "attention": 7, + "depth": 6, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 23305148, + "title": "Agios Isidoros, Cyprus", + "description": "Place in Paphos District, Cyprus", + "wikidataId": "Q4831291", + "revisionId": 1377045846, + "pageBytes": 3417, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "Communities in Paphos District", + "Paphos District geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 24 + }, + { + "month": "2026-06", + "views": 20 + }, + { + "month": "2026-07", + "views": 14 + }, + { + "month": "2026-08", + "views": 21 + }, + { + "month": "2026-09", + "views": 12 + }, + { + "month": "2026-10", + "views": 18 + } + ], + "latestMonth": "2026-10", + "total": 109, + "dailyAverage": 0.5806451612903226, + "trendPercent": 50.0 + }, + "stats": { + "attention": 21, + "depth": 59, + "reach": 33 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 6, + "prev30": 20, + "pct": -70.0 + }, + "instanceOf": [ + { + "id": "Q29414133", + "label": "community of Cyprus Republic" + } + ], + "tiers": { + "attention": 2, + "depth": 4, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 38872265, + "title": "Ethel Post-Parrish", + "description": "American Spiritualist medium (died 1960)", + "wikidataId": "Q15999505", + "revisionId": 1370478726, + "pageBytes": 2819, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1960 deaths", + "American spiritual mediums", + "People from Ephrata, Pennsylvania" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 94 + }, + { + "month": "2026-06", + "views": 71 + }, + { + "month": "2026-07", + "views": 59 + }, + { + "month": "2026-08", + "views": 42 + }, + { + "month": "2026-09", + "views": 68 + }, + { + "month": "2026-10", + "views": 69 + } + ], + "latestMonth": "2026-10", + "total": 403, + "dailyAverage": 2.225806451612903, + "trendPercent": 1.4705882352941175 + }, + "stats": { + "attention": 31, + "depth": 58, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 65, + "prev30": 63, + "pct": 3.1746031746031744 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 3, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 63363087, + "title": "Keyontae Johnson", + "description": "American basketball player (born 2000)", + "wikidataId": "Q88963854", + "revisionId": 1385804220, + "pageBytes": 19745, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "2000 births", + "21st-century American sportsmen", + "All-American college men's basketball players", + "American men's basketball players", + "Basketball players from Norfolk, Virginia", + "Florida Gators men's basketball players", + "Greensboro Swarm players", + "IMG Academy alumni", + "Kansas State Wildcats men's basketball players", + "Living people", + "Oklahoma City Blue players", + "Oklahoma City Thunder draft picks", + "Oklahoma City Thunder players", + "Small forwards" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2277 + }, + { + "month": "2026-06", + "views": 1393 + }, + { + "month": "2026-07", + "views": 1344 + }, + { + "month": "2026-08", + "views": 811 + }, + { + "month": "2026-09", + "views": 1129 + }, + { + "month": "2026-10", + "views": 1809 + } + ], + "latestMonth": "2026-10", + "total": 8763, + "dailyAverage": 58.354838709677416, + "trendPercent": 60.23029229406555 + }, + "stats": { + "attention": 54, + "depth": 72, + "reach": 28 + }, + "legacyCategory": "People", + "drift30": { + "last30": 1920, + "prev30": 1498, + "pct": 28.17089452603471 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 73426976, + "title": "Viniče", + "description": "Village in Skopje, North Macedonia", + "wikidataId": "Q3560281", + "revisionId": 1379304890, + "pageBytes": 5038, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Skopje Statistical Region geography stubs", + "Villages in Gazi Baba Municipality" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 51 + }, + { + "month": "2026-06", + "views": 39 + }, + { + "month": "2026-07", + "views": 34 + }, + { + "month": "2026-08", + "views": 30 + }, + { + "month": "2026-09", + "views": 30 + }, + { + "month": "2026-10", + "views": 13 + } + ], + "latestMonth": "2026-10", + "total": 197, + "dailyAverage": 0.41935483870967744, + "trendPercent": -56.666666666666664 + }, + "stats": { + "attention": 19, + "depth": 62, + "reach": 23 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 25, + "prev30": 17, + "pct": 47.05882352941176 + }, + "instanceOf": [ + { + "id": "Q532", + "label": "village" + } + ], + "tiers": { + "attention": 1, + "depth": 5, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 923700, + "title": "Sainte-Foy-lès-Lyon", + "description": "Commune in Auvergne-Rhône-Alpes, France", + "wikidataId": "Q387460", + "revisionId": 1382030380, + "pageBytes": 4865, + "languageCount": 45, + "languagesTruncated": false, + "categories": [ + "Communes of Lyon Metropolis", + "Lyonnais", + "Metropolis of Lyon geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 307 + }, + { + "month": "2026-06", + "views": 223 + }, + { + "month": "2026-07", + "views": 266 + }, + { + "month": "2026-08", + "views": 231 + }, + { + "month": "2026-09", + "views": 268 + }, + { + "month": "2026-10", + "views": 243 + } + ], + "latestMonth": "2026-10", + "total": 1538, + "dailyAverage": 7.838709677419355, + "trendPercent": -9.328358208955224 + }, + "stats": { + "attention": 40, + "depth": 61, + "reach": 55 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 192, + "prev30": 262, + "pct": -26.717557251908396 + }, + "instanceOf": [ + { + "id": "Q484170", + "label": "commune of France" + } + ], + "tiers": { + "attention": 8, + "depth": 5, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 3442641, + "title": "Tidewater Provincial Park", + "description": "Provincial park in Ontario, Canada", + "wikidataId": "Q7800881", + "revisionId": 1372311773, + "pageBytes": 3074, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1964 establishments in Ontario", + "Canadian protected area stubs", + "Cochrane District geography stubs", + "IUCN Category II", + "Protected areas established in 1964", + "Protected areas of Cochrane District", + "Provincial parks of Ontario" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 60 + }, + { + "month": "2026-06", + "views": 102 + }, + { + "month": "2026-07", + "views": 106 + }, + { + "month": "2026-08", + "views": 82 + }, + { + "month": "2026-09", + "views": 68 + }, + { + "month": "2026-10", + "views": 64 + } + ], + "latestMonth": "2026-10", + "total": 482, + "dailyAverage": 2.064516129032258, + "trendPercent": -5.88235294117647 + }, + "stats": { + "attention": 30, + "depth": 58, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 51, + "prev30": 65, + "pct": -21.53846153846154 + }, + "instanceOf": [ + { + "id": "Q2006279", + "label": "provincial park of Canada" + } + ], + "tiers": { + "attention": 5, + "depth": 3, + "reach": 5 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 4547560, + "title": "Tracheal collapse", + "description": "Flattening of the trachea in animals", + "wikidataId": "Q2447482", + "revisionId": 1333227991, + "pageBytes": 4473, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Dog diseases" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 658 + }, + { + "month": "2026-06", + "views": 662 + }, + { + "month": "2026-07", + "views": 615 + }, + { + "month": "2026-08", + "views": 500 + }, + { + "month": "2026-09", + "views": 494 + }, + { + "month": "2026-10", + "views": 577 + } + ], + "latestMonth": "2026-10", + "total": 3506, + "dailyAverage": 18.612903225806452, + "trendPercent": 16.801619433198383 + }, + "stats": { + "attention": 46, + "depth": 61, + "reach": 23 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 572, + "prev30": 513, + "pct": 11.500974658869396 + }, + "instanceOf": [ + { + "id": "Q140427225", + "label": "type of animal disease" + } + ], + "tiers": { + "attention": 9, + "depth": 5, + "reach": 6 + }, + "faction": "Nature", + "category": "Culture" + }, + { + "pageId": 13784221, + "title": "Ellenborough Falls", + "description": "Waterfall on the Ellenborough River in New South Wales, Australia", + "wikidataId": "Q3652636", + "revisionId": 1362220356, + "pageBytes": 2615, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "Horsetail waterfalls", + "Mid North Coast", + "Waterfalls of New South Wales" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 154 + }, + { + "month": "2026-06", + "views": 121 + }, + { + "month": "2026-07", + "views": 189 + }, + { + "month": "2026-08", + "views": 135 + }, + { + "month": "2026-09", + "views": 129 + }, + { + "month": "2026-10", + "views": 160 + } + ], + "latestMonth": "2026-10", + "total": 888, + "dailyAverage": 5.161290322580645, + "trendPercent": 24.031007751937985 + }, + "stats": { + "attention": 37, + "depth": 57, + "reach": 28 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 161, + "prev30": 114, + "pct": 41.228070175438596 + }, + "instanceOf": [ + { + "id": "Q34038", + "label": "waterfall" + } + ], + "tiers": { + "attention": 7, + "depth": 3, + "reach": 7 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 33454946, + "title": "Tydeus Painter", + "description": "Ancient Greek vase painter", + "wikidataId": "Q2462577", + "revisionId": 1270324661, + "pageBytes": 1843, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Ancient Greek vase painters" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 37 + }, + { + "month": "2026-06", + "views": 22 + }, + { + "month": "2026-07", + "views": 12 + }, + { + "month": "2026-08", + "views": 18 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 19 + } + ], + "latestMonth": "2026-10", + "total": 130, + "dailyAverage": 0.6129032258064516, + "trendPercent": -13.636363636363635 + }, + "stats": { + "attention": 22, + "depth": 54, + "reach": 20 + }, + "legacyCategory": "History", + "drift30": { + "last30": 20, + "prev30": 18, + "pct": 11.11111111111111 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + }, + { + "id": "Q1747829", + "label": "notname" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 6 + }, + "faction": "People", + "category": "History" + }, + { + "pageId": 45435120, + "title": "Yemọja", + "description": "Major water Orisha in the Yoruba religion", + "wikidataId": "Q1477162", + "revisionId": 1384697951, + "pageBytes": 19829, + "languageCount": 21, + "languagesTruncated": false, + "categories": [ + "Brazilian mythology", + "Fertility goddesses", + "Lunar goddesses", + "Mother goddesses", + "Santería", + "Sea and river goddesses", + "Tutelary goddesses", + "Voodoo goddesses", + "Water goddesses", + "Yoruba goddesses" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 6674 + }, + { + "month": "2026-06", + "views": 6858 + }, + { + "month": "2026-07", + "views": 6207 + }, + { + "month": "2026-08", + "views": 6655 + }, + { + "month": "2026-09", + "views": 6781 + }, + { + "month": "2026-10", + "views": 5552 + } + ], + "latestMonth": "2026-10", + "total": 38727, + "dailyAverage": 179.09677419354838, + "trendPercent": -18.124170476330924 + }, + "stats": { + "attention": 62, + "depth": 72, + "reach": 45 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5071, + "prev30": 5911, + "pct": -14.210793435966842 + }, + "instanceOf": [ + { + "id": "Q290460", + "label": "orisha" + }, + { + "id": "Q1916821", + "label": "water deity" + }, + { + "id": "Q752920", + "label": "Loa" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 10 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 75395217, + "title": "Hetifah Sjaifudian", + "description": "Indonesian activist and politician", + "wikidataId": "Q96988706", + "revisionId": 1378415983, + "pageBytes": 13552, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1964 births", + "Bandung Institute of Technology alumni", + "Flinders University alumni", + "Golkar politicians", + "Indonesian Muslims", + "Indonesian activists", + "Living people", + "Members of the House of Representatives (Indonesia), 2009", + "Members of the House of Representatives (Indonesia), 2014", + "Members of the House of Representatives (Indonesia), 2019", + "Members of the House of Representatives (Indonesia), 2024", + "National University of Singapore alumni", + "People from Bandung" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 117 + }, + { + "month": "2026-06", + "views": 74 + }, + { + "month": "2026-07", + "views": 69 + }, + { + "month": "2026-08", + "views": 94 + }, + { + "month": "2026-09", + "views": 49 + }, + { + "month": "2026-10", + "views": 69 + } + ], + "latestMonth": "2026-10", + "total": 472, + "dailyAverage": 2.225806451612903, + "trendPercent": 40.816326530612244 + }, + "stats": { + "attention": 31, + "depth": 69, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 55, + "prev30": 71, + "pct": -22.535211267605636 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 9, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 3110478, + "title": "Laukhella", + "description": "Village in Senja Municipality, Norway", + "wikidataId": "Q3218620", + "revisionId": 1376600347, + "pageBytes": 3064, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Lenvik Municipality", + "Populated places of Arctic Norway", + "Senja Municipality", + "Troms geography stubs", + "Villages in Troms" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 23 + }, + { + "month": "2026-06", + "views": 24 + }, + { + "month": "2026-07", + "views": 34 + }, + { + "month": "2026-08", + "views": 38 + }, + { + "month": "2026-09", + "views": 35 + }, + { + "month": "2026-10", + "views": 16 + } + ], + "latestMonth": "2026-10", + "total": 170, + "dailyAverage": 0.5161290322580645, + "trendPercent": -54.285714285714285 + }, + "stats": { + "attention": 21, + "depth": 58, + "reach": 23 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 11, + "prev30": 20, + "pct": -45.0 + }, + "instanceOf": [ + { + "id": "Q486972", + "label": "human settlement" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 6 + }, + "faction": "People", + "category": "Culture" + }, + { + "pageId": 7767431, + "title": "Bufo stuarti", + "description": "Species of amphibian", + "wikidataId": "Q28032720", + "revisionId": 1313900503, + "pageBytes": 809, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "Amphibians described in 1929", + "Bufo", + "Frogs of India", + "IUCN Red List least concern species", + "True toad stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 20 + }, + { + "month": "2026-06", + "views": 13 + }, + { + "month": "2026-07", + "views": 8 + }, + { + "month": "2026-08", + "views": 18 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 8 + } + ], + "latestMonth": "2026-10", + "total": 89, + "dailyAverage": 0.25806451612903225, + "trendPercent": -63.63636363636363 + }, + "stats": { + "attention": 16, + "depth": 48, + "reach": 33 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 2, + "prev30": 15, + "pct": -86.66666666666667 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 8 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 14881994, + "title": "OR56B4", + "description": "Protein-coding gene in the species Homo sapiens", + "wikidataId": "Q18053061", + "revisionId": 1377922091, + "pageBytes": 1685, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "Genes on human chromosome 11", + "Olfactory receptors, family 56 (OR56)", + "Transmembrane receptor stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 12 + }, + { + "month": "2026-06", + "views": 16 + }, + { + "month": "2026-07", + "views": 6 + }, + { + "month": "2026-08", + "views": 6 + }, + { + "month": "2026-09", + "views": 9 + }, + { + "month": "2026-10", + "views": 17 + } + ], + "latestMonth": "2026-10", + "total": 66, + "dailyAverage": 0.5483870967741935, + "trendPercent": 88.88888888888889 + }, + "stats": { + "attention": 21, + "depth": 54, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 12, + "prev30": 13, + "pct": -7.6923076923076925 + }, + "instanceOf": [ + { + "id": "Q7187", + "label": "gene" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 7 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 31612771, + "title": "David Cullinane", + "description": "Irish politician (born 1974)", + "wikidataId": "Q5232711", + "revisionId": 1364804505, + "pageBytes": 10821, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1974 births", + "Alumni of Waterford Institute of Technology", + "Labour Panel senators", + "Living people", + "Members of Waterford City Council", + "Members of the 24th Seanad", + "Members of the 32nd Dáil", + "Members of the 33rd Dáil", + "Members of the 34th Dáil", + "Politicians from Waterford (city)", + "Sinn Féin TDs (post-1923)", + "Sinn Féin local councillors in the Republic of Ireland", + "Sinn Féin senators", + "Spouses of Irish politicians" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 478 + }, + { + "month": "2026-06", + "views": 667 + }, + { + "month": "2026-07", + "views": 504 + }, + { + "month": "2026-08", + "views": 324 + }, + { + "month": "2026-09", + "views": 387 + }, + { + "month": "2026-10", + "views": 593 + } + ], + "latestMonth": "2026-10", + "total": 2953, + "dailyAverage": 19.129032258064516, + "trendPercent": 53.229974160206716 + }, + "stats": { + "attention": 46, + "depth": 67, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 380, + "prev30": 584, + "pct": -34.93150684931507 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 9, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 33570929, + "title": "Grumbach (Werra)", + "description": "River in Thuringia, Germany", + "wikidataId": "Q826448", + "revisionId": 1374508115, + "pageBytes": 1179, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Rivers of Germany", + "Rivers of Thuringia", + "Thuringia river stubs", + "Tributaries of the Werra" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 7 + }, + { + "month": "2026-06", + "views": 11 + }, + { + "month": "2026-07", + "views": 30 + }, + { + "month": "2026-08", + "views": 26 + }, + { + "month": "2026-09", + "views": 18 + }, + { + "month": "2026-10", + "views": 8 + } + ], + "latestMonth": "2026-10", + "total": 100, + "dailyAverage": 0.25806451612903225, + "trendPercent": -55.55555555555556 + }, + "stats": { + "attention": 16, + "depth": 51, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 4, + "prev30": 11, + "pct": -63.63636363636363 + }, + "instanceOf": [ + { + "id": "Q4022", + "label": "river" + } + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 38181803, + "title": "Gábor Scheiring", + "description": "Hungarian economist and politician", + "wikidataId": "Q5625769", + "revisionId": 1378220985, + "pageBytes": 4451, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "1981 births", + "Alumni of Hughes Hall, Cambridge", + "Central European University alumni", + "Corvinus University of Budapest alumni", + "Dialogue for Hungary politicians", + "Hungarian economists", + "LMP – Hungary's Green Party politicians", + "Living people", + "Members of the National Assembly of Hungary (2010–2014)", + "Politicians from Budapest" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 624 + }, + { + "month": "2026-06", + "views": 421 + }, + { + "month": "2026-07", + "views": 495 + }, + { + "month": "2026-08", + "views": 60 + }, + { + "month": "2026-09", + "views": 61 + }, + { + "month": "2026-10", + "views": 60 + } + ], + "latestMonth": "2026-10", + "total": 1721, + "dailyAverage": 1.935483870967742, + "trendPercent": -1.639344262295082 + }, + "stats": { + "attention": 30, + "depth": 61, + "reach": 20 + }, + "legacyCategory": "People", + "drift30": { + "last30": 53, + "prev30": 62, + "pct": -14.516129032258066 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 5, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 50869430, + "title": "Felt, Not Heard", + "description": null, + "wikidataId": "Q24885448", + "revisionId": 1359436538, + "pageBytes": 2555, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "American companies established in 2008", + "Recording studio stubs", + "Recording studios in Manhattan", + "Sound trademarks" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 26 + }, + { + "month": "2026-06", + "views": 24 + }, + { + "month": "2026-07", + "views": 49 + }, + { + "month": "2026-08", + "views": 40 + }, + { + "month": "2026-09", + "views": 33 + }, + { + "month": "2026-10", + "views": 18 + } + ], + "latestMonth": "2026-10", + "total": 190, + "dailyAverage": 0.5806451612903226, + "trendPercent": -45.45454545454545 + }, + "stats": { + "attention": 21, + "depth": 57, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 23, + "prev30": 19, + "pct": 21.052631578947366 + }, + "instanceOf": [ + { + "id": "Q1589009", + "label": "privately held company" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 2 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 57346145, + "title": "Madura perfida", + "description": "Species of true bug", + "wikidataId": "Q10575176", + "revisionId": 1352289182, + "pageBytes": 1728, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Coreini", + "Coreoidea stubs", + "Hemiptera of Central America", + "Hemiptera of South America", + "Insects described in 1862", + "Taxa named by Carl Stål" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 13 + }, + { + "month": "2026-06", + "views": 7 + }, + { + "month": "2026-07", + "views": 0 + }, + { + "month": "2026-08", + "views": 5 + }, + { + "month": "2026-09", + "views": 12 + }, + { + "month": "2026-10", + "views": 6 + } + ], + "latestMonth": "2026-10", + "total": 43, + "dailyAverage": 0.1935483870967742, + "trendPercent": -50.0 + }, + "stats": { + "attention": 14, + "depth": 54, + "reach": 20 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 9, + "prev30": 7, + "pct": 28.57142857142857 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 6 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 788417, + "title": "Efrat (Israeli settlement)", + "description": "Israeli settlement in the West Bank", + "wikidataId": "Q64053", + "revisionId": 1385635902, + "pageBytes": 22320, + "languageCount": 19, + "languagesTruncated": false, + "categories": [ + "1983 establishments in the Israeli Civil Administration area", + "Gush Etzion Regional Council", + "Israeli settlements in the West Bank", + "Populated places established in 1983", + "Religious Israeli settlements" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1949 + }, + { + "month": "2026-06", + "views": 1520 + }, + { + "month": "2026-07", + "views": 1489 + }, + { + "month": "2026-08", + "views": 1466 + }, + { + "month": "2026-09", + "views": 1733 + }, + { + "month": "2026-10", + "views": 1583 + } + ], + "latestMonth": "2026-10", + "total": 9740, + "dailyAverage": 51.064516129032256, + "trendPercent": -8.655510675129833 + }, + "stats": { + "attention": 53, + "depth": 72, + "reach": 43 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1552, + "prev30": 1482, + "pct": 4.723346828609987 + }, + "instanceOf": [ + { + "id": "Q582706", + "label": "Israeli settlement" + }, + { + "id": "Q1288520", + "label": "local council in Israel" + }, + { + "id": "Q618123", + "label": "geographical feature" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 3230299, + "title": "St. George's Island, Bermuda", + "description": "One of the principal islands of Bermuda", + "wikidataId": "Q1813379", + "revisionId": 1368444919, + "pageBytes": 5247, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "Islands of Bermuda", + "St. George's, Bermuda", + "St. George's Parish, Bermuda" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 424 + }, + { + "month": "2026-06", + "views": 353 + }, + { + "month": "2026-07", + "views": 319 + }, + { + "month": "2026-08", + "views": 420 + }, + { + "month": "2026-09", + "views": 317 + }, + { + "month": "2026-10", + "views": 315 + } + ], + "latestMonth": "2026-10", + "total": 2148, + "dailyAverage": 10.161290322580646, + "trendPercent": -0.6309148264984227 + }, + "stats": { + "attention": 42, + "depth": 62, + "reach": 33 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 253, + "prev30": 320, + "pct": -20.9375 + }, + "instanceOf": [ + { + "id": "Q23442", + "label": "island" + } + ], + "tiers": { + "attention": 8, + "depth": 5, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 7259871, + "title": "National Association of Television Program Executives", + "description": null, + "wikidataId": "Q6970789", + "revisionId": 1356897889, + "pageBytes": 6285, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "American organizations established in 1963", + "Companies that filed for Chapter 11 bankruptcy in 2022", + "Film markets", + "Professional associations based in the United States", + "Television organizations in the United States" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 158 + }, + { + "month": "2026-06", + "views": 143 + }, + { + "month": "2026-07", + "views": 162 + }, + { + "month": "2026-08", + "views": 155 + }, + { + "month": "2026-09", + "views": 146 + }, + { + "month": "2026-10", + "views": 129 + } + ], + "latestMonth": "2026-10", + "total": 893, + "dailyAverage": 4.161290322580645, + "trendPercent": -11.643835616438356 + }, + "stats": { + "attention": 35, + "depth": 63, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 122, + "prev30": 136, + "pct": -10.294117647058822 + }, + "instanceOf": [ + { + "id": "Q163740", + "label": "nonprofit organization" + } + ], + "tiers": { + "attention": 7, + "depth": 6, + "reach": 5 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 35301595, + "title": "Schläfli double six", + "description": "Arrangement of 30 points and 12 lines", + "wikidataId": "Q7431763", + "revisionId": 1357984673, + "pageBytes": 6463, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Configurations (geometry)" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 132 + }, + { + "month": "2026-06", + "views": 123 + }, + { + "month": "2026-07", + "views": 97 + }, + { + "month": "2026-08", + "views": 110 + }, + { + "month": "2026-09", + "views": 137 + }, + { + "month": "2026-10", + "views": 122 + } + ], + "latestMonth": "2026-10", + "total": 721, + "dailyAverage": 3.935483870967742, + "trendPercent": -10.948905109489052 + }, + "stats": { + "attention": 35, + "depth": 64, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 132, + "prev30": 124, + "pct": 6.451612903225806 + }, + "instanceOf": [ + { + "id": "Q24034552", + "label": "mathematical concept" + } + ], + "tiers": { + "attention": 7, + "depth": 6, + "reach": 5 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 37011977, + "title": "San Michele Arcangelo, Naples", + "description": "Church in Naples, Italy", + "wikidataId": "Q718623", + "revisionId": 1339741732, + "pageBytes": 1663, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "17th-century Roman Catholic church buildings in Italy", + "Baroque architecture in Naples", + "Churches in Naples" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 51 + }, + { + "month": "2026-06", + "views": 32 + }, + { + "month": "2026-07", + "views": 19 + }, + { + "month": "2026-08", + "views": 22 + }, + { + "month": "2026-09", + "views": 50 + }, + { + "month": "2026-10", + "views": 21 + } + ], + "latestMonth": "2026-10", + "total": 195, + "dailyAverage": 0.6774193548387096, + "trendPercent": -57.99999999999999 + }, + "stats": { + "attention": 22, + "depth": 54, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 20, + "prev30": 34, + "pct": -41.17647058823529 + }, + "instanceOf": [ + { + "id": "Q16970", + "label": "church building" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 8 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 38381588, + "title": "A. R. Poduval", + "description": "Indian surgeon and artist", + "wikidataId": "Q4648301", + "revisionId": 1366241182, + "pageBytes": 8301, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1884 births", + "1940 deaths", + "20th-century Indian male painters", + "20th-century Indian painters", + "20th-century Indian surgeons", + "Artists from British India", + "Artists from Thrissur", + "Expatriates from British India in Germany", + "Expatriates from British India in the United Kingdom", + "Indian portrait painters", + "Medical doctors from British India" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 31 + }, + { + "month": "2026-06", + "views": 35 + }, + { + "month": "2026-07", + "views": 30 + }, + { + "month": "2026-08", + "views": 47 + }, + { + "month": "2026-09", + "views": 42 + }, + { + "month": "2026-10", + "views": 31 + } + ], + "latestMonth": "2026-10", + "total": 216, + "dailyAverage": 1.0, + "trendPercent": -26.190476190476193 + }, + "stats": { + "attention": 25, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 24, + "prev30": 39, + "pct": -38.46153846153847 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 7, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 46622613, + "title": "Sarah Hoffman", + "description": "Canadian politician (born 1980)", + "wikidataId": "Q19862161", + "revisionId": 1378272694, + "pageBytes": 12222, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1980 births", + "21st-century Canadian women politicians", + "21st-century members of the Legislative Assembly of Alberta", + "Alberta New Democratic Party MLAs", + "Alberta school board trustees", + "Concordia University alumni", + "Deputy premiers of Alberta", + "Living people", + "Members of the Executive Council of Alberta", + "Ministers of health of Alberta", + "Politicians from Edmonton", + "University of Alberta alumni", + "Women MLAs in Alberta", + "Women government ministers of Canada" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 528 + }, + { + "month": "2026-06", + "views": 373 + }, + { + "month": "2026-07", + "views": 339 + }, + { + "month": "2026-08", + "views": 247 + }, + { + "month": "2026-09", + "views": 375 + }, + { + "month": "2026-10", + "views": 467 + } + ], + "latestMonth": "2026-10", + "total": 2329, + "dailyAverage": 15.064516129032258, + "trendPercent": 24.53333333333333 + }, + "stats": { + "attention": 45, + "depth": 68, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 430, + "prev30": 375, + "pct": 14.666666666666666 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 9, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 76390961, + "title": "2024–2026 Cuban protests", + "description": "Protests against the Cuban government", + "wikidataId": "Q125000393", + "revisionId": 1385442003, + "pageBytes": 23735, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "2024 in Cuba", + "2024 protests", + "Decommunization", + "Democratization", + "March 2024 in Cuba", + "Protests in Cuba" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 406 + }, + { + "month": "2026-06", + "views": 1115 + }, + { + "month": "2026-07", + "views": 799 + }, + { + "month": "2026-08", + "views": 765 + }, + { + "month": "2026-09", + "views": 608 + }, + { + "month": "2026-10", + "views": 658 + } + ], + "latestMonth": "2026-10", + "total": 4351, + "dailyAverage": 21.225806451612904, + "trendPercent": 8.223684210526317 + }, + "stats": { + "attention": 47, + "depth": 73, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 652, + "prev30": 638, + "pct": 2.19435736677116 + }, + "instanceOf": [ + { + "id": "Q273120", + "label": "protest" + } + ], + "tiers": { + "attention": 9, + "depth": 10, + "reach": 7 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 7386245, + "title": "The Leslie Uggams Show", + "description": "1969 American TV series or program", + "wikidataId": "Q7746967", + "revisionId": 1385017105, + "pageBytes": 8023, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1960s American musical comedy television series", + "1960s American sketch comedy television series", + "1960s American variety television series", + "1969 American television series debuts", + "1969 American television series endings", + "1969 English-language television series debuts", + "1969 English-language television series endings", + "CBS original programming", + "English-language American television shows" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 288 + }, + { + "month": "2026-06", + "views": 239 + }, + { + "month": "2026-07", + "views": 239 + }, + { + "month": "2026-08", + "views": 328 + }, + { + "month": "2026-09", + "views": 340 + }, + { + "month": "2026-10", + "views": 214 + } + ], + "latestMonth": "2026-10", + "total": 1648, + "dailyAverage": 6.903225806451613, + "trendPercent": -37.05882352941177 + }, + "stats": { + "attention": 39, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 182, + "prev30": 262, + "pct": -30.53435114503817 + }, + "instanceOf": [ + { + "id": "Q5398426", + "label": "television series" + } + ], + "tiers": { + "attention": 8, + "depth": 7, + "reach": 2 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 12474273, + "title": "Iphis monarch", + "description": "Species of bird", + "wikidataId": "Q692954", + "revisionId": 1380009301, + "pageBytes": 2584, + "languageCount": 20, + "languagesTruncated": false, + "categories": [ + "Birds described in 1928", + "Birds of the Marquesas Islands", + "Endemic birds of French Polynesia", + "IUCN Red List critically endangered species", + "Monarchidae stubs", + "Pomarea", + "Taxa named by Gregory Mathews", + "Taxa named by Robert Cushman Murphy" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 109 + }, + { + "month": "2026-06", + "views": 62 + }, + { + "month": "2026-07", + "views": 85 + }, + { + "month": "2026-08", + "views": 116 + }, + { + "month": "2026-09", + "views": 76 + }, + { + "month": "2026-10", + "views": 72 + } + ], + "latestMonth": "2026-10", + "total": 520, + "dailyAverage": 2.3225806451612905, + "trendPercent": -5.263157894736842 + }, + "stats": { + "attention": 31, + "depth": 57, + "reach": 44 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 69, + "prev30": 71, + "pct": -2.8169014084507045 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 5, + "depth": 3, + "reach": 9 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 19438223, + "title": "Friedrich Kasimir Medikus", + "description": "German physician and botanist", + "wikidataId": "Q77464", + "revisionId": 1366832481, + "pageBytes": 971, + "languageCount": 22, + "languagesTruncated": false, + "categories": [ + "1738 births", + "1808 deaths", + "18th-century German botanists", + "German medical doctors", + "People from Kusel (district)" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 98 + }, + { + "month": "2026-06", + "views": 73 + }, + { + "month": "2026-07", + "views": 59 + }, + { + "month": "2026-08", + "views": 69 + }, + { + "month": "2026-09", + "views": 65 + }, + { + "month": "2026-10", + "views": 61 + } + ], + "latestMonth": "2026-10", + "total": 425, + "dailyAverage": 1.967741935483871, + "trendPercent": -6.153846153846154 + }, + "stats": { + "attention": 30, + "depth": 50, + "reach": 45 + }, + "legacyCategory": "People", + "drift30": { + "last30": 42, + "prev30": 66, + "pct": -36.36363636363637 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 1, + "reach": 10 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 40068633, + "title": "Wahconah Falls State Park", + "description": "Massachusetts state park", + "wikidataId": "Q14715969", + "revisionId": 1362680935, + "pageBytes": 3291, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Dalton, Massachusetts", + "Parks in Berkshire County, Massachusetts", + "State parks of Massachusetts" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 46 + }, + { + "month": "2026-06", + "views": 39 + }, + { + "month": "2026-07", + "views": 34 + }, + { + "month": "2026-08", + "views": 27 + }, + { + "month": "2026-09", + "views": 34 + }, + { + "month": "2026-10", + "views": 36 + } + ], + "latestMonth": "2026-10", + "total": 216, + "dailyAverage": 1.1612903225806452, + "trendPercent": 5.88235294117647 + }, + "stats": { + "attention": 26, + "depth": 59, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 11, + "prev30": 42, + "pct": -73.80952380952381 + }, + "instanceOf": [ + { + "id": "Q37998360", + "label": "Massachusetts state park" + } + ], + "tiers": { + "attention": 3, + "depth": 4, + "reach": 4 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 81470283, + "title": "Presidential Anti-Organized Crime Commission", + "description": "Government agency in the Philippines", + "wikidataId": "Q136773957", + "revisionId": 1384453410, + "pageBytes": 31485, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1992 establishments in the Philippines", + "National law enforcement agencies of the Philippines", + "Office of the President of the Philippines", + "Organized crime in the Philippines" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 412 + }, + { + "month": "2026-06", + "views": 283 + }, + { + "month": "2026-07", + "views": 348 + }, + { + "month": "2026-08", + "views": 394 + }, + { + "month": "2026-09", + "views": 312 + }, + { + "month": "2026-10", + "views": 252 + } + ], + "latestMonth": "2026-10", + "total": 2001, + "dailyAverage": 8.129032258064516, + "trendPercent": -19.230769230769234 + }, + "stats": { + "attention": 40, + "depth": 75, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 279, + "prev30": 282, + "pct": -1.0638297872340425 + }, + "instanceOf": [ + { + "id": "Q327333", + "label": "government agency" + } + ], + "tiers": { + "attention": 8, + "depth": 10, + "reach": 2 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 82952377, + "title": "Lichen community", + "description": "Recurring assemblage of lichen species and its classification in vegetation science", + "wikidataId": "Q105442186", + "revisionId": 1377598668, + "pageBytes": 50655, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Community ecology", + "Lichenology" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 62 + }, + { + "month": "2026-06", + "views": 49 + }, + { + "month": "2026-07", + "views": 58 + }, + { + "month": "2026-08", + "views": 79 + }, + { + "month": "2026-09", + "views": 51 + }, + { + "month": "2026-10", + "views": 46 + } + ], + "latestMonth": "2026-10", + "total": 345, + "dailyAverage": 1.4838709677419355, + "trendPercent": -9.803921568627452 + }, + "stats": { + "attention": 28, + "depth": 78, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 32, + "prev30": 66, + "pct": -51.515151515151516 + }, + "instanceOf": [], + "tiers": { + "attention": 4, + "depth": 10, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 1571138, + "title": "Ranks and insignia of the Nazi Party", + "description": "", + "wikidataId": "Q13424724", + "revisionId": 1367893707, + "pageBytes": 45256, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "Nazi paramilitary ranks", + "Nazi political ranks" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 8367 + }, + { + "month": "2026-06", + "views": 6565 + }, + { + "month": "2026-07", + "views": 6217 + }, + { + "month": "2026-08", + "views": 5800 + }, + { + "month": "2026-09", + "views": 5746 + }, + { + "month": "2026-10", + "views": 5129 + } + ], + "latestMonth": "2026-10", + "total": 37824, + "dailyAverage": 165.4516129032258, + "trendPercent": -10.737904629307344 + }, + "stats": { + "attention": 62, + "depth": 78, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5264, + "prev30": 5341, + "pct": -1.4416775884665793 + }, + "instanceOf": [], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 7 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 21263895, + "title": "Przybędza", + "description": "Village in Silesian Voivodeship, Poland", + "wikidataId": "Q7253590", + "revisionId": 1377108521, + "pageBytes": 1166, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "Villages in Żywiec County", + "Żywiec County geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 16 + }, + { + "month": "2026-06", + "views": 17 + }, + { + "month": "2026-07", + "views": 4 + }, + { + "month": "2026-08", + "views": 10 + }, + { + "month": "2026-09", + "views": 25 + }, + { + "month": "2026-10", + "views": 8 + } + ], + "latestMonth": "2026-10", + "total": 80, + "dailyAverage": 0.25806451612903225, + "trendPercent": -68.0 + }, + "stats": { + "attention": 16, + "depth": 51, + "reach": 32 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 7, + "prev30": 17, + "pct": -58.82352941176471 + }, + "instanceOf": [ + { + "id": "Q3558970", + "label": "village of Poland" + } + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 28499047, + "title": "Wu Songgao", + "description": null, + "wikidataId": "Q5970557", + "revisionId": 1346615028, + "pageBytes": 5727, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1898 births", + "1953 deaths", + "Chinese collaborators with the Empire of Japan", + "Chinese jurists", + "Inmates of Tilanqiao Prison", + "Politicians from Suzhou", + "Prisoners and detainees of China", + "Republic of China politicians from Jiangsu" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 60 + }, + { + "month": "2026-06", + "views": 32 + }, + { + "month": "2026-07", + "views": 46 + }, + { + "month": "2026-08", + "views": 79 + }, + { + "month": "2026-09", + "views": 47 + }, + { + "month": "2026-10", + "views": 39 + } + ], + "latestMonth": "2026-10", + "total": 303, + "dailyAverage": 1.2580645161290323, + "trendPercent": -17.02127659574468 + }, + "stats": { + "attention": 27, + "depth": 63, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 24, + "prev30": 45, + "pct": -46.666666666666664 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 6, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 29615478, + "title": "Rustan's", + "description": "Philippine department store chain", + "wikidataId": "Q7382454", + "revisionId": 1359695857, + "pageBytes": 17685, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Companies based in Makati", + "Department stores of the Philippines", + "Philippine brands", + "Philippine companies established in 1952", + "Retail companies established in 1952" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1037 + }, + { + "month": "2026-06", + "views": 920 + }, + { + "month": "2026-07", + "views": 1050 + }, + { + "month": "2026-08", + "views": 1034 + }, + { + "month": "2026-09", + "views": 895 + }, + { + "month": "2026-10", + "views": 819 + } + ], + "latestMonth": "2026-10", + "total": 5755, + "dailyAverage": 26.419354838709676, + "trendPercent": -8.491620111731843 + }, + "stats": { + "attention": 49, + "depth": 71, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 845, + "prev30": 831, + "pct": 1.684717208182912 + }, + "instanceOf": [ + { + "id": "Q4830453", + "label": "business" + } + ], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 4 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 39728642, + "title": "Wilkeson Arch", + "description": "United States historic place", + "wikidataId": "Q14713945", + "revisionId": 1373482944, + "pageBytes": 3619, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Buildings and structures completed in 1925", + "Buildings and structures in Pierce County, Washington", + "Buildings and structures on the National Register of Historic Places in Washington (state)", + "National Park Service rustic in Washington (state)", + "National Register of Historic Places in Pierce County, Washington" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 19 + }, + { + "month": "2026-06", + "views": 25 + }, + { + "month": "2026-07", + "views": 12 + }, + { + "month": "2026-08", + "views": 9 + }, + { + "month": "2026-09", + "views": 19 + }, + { + "month": "2026-10", + "views": 14 + } + ], + "latestMonth": "2026-10", + "total": 98, + "dailyAverage": 0.45161290322580644, + "trendPercent": -26.31578947368421 + }, + "stats": { + "attention": 20, + "depth": 59, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 8, + "prev30": 24, + "pct": -66.66666666666666 + }, + "instanceOf": [ + { + "id": "Q2860026", + "label": "arch" + } + ], + "tiers": { + "attention": 2, + "depth": 4, + "reach": 2 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 45519379, + "title": "Maine State Route 144", + "description": "State highway in Lincoln County, Maine, US", + "wikidataId": "Q19581200", + "revisionId": 1290644518, + "pageBytes": 7051, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "State highways in Maine", + "Transportation in Lincoln County, Maine" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 22 + }, + { + "month": "2026-06", + "views": 25 + }, + { + "month": "2026-07", + "views": 13 + }, + { + "month": "2026-08", + "views": 30 + }, + { + "month": "2026-09", + "views": 14 + }, + { + "month": "2026-10", + "views": 12 + } + ], + "latestMonth": "2026-10", + "total": 116, + "dailyAverage": 0.3870967741935484, + "trendPercent": -14.285714285714285 + }, + "stats": { + "attention": 19, + "depth": 64, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5, + "prev30": 15, + "pct": -66.66666666666666 + }, + "instanceOf": [ + { + "id": "Q1788582", + "label": "state highway" + } + ], + "tiers": { + "attention": 1, + "depth": 6, + "reach": 4 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 51404369, + "title": "Luis María Kreckler", + "description": null, + "wikidataId": "Q5983869", + "revisionId": 1320623670, + "pageBytes": 5074, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1954 births", + "Ambassadors of Argentina to Brazil", + "Ambassadors of Argentina to China", + "Ambassadors of Argentina to Germany", + "Living people", + "University of Buenos Aires alumni" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 58 + }, + { + "month": "2026-06", + "views": 56 + }, + { + "month": "2026-07", + "views": 110 + }, + { + "month": "2026-08", + "views": 75 + }, + { + "month": "2026-09", + "views": 55 + }, + { + "month": "2026-10", + "views": 46 + } + ], + "latestMonth": "2026-10", + "total": 400, + "dailyAverage": 1.4838709677419355, + "trendPercent": -16.363636363636363 + }, + "stats": { + "attention": 28, + "depth": 62, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 47, + "prev30": 52, + "pct": -9.615384615384617 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 5, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 57427321, + "title": "Corruption in Kazakhstan", + "description": "", + "wikidataId": "Q12981954", + "revisionId": 1372620649, + "pageBytes": 10869, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Corruption by country", + "Corruption in Asia", + "Crime in Kazakhstan by type", + "Economy of Kazakhstan", + "Government of Kazakhstan", + "Law of Kazakhstan", + "Politics of Kazakhstan", + "Society of Kazakhstan" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 375 + }, + { + "month": "2026-06", + "views": 262 + }, + { + "month": "2026-07", + "views": 254 + }, + { + "month": "2026-08", + "views": 229 + }, + { + "month": "2026-09", + "views": 344 + }, + { + "month": "2026-10", + "views": 236 + } + ], + "latestMonth": "2026-10", + "total": 1700, + "dailyAverage": 7.612903225806452, + "trendPercent": -31.3953488372093 + }, + "stats": { + "attention": 40, + "depth": 67, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 211, + "prev30": 265, + "pct": -20.37735849056604 + }, + "instanceOf": [ + { + "id": "Q74817647", + "label": "aspect in a geographic region" + } + ], + "tiers": { + "attention": 8, + "depth": 8, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 59919230, + "title": "Trey Rhodes", + "description": "American politician", + "wikidataId": "Q61685757", + "revisionId": 1365794761, + "pageBytes": 2361, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1975 births", + "21st-century members of the Georgia General Assembly", + "Living people", + "Republican Party members of the Georgia House of Representatives" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 132 + }, + { + "month": "2026-06", + "views": 59 + }, + { + "month": "2026-07", + "views": 78 + }, + { + "month": "2026-08", + "views": 100 + }, + { + "month": "2026-09", + "views": 134 + }, + { + "month": "2026-10", + "views": 129 + } + ], + "latestMonth": "2026-10", + "total": 632, + "dailyAverage": 4.161290322580645, + "trendPercent": -3.731343283582089 + }, + "stats": { + "attention": 35, + "depth": 56, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 178, + "prev30": 129, + "pct": 37.98449612403101 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 2, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 84455732, + "title": "Streetsia challengeri", + "description": "Species of marine amphipod", + "wikidataId": "Q4471202", + "revisionId": 1379905236, + "pageBytes": 3086, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Amphipod stubs", + "Hyperiidea" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 0 + }, + { + "month": "2026-06", + "views": 0 + }, + { + "month": "2026-07", + "views": 0 + }, + { + "month": "2026-08", + "views": 0 + }, + { + "month": "2026-09", + "views": 0 + }, + { + "month": "2026-10", + "views": 83 + } + ], + "latestMonth": "2026-10", + "total": 83, + "dailyAverage": 2.6774193548387095, + "trendPercent": null + }, + "stats": { + "attention": 32, + "depth": 58, + "reach": 23 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 48, + "prev30": 57, + "pct": -15.789473684210526 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 6, + "depth": 3, + "reach": 6 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 49514, + "title": "Henri Lebesgue", + "description": "French mathematician (1875–1941)", + "wikidataId": "Q206005", + "revisionId": 1372005331, + "pageBytes": 19773, + "languageCount": 43, + "languagesTruncated": false, + "categories": [ + "1875 births", + "1941 deaths", + "20th-century French mathematicians", + "Academic staff of the University of Poitiers", + "Foreign members of the Royal Society", + "French fellows of the Royal Society", + "French mathematical analysts", + "Functional analysts", + "Intuitionism", + "Lycée Louis-le-Grand alumni", + "Measure theorists", + "Members of the French Academy of Sciences", + "People from Beauvais", + "University of Paris alumni", + "École normale supérieure (Paris) alumni" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2432 + }, + { + "month": "2026-06", + "views": 2011 + }, + { + "month": "2026-07", + "views": 1680 + }, + { + "month": "2026-08", + "views": 1975 + }, + { + "month": "2026-09", + "views": 2073 + }, + { + "month": "2026-10", + "views": 2122 + } + ], + "latestMonth": "2026-10", + "total": 12293, + "dailyAverage": 68.45161290322581, + "trendPercent": 2.363724071394115 + }, + "stats": { + "attention": 55, + "depth": 72, + "reach": 55 + }, + "legacyCategory": "People", + "drift30": { + "last30": 2041, + "prev30": 2038, + "pct": 0.14720314033366044 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 10 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 14761136, + "title": "RBMX", + "description": "Protein-coding gene in humans", + "wikidataId": "Q18038778", + "revisionId": 1383624184, + "pageBytes": 8537, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Genes on human chromosome X", + "RNA-binding motif proteins" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 46 + }, + { + "month": "2026-06", + "views": 40 + }, + { + "month": "2026-07", + "views": 60 + }, + { + "month": "2026-08", + "views": 54 + }, + { + "month": "2026-09", + "views": 28 + }, + { + "month": "2026-10", + "views": 34 + } + ], + "latestMonth": "2026-10", + "total": 262, + "dailyAverage": 1.096774193548387, + "trendPercent": 21.428571428571427 + }, + "stats": { + "attention": 26, + "depth": 66, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 26, + "prev30": 35, + "pct": -25.71428571428571 + }, + "instanceOf": [ + { + "id": "Q7187", + "label": "gene" + } + ], + "tiers": { + "attention": 3, + "depth": 7, + "reach": 4 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 72270640, + "title": "Chaharbagh County", + "description": "County in Alborz province, Iran", + "wikidataId": "Q107333581", + "revisionId": 1375465027, + "pageBytes": 9184, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "2020 establishments in Iran", + "Chaharbagh County", + "Counties of Alborz province" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 45 + }, + { + "month": "2026-06", + "views": 98 + }, + { + "month": "2026-07", + "views": 35 + }, + { + "month": "2026-08", + "views": 51 + }, + { + "month": "2026-09", + "views": 70 + }, + { + "month": "2026-10", + "views": 57 + } + ], + "latestMonth": "2026-10", + "total": 356, + "dailyAverage": 1.8387096774193548, + "trendPercent": -18.571428571428573 + }, + "stats": { + "attention": 29, + "depth": 66, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 59, + "prev30": 65, + "pct": -9.230769230769232 + }, + "instanceOf": [ + { + "id": "Q137535", + "label": "county of Iran" + } + ], + "tiers": { + "attention": 4, + "depth": 7, + "reach": 7 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 75179753, + "title": "2016 Queensland local elections", + "description": "", + "wikidataId": "Q115228225", + "revisionId": 1272327430, + "pageBytes": 6310, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "2016 elections in Australia", + "Local elections in Queensland", + "March 2016 in Australia" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 40 + }, + { + "month": "2026-06", + "views": 32 + }, + { + "month": "2026-07", + "views": 21 + }, + { + "month": "2026-08", + "views": 18 + }, + { + "month": "2026-09", + "views": 34 + }, + { + "month": "2026-10", + "views": 28 + } + ], + "latestMonth": "2026-10", + "total": 173, + "dailyAverage": 0.9032258064516129, + "trendPercent": -17.647058823529413 + }, + "stats": { + "attention": 24, + "depth": 63, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 37, + "prev30": 19, + "pct": 94.73684210526315 + }, + "instanceOf": [ + { + "id": "Q15966540", + "label": "local election" + } + ], + "tiers": { + "attention": 3, + "depth": 6, + "reach": 2 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 79417550, + "title": "Region Östergötland", + "description": "Regional council of Östergötland County, Sweden", + "wikidataId": "Q3231915", + "revisionId": 1377659696, + "pageBytes": 4828, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Regioner of Sweden", + "Östergötland County" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 123 + }, + { + "month": "2026-06", + "views": 93 + }, + { + "month": "2026-07", + "views": 73 + }, + { + "month": "2026-08", + "views": 109 + }, + { + "month": "2026-09", + "views": 247 + }, + { + "month": "2026-10", + "views": 133 + } + ], + "latestMonth": "2026-10", + "total": 778, + "dailyAverage": 4.290322580645161, + "trendPercent": -46.15384615384615 + }, + "stats": { + "attention": 35, + "depth": 61, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 89, + "prev30": 214, + "pct": -58.41121495327103 + }, + "instanceOf": [ + { + "id": "Q85164347", + "label": "county council of Sweden" + }, + { + "id": "Q1754161", + "label": "regional council in Sweden" + }, + { + "id": "Q65196511", + "label": "Q65196511" + } + ], + "tiers": { + "attention": 7, + "depth": 5, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 83588998, + "title": "Kamil Oniszczuk", + "description": "Polish mixed martial artist (born 1996)", + "wikidataId": "Q97373278", + "revisionId": 1380888360, + "pageBytes": 17654, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1996 births", + "21st-century Polish sportsmen", + "Bellator male fighters", + "Living people", + "Middleweight mixed martial artists", + "Mixed martial artists utilizing Brazilian jiu-jitsu", + "People from Międzyrzecz", + "Polish male mixed martial artists", + "Polish practitioners of Brazilian jiu-jitsu", + "Welterweight mixed martial artists" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 0 + }, + { + "month": "2026-06", + "views": 12 + }, + { + "month": "2026-07", + "views": 209 + }, + { + "month": "2026-08", + "views": 149 + }, + { + "month": "2026-09", + "views": 227 + }, + { + "month": "2026-10", + "views": 110 + } + ], + "latestMonth": "2026-10", + "total": 707, + "dailyAverage": 3.5483870967741935, + "trendPercent": -51.541850220264315 + }, + "stats": { + "attention": 34, + "depth": 71, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 81, + "prev30": 201, + "pct": -59.70149253731343 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 6, + "depth": 9, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 127076, + "title": "Hillburn, New York", + "description": "Village in New York, United States", + "wikidataId": "Q3452966", + "revisionId": 1384097001, + "pageBytes": 10176, + "languageCount": 20, + "languagesTruncated": false, + "categories": [ + "Ramapos", + "Villages in New York (state)", + "Villages in Rockland County, New York" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 265 + }, + { + "month": "2026-06", + "views": 251 + }, + { + "month": "2026-07", + "views": 305 + }, + { + "month": "2026-08", + "views": 256 + }, + { + "month": "2026-09", + "views": 271 + }, + { + "month": "2026-10", + "views": 266 + } + ], + "latestMonth": "2026-10", + "total": 1614, + "dailyAverage": 8.580645161290322, + "trendPercent": -1.8450184501845017 + }, + "stats": { + "attention": 40, + "depth": 67, + "reach": 44 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 229, + "prev30": 258, + "pct": -11.24031007751938 + }, + "instanceOf": [ + { + "id": "Q751708", + "label": "village in the United States" + }, + { + "id": "Q55237813", + "label": "village of New York" + } + ], + "tiers": { + "attention": 8, + "depth": 8, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 273706, + "title": "Pallas's cat", + "description": "Species of small wild cat", + "wikidataId": "Q166794", + "revisionId": 1385350039, + "pageBytes": 64708, + "languageCount": 86, + "languagesTruncated": false, + "categories": [ + "Fauna listed on CITES Appendix II", + "Felidae of Asia", + "IUCN Red List least concern species", + "Mammals described in 1776", + "Otocolobus", + "Taxa named by Peter Simon Pallas" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 41261 + }, + { + "month": "2026-06", + "views": 45076 + }, + { + "month": "2026-07", + "views": 41171 + }, + { + "month": "2026-08", + "views": 40789 + }, + { + "month": "2026-09", + "views": 42326 + }, + { + "month": "2026-10", + "views": 42025 + } + ], + "latestMonth": "2026-10", + "total": 252648, + "dailyAverage": 1355.6451612903227, + "trendPercent": -0.7111468128337193 + }, + "stats": { + "attention": 77, + "depth": 80, + "reach": 65 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 37962, + "prev30": 45377, + "pct": -16.340877537078256 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 27722439, + "title": "Cannon (band)", + "description": "Scottish post-rock band", + "wikidataId": "Q5032746", + "revisionId": 1368237133, + "pageBytes": 4944, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1999 establishments in Scotland", + "Musical groups disestablished in 2003", + "Musical groups established in 1999", + "Rock music groups from Glasgow", + "Scottish indie rock groups", + "Scottish post-rock groups" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 120 + }, + { + "month": "2026-06", + "views": 89 + }, + { + "month": "2026-07", + "views": 89 + }, + { + "month": "2026-08", + "views": 79 + }, + { + "month": "2026-09", + "views": 129 + }, + { + "month": "2026-10", + "views": 122 + } + ], + "latestMonth": "2026-10", + "total": 628, + "dailyAverage": 3.935483870967742, + "trendPercent": -5.426356589147287 + }, + "stats": { + "attention": 35, + "depth": 62, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 90, + "prev30": 137, + "pct": -34.306569343065696 + }, + "instanceOf": [ + { + "id": "Q215380", + "label": "musical group" + } + ], + "tiers": { + "attention": 7, + "depth": 5, + "reach": 2 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 247636, + "title": "Canadian Grand Prix", + "description": "Formula One Grand Prix", + "wikidataId": "Q7965", + "revisionId": 1380730000, + "pageBytes": 56884, + "languageCount": 44, + "languagesTruncated": false, + "categories": [ + "1961 establishments in Ontario", + "Auto races in Canada", + "Can-Am races", + "Canadian Grand Prix", + "National Grands Prix", + "Recurring sporting events established in 1961", + "Sports car races" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 62687 + }, + { + "month": "2026-06", + "views": 9468 + }, + { + "month": "2026-07", + "views": 5499 + }, + { + "month": "2026-08", + "views": 4783 + }, + { + "month": "2026-09", + "views": 5119 + }, + { + "month": "2026-10", + "views": 5339 + } + ], + "latestMonth": "2026-10", + "total": 92895, + "dailyAverage": 172.2258064516129, + "trendPercent": 4.297714397343231 + }, + "stats": { + "attention": 62, + "depth": 79, + "reach": 55 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 4595, + "prev30": 5345, + "pct": -14.03180542563143 + }, + "instanceOf": [ + { + "id": "Q18608583", + "label": "recurring sporting event" + }, + { + "id": "Q108886259", + "label": "Formula One event" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 5733186, + "title": "1969 NFL Championship Game", + "description": "", + "wikidataId": "Q4573604", + "revisionId": 1359130364, + "pageBytes": 15842, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1969 NFL season", + "1970 in sports in Minnesota", + "American football competitions in Minnesota", + "Cleveland Browns postseason", + "January 1970 sports events in the United States", + "Minnesota Vikings postseason", + "NFL Championship games", + "Organized events in Bloomington, Minnesota" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1145 + }, + { + "month": "2026-06", + "views": 1151 + }, + { + "month": "2026-07", + "views": 1070 + }, + { + "month": "2026-08", + "views": 1298 + }, + { + "month": "2026-09", + "views": 1762 + }, + { + "month": "2026-10", + "views": 2161 + } + ], + "latestMonth": "2026-10", + "total": 8587, + "dailyAverage": 69.70967741935483, + "trendPercent": 22.64472190692395 + }, + "stats": { + "attention": 56, + "depth": 70, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1895, + "prev30": 1941, + "pct": -2.369912416280268 + }, + "instanceOf": [ + { + "id": "Q27020041", + "label": "sports season" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 5 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 26693983, + "title": "2008 World Sprint Speed Skating Championships", + "description": "International speed skating competition", + "wikidataId": "Q1320203", + "revisionId": 1379250957, + "pageBytes": 12927, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "2008 in Dutch sport", + "2008 in speed skating", + "International speed skating competitions hosted by the Netherlands", + "Sports competitions in Heerenveen", + "World Speed Skating Championships" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 25 + }, + { + "month": "2026-06", + "views": 17 + }, + { + "month": "2026-07", + "views": 10 + }, + { + "month": "2026-08", + "views": 7 + }, + { + "month": "2026-09", + "views": 23 + }, + { + "month": "2026-10", + "views": 12 + } + ], + "latestMonth": "2026-10", + "total": 94, + "dailyAverage": 0.3870967741935484, + "trendPercent": -47.82608695652174 + }, + "stats": { + "attention": 19, + "depth": 69, + "reach": 32 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 11, + "prev30": 23, + "pct": -52.17391304347826 + }, + "instanceOf": [ + { + "id": "Q114609228", + "label": "recurring sporting event edition" + } + ], + "tiers": { + "attention": 1, + "depth": 9, + "reach": 8 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 28859251, + "title": "Kõruse-Metsaküla", + "description": "Village in Estonia", + "wikidataId": "Q3467661", + "revisionId": 1379439420, + "pageBytes": 3187, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "Saaremaa Parish", + "Saaremaa Parish geography stubs", + "Villages in Saare County" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 9 + }, + { + "month": "2026-06", + "views": 12 + }, + { + "month": "2026-07", + "views": 10 + }, + { + "month": "2026-08", + "views": 12 + }, + { + "month": "2026-09", + "views": 7 + }, + { + "month": "2026-10", + "views": 12 + } + ], + "latestMonth": "2026-10", + "total": 62, + "dailyAverage": 0.3870967741935484, + "trendPercent": 71.42857142857143 + }, + "stats": { + "attention": 19, + "depth": 58, + "reach": 32 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5, + "prev30": 14, + "pct": -64.28571428571429 + }, + "instanceOf": [ + { + "id": "Q51049922", + "label": "village" + } + ], + "tiers": { + "attention": 1, + "depth": 3, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 31946653, + "title": "Cody Floatplane", + "description": null, + "wikidataId": "Q5140425", + "revisionId": 1321146397, + "pageBytes": 8324, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "1910s British experimental aircraft", + "1913 in England", + "Aircraft first flown in 1913", + "Aviation accidents and incidents in 1913", + "Aviation accidents and incidents in England", + "Biplanes", + "Cody aircraft", + "Single-engined pusher aircraft" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 105 + }, + { + "month": "2026-06", + "views": 77 + }, + { + "month": "2026-07", + "views": 87 + }, + { + "month": "2026-08", + "views": 107 + }, + { + "month": "2026-09", + "views": 100 + }, + { + "month": "2026-10", + "views": 89 + } + ], + "latestMonth": "2026-10", + "total": 565, + "dailyAverage": 2.870967741935484, + "trendPercent": -11.0 + }, + "stats": { + "attention": 33, + "depth": 65, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 92, + "prev30": 97, + "pct": -5.154639175257731 + }, + "instanceOf": [], + "tiers": { + "attention": 6, + "depth": 7, + "reach": 6 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 38230952, + "title": "John Allen Midgett Jr.", + "description": "United States Coast Guardsman", + "wikidataId": "Q6218773", + "revisionId": 1383786404, + "pageBytes": 7473, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1876 births", + "1938 deaths", + "Recipients of the Gold Lifesaving Medal", + "United States Coast Guard enlisted personnel", + "United States Life-Saving Service personnel" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 123 + }, + { + "month": "2026-06", + "views": 182 + }, + { + "month": "2026-07", + "views": 127 + }, + { + "month": "2026-08", + "views": 156 + }, + { + "month": "2026-09", + "views": 112 + }, + { + "month": "2026-10", + "views": 81 + } + ], + "latestMonth": "2026-10", + "total": 781, + "dailyAverage": 2.6129032258064515, + "trendPercent": -27.67857142857143 + }, + "stats": { + "attention": 32, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 87, + "prev30": 97, + "pct": -10.309278350515463 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 6, + "depth": 7, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 39950052, + "title": "Texas State Guard Commanding General's Individual Award", + "description": "Military decoration", + "wikidataId": "Q17108726", + "revisionId": 1271494308, + "pageBytes": 4617, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Awards and decorations of the Texas Military Forces", + "Texas Military Department", + "Texas Military Forces" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 17 + }, + { + "month": "2026-06", + "views": 22 + }, + { + "month": "2026-07", + "views": 17 + }, + { + "month": "2026-08", + "views": 27 + }, + { + "month": "2026-09", + "views": 33 + }, + { + "month": "2026-10", + "views": 13 + } + ], + "latestMonth": "2026-10", + "total": 129, + "dailyAverage": 0.41935483870967744, + "trendPercent": -60.60606060606061 + }, + "stats": { + "attention": 19, + "depth": 61, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 15, + "prev30": 36, + "pct": -58.333333333333336 + }, + "instanceOf": [ + { + "id": "Q618779", + "label": "award" + } + ], + "tiers": { + "attention": 1, + "depth": 5, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 43165848, + "title": "John Kane (Medal of Honor)", + "description": "Union Army soldier", + "wikidataId": "Q17479265", + "revisionId": 1380318087, + "pageBytes": 3077, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "American Civil War recipients of the Medal of Honor", + "Irish-born Medal of Honor recipients", + "Irish emigrants to the United States", + "People of New York (state) in the American Civil War", + "Union army officers", + "United States Army Medal of Honor recipients" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 45 + }, + { + "month": "2026-06", + "views": 45 + }, + { + "month": "2026-07", + "views": 35 + }, + { + "month": "2026-08", + "views": 58 + }, + { + "month": "2026-09", + "views": 37 + }, + { + "month": "2026-10", + "views": 25 + } + ], + "latestMonth": "2026-10", + "total": 245, + "dailyAverage": 0.8064516129032258, + "trendPercent": -32.432432432432435 + }, + "stats": { + "attention": 24, + "depth": 58, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 31, + "prev30": 21, + "pct": 47.61904761904761 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 3, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 74291637, + "title": "Pullman porter affair", + "description": "LGBT sex scandal in September 1940", + "wikidataId": "Q120123799", + "revisionId": 1380094218, + "pageBytes": 11271, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1940 in the United States", + "1940s in LGBTQ history", + "1950s in LGBTQ history", + "Bisexual history", + "Bisexual men-related controversies", + "Federal political sex scandals in the United States", + "Gay-related controversies", + "Good Neighbor policy", + "LGBTQ-related controversies in the United States", + "LGBTQ-related political scandals", + "May 1956 in the United States", + "Presidency of Franklin D. Roosevelt", + "Pullman Company", + "September 1940 in the United States" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 187 + }, + { + "month": "2026-06", + "views": 181 + }, + { + "month": "2026-07", + "views": 175 + }, + { + "month": "2026-08", + "views": 254 + }, + { + "month": "2026-09", + "views": 240 + }, + { + "month": "2026-10", + "views": 215 + } + ], + "latestMonth": "2026-10", + "total": 1252, + "dailyAverage": 6.935483870967742, + "trendPercent": -10.416666666666668 + }, + "stats": { + "attention": 39, + "depth": 68, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 184, + "prev30": 258, + "pct": -28.68217054263566 + }, + "instanceOf": [ + { + "id": "Q2197458", + "label": "sex scandal" + } + ], + "tiers": { + "attention": 8, + "depth": 8, + "reach": 2 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 13240878, + "title": "Lower Shavertown Bridge", + "description": "United States historic place", + "wikidataId": "Q6693791", + "revisionId": 1373484295, + "pageBytes": 2780, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1877 establishments in New York (state)", + "Bridges completed in 1877", + "Bridges in Delaware County, New York", + "Covered bridges on the National Register of Historic Places in New York (state)", + "Delaware County, New York Registered Historic Place stubs", + "National Register of Historic Places in Delaware County, New York", + "New York (state) bridge (structure) stubs", + "Relocated buildings and structures in New York (state)", + "Road bridges on the National Register of Historic Places in New York (state)", + "Tourist attractions in Delaware County, New York", + "Wooden bridges in New York (state)" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 34 + }, + { + "month": "2026-06", + "views": 37 + }, + { + "month": "2026-07", + "views": 29 + }, + { + "month": "2026-08", + "views": 84 + }, + { + "month": "2026-09", + "views": 57 + }, + { + "month": "2026-10", + "views": 22 + } + ], + "latestMonth": "2026-10", + "total": 263, + "dailyAverage": 0.7096774193548387, + "trendPercent": -61.40350877192983 + }, + "stats": { + "attention": 23, + "depth": 57, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 12, + "prev30": 33, + "pct": -63.63636363636363 + }, + "instanceOf": [ + { + "id": "Q1825472", + "label": "covered bridge" + }, + { + "id": "Q537127", + "label": "road bridge" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 2 + }, + "faction": "Structures", + "category": "History" + }, + { + "pageId": 19412017, + "title": "Andouin Aubert", + "description": "French jurist, bishop and Cardinal", + "wikidataId": "Q1351294", + "revisionId": 1385718836, + "pageBytes": 14024, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "1363 deaths", + "14th-century French cardinals", + "Bishops of Auxerre", + "Bishops of Maguelonne", + "Bishops of Paris", + "Cardinal-bishops of Ostia", + "Cardinals created by Pope Innocent VI", + "House of Aubert" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 35 + }, + { + "month": "2026-06", + "views": 35 + }, + { + "month": "2026-07", + "views": 50 + }, + { + "month": "2026-08", + "views": 31 + }, + { + "month": "2026-09", + "views": 27 + }, + { + "month": "2026-10", + "views": 55 + } + ], + "latestMonth": "2026-10", + "total": 233, + "dailyAverage": 1.7741935483870968, + "trendPercent": 103.7037037037037 + }, + "stats": { + "attention": 29, + "depth": 69, + "reach": 32 + }, + "legacyCategory": "People", + "drift30": { + "last30": 24, + "prev30": 52, + "pct": -53.84615384615385 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 9, + "reach": 8 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 24778632, + "title": "Storck Barracks", + "description": "US Army facility in Illesheim, Germany", + "wikidataId": "Q108337154", + "revisionId": 1373615936, + "pageBytes": 12507, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Airfields of the United States Army Air Forces in Germany", + "Airports in Bavaria", + "Military installations established in 1936" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 516 + }, + { + "month": "2026-06", + "views": 366 + }, + { + "month": "2026-07", + "views": 373 + }, + { + "month": "2026-08", + "views": 329 + }, + { + "month": "2026-09", + "views": 415 + }, + { + "month": "2026-10", + "views": 338 + } + ], + "latestMonth": "2026-10", + "total": 2337, + "dailyAverage": 10.903225806451612, + "trendPercent": -18.55421686746988 + }, + "stats": { + "attention": 42, + "depth": 68, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 294, + "prev30": 419, + "pct": -29.832935560859188 + }, + "instanceOf": [ + { + "id": "Q245016", + "label": "military base" + } + ], + "tiers": { + "attention": 8, + "depth": 8, + "reach": 2 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 38958959, + "title": "Genoese Batteries", + "description": "Artillery batteries in Gibraltar", + "wikidataId": "Q16838634", + "revisionId": 1364996502, + "pageBytes": 3468, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Artillery battery fortifications in Gibraltar", + "Gibraltarian building and structure stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 30 + }, + { + "month": "2026-06", + "views": 21 + }, + { + "month": "2026-07", + "views": 18 + }, + { + "month": "2026-08", + "views": 21 + }, + { + "month": "2026-09", + "views": 18 + }, + { + "month": "2026-10", + "views": 15 + } + ], + "latestMonth": "2026-10", + "total": 123, + "dailyAverage": 0.4838709677419355, + "trendPercent": -16.666666666666664 + }, + "stats": { + "attention": 20, + "depth": 59, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 9, + "prev30": 22, + "pct": -59.09090909090909 + }, + "instanceOf": [ + { + "id": "Q56344492", + "label": "artillery battery" + } + ], + "tiers": { + "attention": 2, + "depth": 4, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 42871285, + "title": "Yente Serdatzky", + "description": "Russian-born American Yiddish-language writer (1877–1962)", + "wikidataId": "Q17018388", + "revisionId": 1371391529, + "pageBytes": 24540, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1877 births", + "1962 deaths", + "19th-century American Jews", + "19th-century American dramatists and playwrights", + "19th-century American women dramatists and playwrights", + "20th-century American Jews", + "20th-century American dramatists and playwrights", + "20th-century American women dramatists and playwrights", + "Dramatists and playwrights from New York City", + "Emigrants from the Russian Empire to the United States", + "Jewish American dramatists and playwrights", + "Jewish women writers", + "Jews from the Russian Empire", + "Writers from Kaunas", + "Yiddish-language dramatists and playwrights" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 62 + }, + { + "month": "2026-06", + "views": 57 + }, + { + "month": "2026-07", + "views": 27 + }, + { + "month": "2026-08", + "views": 61 + }, + { + "month": "2026-09", + "views": 80 + }, + { + "month": "2026-10", + "views": 58 + } + ], + "latestMonth": "2026-10", + "total": 345, + "dailyAverage": 1.8709677419354838, + "trendPercent": -27.500000000000004 + }, + "stats": { + "attention": 30, + "depth": 73, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 48, + "prev30": 64, + "pct": -25.0 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 10, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 62859288, + "title": "Waterman Place-Kingsbury Place-Washington Terrace Historic District", + "description": "Historic district in Missouri, United States", + "wikidataId": "Q85814627", + "revisionId": 1373475244, + "pageBytes": 4435, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Colonial Revival architecture in Missouri", + "Historic districts on the National Register of Historic Places in Missouri", + "National Register of Historic Places in St. Louis", + "St. Louis Area, Missouri Registered Historic Place stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 32 + }, + { + "month": "2026-06", + "views": 29 + }, + { + "month": "2026-07", + "views": 16 + }, + { + "month": "2026-08", + "views": 35 + }, + { + "month": "2026-09", + "views": 23 + }, + { + "month": "2026-10", + "views": 39 + } + ], + "latestMonth": "2026-10", + "total": 174, + "dailyAverage": 1.2580645161290323, + "trendPercent": 69.56521739130434 + }, + "stats": { + "attention": 27, + "depth": 61, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 33, + "prev30": 27, + "pct": 22.22222222222222 + }, + "instanceOf": [ + { + "id": "Q15243209", + "label": "historic district" + } + ], + "tiers": { + "attention": 4, + "depth": 5, + "reach": 2 + }, + "faction": "Places", + "category": "History" + }, + { + "pageId": 66437937, + "title": "2021 New Jersey General Assembly election", + "description": "", + "wikidataId": "Q105319974", + "revisionId": 1382576557, + "pageBytes": 168332, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "2021 elections in New Jersey", + "2021 state legislature elections in the United States", + "New Jersey General Assembly elections" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 334 + }, + { + "month": "2026-06", + "views": 333 + }, + { + "month": "2026-07", + "views": 238 + }, + { + "month": "2026-08", + "views": 318 + }, + { + "month": "2026-09", + "views": 282 + }, + { + "month": "2026-10", + "views": 360 + } + ], + "latestMonth": "2026-10", + "total": 1865, + "dailyAverage": 11.612903225806452, + "trendPercent": 27.659574468085108 + }, + "stats": { + "attention": 43, + "depth": 87, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 493, + "prev30": 368, + "pct": 33.96739130434783 + }, + "instanceOf": [ + { + "id": "Q2618461", + "label": "legislative election" + } + ], + "tiers": { + "attention": 8, + "depth": 10, + "reach": 4 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 131216, + "title": "Madison Township, Armstrong County, Pennsylvania", + "description": "Township in Pennsylvania, US", + "wikidataId": "Q655024", + "revisionId": 1378756902, + "pageBytes": 8578, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Populated places in the United States established in 1824", + "Townships in Armstrong County, Pennsylvania" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 51 + }, + { + "month": "2026-06", + "views": 54 + }, + { + "month": "2026-07", + "views": 32 + }, + { + "month": "2026-08", + "views": 38 + }, + { + "month": "2026-09", + "views": 64 + }, + { + "month": "2026-10", + "views": 49 + } + ], + "latestMonth": "2026-10", + "total": 288, + "dailyAverage": 1.5806451612903225, + "trendPercent": -23.4375 + }, + "stats": { + "attention": 28, + "depth": 66, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 58, + "prev30": 53, + "pct": 9.433962264150944 + }, + "instanceOf": [ + { + "id": "Q9035798", + "label": "township of Pennsylvania" + } + ], + "tiers": { + "attention": 4, + "depth": 7, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" } - ] + ], + "factionRules": [ + [ + "People", + "\\bhuman\\b|fictional character|person" + ], + [ + "Sport", + "season|sports team|football|match|tournament|championship|final\\b|club|league|olympic|race\\b" + ], + [ + "Nature", + "taxon|species|genus|plant|fungus|disease|epiphyte|mineral|bird|fish|insect" + ], + [ + "Places", + "village|town|city|commune|municipality|river|lake|mountain|county|district|parish|region|plateau|island|settlement|neighbo|locality|census|hamlet|valley|bay|area|province|state of|capital|suburb|stream|peak|unincorporated|human settlement|local government" + ], + [ + "Structures", + "building|castle|mosque|church|cathedral|temple|bridge|station|railway line|road|highway|museum|structure|stadium|dam|tower|house|school|hospital|airport|monument|fort|palace|lighthouse|park" + ], + [ + "Works", + "film|album|single|song|musical|television|book|novel|video game|painting|literary|composition|series|episode|magazine|newspaper|poem|opera|play\\b|artwork|sculpture" + ], + [ + "Organisations", + "company|group|band|organi[sz]ation|university|college|party|business|enterprise|agency|institute|association|brand|union|ministry|military unit" + ], + [ + "Events", + "election|protest|battle|war\\b|storm|nor.easter|cyclone|event|disaster|treaty|conflict|earthquake|incident|festival|referendum|conference|ceremony" + ], + [ + "Ideas & Tech", + "programming|software|language|chemical|compound|gene|protein|theorem|concept|technology|vehicle|aircraft|ship|weapon|class|model|device|algorithm|religion|discipline|theory|food|dish" + ] + ], + "tierBreakpoints": { + "attention": [ + 20, + 24, + 27, + 30, + 32, + 35, + 39, + 44, + 53 + ], + "depth": [ + 54, + 57, + 59, + 61, + 63, + 65, + 67, + 69, + 73 + ], + "reach": [ + 0, + 10, + 10, + 16, + 20, + 26, + 30, + 36, + 45 + ] + }, + "percentiles": { + "attention": [ + 14, + 14, + 16, + 17, + 18, + 19, + 19, + 19, + 20, + 20, + 21, + 21, + 21, + 22, + 22, + 22, + 23, + 23, + 23, + 24, + 24, + 24, + 24, + 25, + 25, + 25, + 26, + 26, + 26, + 27, + 27, + 27, + 27, + 28, + 28, + 28, + 28, + 29, + 29, + 30, + 30, + 30, + 30, + 30, + 30, + 31, + 31, + 31, + 31, + 32, + 32, + 33, + 33, + 34, + 34, + 34, + 35, + 35, + 35, + 35, + 35, + 36, + 36, + 37, + 37, + 38, + 38, + 38, + 39, + 39, + 40, + 40, + 40, + 41, + 41, + 42, + 42, + 43, + 44, + 44, + 45, + 46, + 47, + 48, + 49, + 49, + 50, + 51, + 53, + 53, + 55, + 56, + 57, + 59, + 61, + 62, + 62, + 64, + 68 + ], + "depth": [ + 50, + 51, + 51, + 53, + 53, + 54, + 54, + 54, + 54, + 54, + 55, + 55, + 55, + 56, + 56, + 57, + 57, + 57, + 57, + 57, + 58, + 58, + 58, + 58, + 58, + 58, + 59, + 59, + 59, + 59, + 59, + 60, + 60, + 60, + 60, + 61, + 61, + 61, + 61, + 61, + 61, + 62, + 62, + 62, + 62, + 62, + 63, + 63, + 63, + 63, + 63, + 64, + 64, + 64, + 64, + 64, + 64, + 65, + 65, + 65, + 65, + 65, + 66, + 66, + 66, + 66, + 67, + 67, + 67, + 67, + 67, + 68, + 68, + 68, + 68, + 69, + 69, + 69, + 69, + 69, + 70, + 70, + 71, + 71, + 71, + 72, + 72, + 72, + 73, + 73, + 74, + 75, + 75, + 76, + 78, + 78, + 79, + 80, + 83 + ], + "reach": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 23, + 23, + 23, + 23, + 23, + 26, + 26, + 26, + 26, + 26, + 28, + 28, + 28, + 28, + 30, + 30, + 30, + 30, + 30, + 32, + 32, + 32, + 33, + 33, + 33, + 35, + 36, + 36, + 36, + 37, + 38, + 39, + 40, + 41, + 43, + 43, + 44, + 45, + 45, + 47, + 49, + 50, + 50, + 51, + 52, + 55, + 55, + 59 + ] + }, + "percentilesMethod": "cut point i (1..99) = nearest-rank i-th percentile of the sample snapshot score (sorted ascending, index ceil(i*n/100)-1). Use with DESIGN.md §1.1 counting.", + "randomBatchesNote": "Sampling was resumed from a saved state, so full batch counts were lost. These are the counts logged at batch 17 (149 illustrated of 340 raw pages, 44% pass rate). The 330 picked cards came from about 38 batches; this sample holds the first N of those that finished enrichment before sampling stopped (Wikimedia 429s).", + "note": "docs/game/starter-cards.json is the loaner POOL (real frozen snapshots of random articles), used by the sim and the deck builder to fill slots. The default starter decks are defined in DESIGN.md §2.1; their real pageIds are in starter-cards.json under starterDeckPageIds." } \ No newline at end of file diff --git a/docs/game/starter-cards.json b/docs/game/starter-cards.json index 93f1787..bbb63aa 100644 --- a/docs/game/starter-cards.json +++ b/docs/game/starter-cards.json @@ -1,181 +1,617 @@ { "frozenAt": "2026-11-17", - "note": "Frozen loaner/starter stats from the council-data random sample. Do not fetch live.", + "note": "cards[] is the loaner POOL: real frozen snapshots of random illustrated articles from card-sample.json (4 per legacy category where the sample has them; it has only 3 Science and 1 Space). It is used by the sim and by the deck builder to fill a slot with a loaner. The default starter decks are defined in DESIGN.md §2.1 with pinned cost/home/faction; starterDeckPageIds gives their real en.wikipedia pageIds (resolved 2026-11-16, no redirects), so copies can be counted per pageId.", "cards": [ { - "pageId": 49830722, - "title": "Dicroidium odontopteroides", - "category": "Nature", - "wikidataId": "Q25095289", - "revisionId": 1116073630, - "pageBytes": 1943, - "languageCount": 0, - "monthlyViews": 59, - "latestMonth": "2026-10", - "trendPercent": 5.4, - "stats": { - "attention": 30, - "depth": 55, - "reach": 0 - }, - "tiers": { - "attention": 4, - "depth": 2, - "reach": 1 - } - }, - { - "pageId": 25856905, - "title": "Dichromorpha viridis", - "category": "Nature", - "wikidataId": "Q5272562", - "revisionId": 1367363150, - "pageBytes": 1347, - "languageCount": 4, - "monthlyViews": 133, - "latestMonth": "2026-10", - "trendPercent": -43.6, - "stats": { - "attention": 35, - "depth": 52, - "reach": 23 - }, - "tiers": { - "attention": 6, - "depth": 1, - "reach": 5 - } - }, - { - "pageId": 66508497, - "title": "Amanita mairei", - "category": "Nature", - "wikidataId": "Q15651951", - "revisionId": 1323515500, - "pageBytes": 998, - "languageCount": 8, - "monthlyViews": 61, - "latestMonth": "2026-10", - "trendPercent": -21.8, - "stats": { - "attention": 30, - "depth": 50, - "reach": 32 - }, - "tiers": { - "attention": 4, - "depth": 1, - "reach": 7 - } - }, - { - "pageId": 4289899, - "title": "Anthodon (reptile)", - "category": "Nature", - "wikidataId": "Q2505064", - "revisionId": 1384682008, - "pageBytes": 9037, - "languageCount": 12, - "monthlyViews": 233, - "latestMonth": "2026-10", - "trendPercent": -8.3, - "stats": { - "attention": 39, - "depth": 66, - "reach": 37 - }, - "tiers": { - "attention": 8, - "depth": 7, - "reach": 8 - } - }, - { - "pageId": 47519878, - "title": "Jeanne Madden", - "category": "People", - "wikidataId": "Q20974011", - "revisionId": 1382761423, - "pageBytes": 1817, - "languageCount": 4, - "monthlyViews": 26, - "latestMonth": "2026-10", - "trendPercent": -40.9, - "stats": { - "attention": 24, - "depth": 54, - "reach": 23 - }, - "tiers": { - "attention": 2, - "depth": 2, - "reach": 5 - } - }, - { - "pageId": 46263191, - "title": "Max Touloute", - "category": "People", - "wikidataId": "Q20641573", - "revisionId": 1384441370, - "pageBytes": 10140, + "pageId": 4961906, + "title": "Chinese star maps", + "category": "Space", + "wikidataId": "Q16241158", + "revisionId": 1343697567, + "pageBytes": 27997, "languageCount": 2, - "monthlyViews": 47, + "monthlyViews": 437, "latestMonth": "2026-10", - "trendPercent": 95.8, + "trendPercent": -13.6, "stats": { - "attention": 28, - "depth": 67, + "attention": 44, + "depth": 74, "reach": 16 }, "tiers": { - "attention": 4, - "depth": 8, - "reach": 4 + "attention": 9, + "depth": 10, + "reach": 5 + }, + "faction": "Other", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1343697567, + "pageBytes": 27997, + "languageCount": 2, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 515 + }, + { + "month": "2026-06", + "views": 399 + }, + { + "month": "2026-07", + "views": 487 + }, + { + "month": "2026-08", + "views": 476 + }, + { + "month": "2026-09", + "views": 506 + }, + { + "month": "2026-10", + "views": 437 + } + ], + "latestMonth": "2026-10", + "total": 2820, + "dailyAverage": 14.096774193548388, + "trendPercent": -13.636363636363635 + }, + "stats": { + "attention": 44, + "depth": 74, + "reach": 16 + } } }, { - "pageId": 3372934, - "title": "Hermes Ramírez", - "category": "People", - "wikidataId": "Q522855", - "revisionId": 1364063954, - "pageBytes": 8264, - "languageCount": 13, - "monthlyViews": 59, + "pageId": 78154568, + "title": "Lithodes mamillifer", + "category": "Nature", + "wikidataId": "Q13768243", + "revisionId": 1384643280, + "pageBytes": 1515, + "languageCount": 1, + "monthlyViews": 15, "latestMonth": "2026-10", - "trendPercent": -9.2, + "trendPercent": -34.8, "stats": { - "attention": 30, - "depth": 65, - "reach": 38 + "attention": 20, + "depth": 53, + "reach": 10 }, "tiers": { - "attention": 4, - "depth": 7, - "reach": 8 + "attention": 2, + "depth": 1, + "reach": 4 + }, + "faction": "Nature", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1384643280, + "pageBytes": 1515, + "languageCount": 1, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 25 + }, + { + "month": "2026-06", + "views": 23 + }, + { + "month": "2026-07", + "views": 24 + }, + { + "month": "2026-08", + "views": 24 + }, + { + "month": "2026-09", + "views": 23 + }, + { + "month": "2026-10", + "views": 15 + } + ], + "latestMonth": "2026-10", + "total": 134, + "dailyAverage": 0.4838709677419355, + "trendPercent": -34.78260869565217 + }, + "stats": { + "attention": 20, + "depth": 53, + "reach": 10 + } } }, { - "pageId": 1374812, - "title": "Tom Ewell", - "category": "People", - "wikidataId": "Q427388", - "revisionId": 1381663979, - "pageBytes": 17965, - "languageCount": 30, - "monthlyViews": 4548, + "pageId": 23256692, + "title": "Coelogyne trinervis", + "category": "Nature", + "wikidataId": "Q1601035", + "revisionId": 1176682009, + "pageBytes": 1580, + "languageCount": 7, + "monthlyViews": 24, "latestMonth": "2026-10", - "trendPercent": -19.8, + "trendPercent": -42.9, "stats": { - "attention": 61, - "depth": 71, - "reach": 50 + "attention": 23, + "depth": 53, + "reach": 30 + }, + "tiers": { + "attention": 2, + "depth": 1, + "reach": 8 + }, + "faction": "Nature", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1176682009, + "pageBytes": 1580, + "languageCount": 7, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 30 + }, + { + "month": "2026-06", + "views": 18 + }, + { + "month": "2026-07", + "views": 27 + }, + { + "month": "2026-08", + "views": 36 + }, + { + "month": "2026-09", + "views": 42 + }, + { + "month": "2026-10", + "views": 24 + } + ], + "latestMonth": "2026-10", + "total": 177, + "dailyAverage": 0.7741935483870968, + "trendPercent": -42.857142857142854 + }, + "stats": { + "attention": 23, + "depth": 53, + "reach": 30 + } + } + }, + { + "pageId": 53418112, + "title": "2012 United States presidential straw poll in Guam", + "category": "Nature", + "wikidataId": "Q29097654", + "revisionId": 1383301063, + "pageBytes": 7644, + "languageCount": 0, + "monthlyViews": 173, + "latestMonth": "2026-10", + "trendPercent": 15.3, + "stats": { + "attention": 37, + "depth": 65, + "reach": 0 + }, + "tiers": { + "attention": 7, + "depth": 7, + "reach": 2 + }, + "faction": "Events", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1383301063, + "pageBytes": 7644, + "languageCount": 0, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 187 + }, + { + "month": "2026-06", + "views": 204 + }, + { + "month": "2026-07", + "views": 194 + }, + { + "month": "2026-08", + "views": 225 + }, + { + "month": "2026-09", + "views": 150 + }, + { + "month": "2026-10", + "views": 173 + } + ], + "latestMonth": "2026-10", + "total": 1133, + "dailyAverage": 5.580645161290323, + "trendPercent": 15.333333333333332 + }, + "stats": { + "attention": 37, + "depth": 65, + "reach": 0 + } + } + }, + { + "pageId": 273706, + "title": "Pallas's cat", + "category": "Nature", + "wikidataId": "Q166794", + "revisionId": 1385350039, + "pageBytes": 64708, + "languageCount": 86, + "monthlyViews": 42025, + "latestMonth": "2026-10", + "trendPercent": -0.7, + "stats": { + "attention": 77, + "depth": 80, + "reach": 65 }, "tiers": { "attention": 10, - "depth": 9, + "depth": 10, "reach": 10 + }, + "faction": "Nature", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1385350039, + "pageBytes": 64708, + "languageCount": 86, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 41261 + }, + { + "month": "2026-06", + "views": 45076 + }, + { + "month": "2026-07", + "views": 41171 + }, + { + "month": "2026-08", + "views": 40789 + }, + { + "month": "2026-09", + "views": 42326 + }, + { + "month": "2026-10", + "views": 42025 + } + ], + "latestMonth": "2026-10", + "total": 252648, + "dailyAverage": 1355.6451612903227, + "trendPercent": -0.7111468128337193 + }, + "stats": { + "attention": 77, + "depth": 80, + "reach": 65 + } + } + }, + { + "pageId": 20139020, + "title": "Samuel Yeatman", + "category": "People", + "wikidataId": "Q4911449", + "revisionId": 1307118821, + "pageBytes": 2314, + "languageCount": 1, + "monthlyViews": 6, + "latestMonth": "2026-10", + "trendPercent": -25.0, + "stats": { + "attention": 14, + "depth": 56, + "reach": 10 + }, + "tiers": { + "attention": 1, + "depth": 2, + "reach": 4 + }, + "faction": "People", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1307118821, + "pageBytes": 2314, + "languageCount": 1, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 11 + }, + { + "month": "2026-06", + "views": 11 + }, + { + "month": "2026-07", + "views": 4 + }, + { + "month": "2026-08", + "views": 7 + }, + { + "month": "2026-09", + "views": 8 + }, + { + "month": "2026-10", + "views": 6 + } + ], + "latestMonth": "2026-10", + "total": 47, + "dailyAverage": 0.1935483870967742, + "trendPercent": -25.0 + }, + "stats": { + "attention": 14, + "depth": 56, + "reach": 10 + } + } + }, + { + "pageId": 51796741, + "title": "Alex Piquero", + "category": "People", + "wikidataId": "Q27058048", + "revisionId": 1356084913, + "pageBytes": 7837, + "languageCount": 0, + "monthlyViews": 151, + "latestMonth": "2026-10", + "trendPercent": -51.0, + "stats": { + "attention": 36, + "depth": 65, + "reach": 0 + }, + "tiers": { + "attention": 7, + "depth": 7, + "reach": 2 + }, + "faction": "People", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1356084913, + "pageBytes": 7837, + "languageCount": 0, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 239 + }, + { + "month": "2026-06", + "views": 152 + }, + { + "month": "2026-07", + "views": 150 + }, + { + "month": "2026-08", + "views": 154 + }, + { + "month": "2026-09", + "views": 308 + }, + { + "month": "2026-10", + "views": 151 + } + ], + "latestMonth": "2026-10", + "total": 1154, + "dailyAverage": 4.870967741935484, + "trendPercent": -50.97402597402597 + }, + "stats": { + "attention": 36, + "depth": 65, + "reach": 0 + } + } + }, + { + "pageId": 3560741, + "title": "Martin Taylor (businessman)", + "category": "People", + "wikidataId": "Q6776725", + "revisionId": 1372647813, + "pageBytes": 6171, + "languageCount": 3, + "monthlyViews": 269, + "latestMonth": "2026-10", + "trendPercent": 1.1, + "stats": { + "attention": 41, + "depth": 63, + "reach": 20 + }, + "tiers": { + "attention": 8, + "depth": 6, + "reach": 6 + }, + "faction": "People", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1372647813, + "pageBytes": 6171, + "languageCount": 3, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 280 + }, + { + "month": "2026-06", + "views": 260 + }, + { + "month": "2026-07", + "views": 234 + }, + { + "month": "2026-08", + "views": 246 + }, + { + "month": "2026-09", + "views": 266 + }, + { + "month": "2026-10", + "views": 269 + } + ], + "latestMonth": "2026-10", + "total": 1555, + "dailyAverage": 8.67741935483871, + "trendPercent": 1.1278195488721803 + }, + "stats": { + "attention": 41, + "depth": 63, + "reach": 20 + } + } + }, + { + "pageId": 2806760, + "title": "Jess Harnell", + "category": "People", + "wikidataId": "Q258503", + "revisionId": 1385958400, + "pageBytes": 53307, + "languageCount": 22, + "monthlyViews": 14374, + "latestMonth": "2026-10", + "trendPercent": -2.8, + "stats": { + "attention": 69, + "depth": 79, + "reach": 45 + }, + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "People", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1385958400, + "pageBytes": 53307, + "languageCount": 22, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 13061 + }, + { + "month": "2026-06", + "views": 12627 + }, + { + "month": "2026-07", + "views": 14539 + }, + { + "month": "2026-08", + "views": 14585 + }, + { + "month": "2026-09", + "views": 14785 + }, + { + "month": "2026-10", + "views": 14374 + } + ], + "latestMonth": "2026-10", + "total": 83971, + "dailyAverage": 463.6774193548387, + "trendPercent": -2.77984443692932 + }, + "stats": { + "attention": 69, + "depth": 79, + "reach": 45 + } } }, { @@ -197,7 +633,53 @@ "tiers": { "attention": 7, "depth": 5, - "reach": 4 + "reach": 5 + }, + "faction": "Ideas & Tech", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1374230485, + "pageBytes": 4639, + "languageCount": 2, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 193 + }, + { + "month": "2026-06", + "views": 170 + }, + { + "month": "2026-07", + "views": 166 + }, + { + "month": "2026-08", + "views": 185 + }, + { + "month": "2026-09", + "views": 168 + }, + { + "month": "2026-10", + "views": 165 + } + ], + "latestMonth": "2026-10", + "total": 1047, + "dailyAverage": 5.32258064516129, + "trendPercent": -1.7857142857142856 + }, + "stats": { + "attention": 37, + "depth": 61, + "reach": 16 + } } }, { @@ -219,7 +701,53 @@ "tiers": { "attention": 9, "depth": 6, - "reach": 5 + "reach": 6 + }, + "faction": "Works", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1372732350, + "pageBytes": 6002, + "languageCount": 4, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 521 + }, + { + "month": "2026-06", + "views": 656 + }, + { + "month": "2026-07", + "views": 644 + }, + { + "month": "2026-08", + "views": 518 + }, + { + "month": "2026-09", + "views": 493 + }, + { + "month": "2026-10", + "views": 476 + } + ], + "latestMonth": "2026-10", + "total": 3308, + "dailyAverage": 15.35483870967742, + "trendPercent": -3.4482758620689653 + }, + "stats": { + "attention": 45, + "depth": 63, + "reach": 23 + } } }, { @@ -241,184 +769,1032 @@ "tiers": { "attention": 10, "depth": 9, - "reach": 8 + "reach": 9 + }, + "faction": "Ideas & Tech", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1384528612, + "pageBytes": 14254, + "languageCount": 11, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2783 + }, + { + "month": "2026-06", + "views": 2318 + }, + { + "month": "2026-07", + "views": 2230 + }, + { + "month": "2026-08", + "views": 2257 + }, + { + "month": "2026-09", + "views": 2262 + }, + { + "month": "2026-10", + "views": 2439 + } + ], + "latestMonth": "2026-10", + "total": 14289, + "dailyAverage": 78.6774193548387, + "trendPercent": 7.824933687002653 + }, + "stats": { + "attention": 56, + "depth": 69, + "reach": 36 + } } }, { - "pageId": 42770753, - "title": "Château de la Faye (Villexavier)", + "pageId": 48469081, + "title": "Dr. John L. Butler House", "category": "History", - "wikidataId": "Q2971223", - "revisionId": 1375492681, - "pageBytes": 1851, - "languageCount": 1, - "monthlyViews": 14, + "wikidataId": "Q24041379", + "revisionId": 1373109716, + "pageBytes": 2235, + "languageCount": 0, + "monthlyViews": 10, "latestMonth": "2026-10", - "trendPercent": 7.7, + "trendPercent": -23.1, "stats": { - "attention": 20, - "depth": 54, - "reach": 10 + "attention": 17, + "depth": 56, + "reach": 0 }, "tiers": { "attention": 1, "depth": 2, - "reach": 3 + "reach": 2 + }, + "faction": "Structures", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1373109716, + "pageBytes": 2235, + "languageCount": 0, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 22 + }, + { + "month": "2026-06", + "views": 7 + }, + { + "month": "2026-07", + "views": 7 + }, + { + "month": "2026-08", + "views": 2 + }, + { + "month": "2026-09", + "views": 13 + }, + { + "month": "2026-10", + "views": 10 + } + ], + "latestMonth": "2026-10", + "total": 61, + "dailyAverage": 0.3225806451612903, + "trendPercent": -23.076923076923077 + }, + "stats": { + "attention": 17, + "depth": 56, + "reach": 0 + } } }, { - "pageId": 15362336, - "title": "1954 Gold Coast general election", + "pageId": 33454946, + "title": "Tydeus Painter", "category": "History", - "wikidataId": "Q2539674", - "revisionId": 1351181171, - "pageBytes": 4141, - "languageCount": 2, - "monthlyViews": 181, + "wikidataId": "Q2462577", + "revisionId": 1270324661, + "pageBytes": 1843, + "languageCount": 3, + "monthlyViews": 19, + "latestMonth": "2026-10", + "trendPercent": -13.6, + "stats": { + "attention": 22, + "depth": 54, + "reach": 20 + }, + "tiers": { + "attention": 2, + "depth": 2, + "reach": 6 + }, + "faction": "People", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1270324661, + "pageBytes": 1843, + "languageCount": 3, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 37 + }, + { + "month": "2026-06", + "views": 22 + }, + { + "month": "2026-07", + "views": 12 + }, + { + "month": "2026-08", + "views": 18 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 19 + } + ], + "latestMonth": "2026-10", + "total": 130, + "dailyAverage": 0.6129032258064516, + "trendPercent": -13.636363636363635 + }, + "stats": { + "attention": 22, + "depth": 54, + "reach": 20 + } + } + }, + { + "pageId": 74291637, + "title": "Pullman porter affair", + "category": "History", + "wikidataId": "Q120123799", + "revisionId": 1380094218, + "pageBytes": 11271, + "languageCount": 0, + "monthlyViews": 215, "latestMonth": "2026-10", "trendPercent": -10.4, "stats": { - "attention": 38, - "depth": 60, - "reach": 16 - }, - "tiers": { - "attention": 8, - "depth": 4, - "reach": 4 - } - }, - { - "pageId": 9026000, - "title": "Names of Poland", - "category": "History", - "wikidataId": "Q6961536", - "revisionId": 1351068420, - "pageBytes": 18966, - "languageCount": 4, - "monthlyViews": 1431, - "latestMonth": "2026-10", - "trendPercent": -0.9, - "stats": { - "attention": 53, - "depth": 71, - "reach": 23 - }, - "tiers": { - "attention": 10, - "depth": 9, - "reach": 5 - } - }, - { - "pageId": 25275009, - "title": "Amur Annexation", - "category": "History", - "wikidataId": "Q4379152", - "revisionId": 1381503728, - "pageBytes": 15490, - "languageCount": 9, - "monthlyViews": 3238, - "latestMonth": "2026-10", - "trendPercent": -6.7, - "stats": { - "attention": 59, - "depth": 70, - "reach": 33 - }, - "tiers": { - "attention": 10, - "depth": 9, - "reach": 7 - } - }, - { - "pageId": 7674700, - "title": "Shipley Plateau", - "category": "Culture", - "wikidataId": "Q7498025", - "revisionId": 1384061257, - "pageBytes": 1745, - "languageCount": 1, - "monthlyViews": 22, - "latestMonth": "2026-10", - "trendPercent": -55.1, - "stats": { - "attention": 23, - "depth": 54, - "reach": 10 - }, - "tiers": { - "attention": 2, - "depth": 2, - "reach": 3 - } - }, - { - "pageId": 15810707, - "title": "Charmont-en-Beauce", - "category": "Culture", - "wikidataId": "Q667131", - "revisionId": 1381828954, - "pageBytes": 1811, - "languageCount": 32, - "monthlyViews": 23, - "latestMonth": "2026-10", - "trendPercent": 27.8, - "stats": { - "attention": 23, - "depth": 54, - "reach": 51 - }, - "tiers": { - "attention": 2, - "depth": 2, - "reach": 10 - } - }, - { - "pageId": 48653101, - "title": "Tornadoes of 1978", - "category": "Culture", - "wikidataId": "Q22093730", - "revisionId": 1381828221, - "pageBytes": 16373, - "languageCount": 0, - "monthlyViews": 511, - "latestMonth": "2026-10", - "trendPercent": 3.2, - "stats": { - "attention": 45, - "depth": 70, + "attention": 39, + "depth": 68, "reach": 0 }, "tiers": { - "attention": 9, - "depth": 9, - "reach": 1 + "attention": 8, + "depth": 8, + "reach": 2 + }, + "faction": "Other", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1380094218, + "pageBytes": 11271, + "languageCount": 0, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 187 + }, + { + "month": "2026-06", + "views": 181 + }, + { + "month": "2026-07", + "views": 175 + }, + { + "month": "2026-08", + "views": 254 + }, + { + "month": "2026-09", + "views": 240 + }, + { + "month": "2026-10", + "views": 215 + } + ], + "latestMonth": "2026-10", + "total": 1252, + "dailyAverage": 6.935483870967742, + "trendPercent": -10.416666666666668 + }, + "stats": { + "attention": 39, + "depth": 68, + "reach": 0 + } } }, { - "pageId": 981340, - "title": "Tatsunoko Production", - "category": "Culture", - "wikidataId": "Q1323459", - "revisionId": 1384823392, - "pageBytes": 74169, - "languageCount": 19, - "monthlyViews": 4738, + "pageId": 15105978, + "title": "Well", + "category": "History", + "wikidataId": "Q43483", + "revisionId": 1384889405, + "pageBytes": 49360, + "languageCount": 124, + "monthlyViews": 7247, "latestMonth": "2026-10", - "trendPercent": -9.4, + "trendPercent": -6.4, "stats": { - "attention": 61, - "depth": 81, - "reach": 43 + "attention": 64, + "depth": 78, + "reach": 70 }, "tiers": { "attention": 10, "depth": 10, - "reach": 9 + "reach": 10 + }, + "faction": "Other", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1384889405, + "pageBytes": 49360, + "languageCount": 124, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 7066 + }, + { + "month": "2026-06", + "views": 6418 + }, + { + "month": "2026-07", + "views": 6817 + }, + { + "month": "2026-08", + "views": 6116 + }, + { + "month": "2026-09", + "views": 7739 + }, + { + "month": "2026-10", + "views": 7247 + } + ], + "latestMonth": "2026-10", + "total": 41403, + "dailyAverage": 233.7741935483871, + "trendPercent": -6.357410518154801 + }, + "stats": { + "attention": 64, + "depth": 78, + "reach": 70 + } } + }, + { + "pageId": 50869430, + "title": "Felt, Not Heard", + "category": "Culture", + "wikidataId": "Q24885448", + "revisionId": 1359436538, + "pageBytes": 2555, + "languageCount": 0, + "monthlyViews": 18, + "latestMonth": "2026-10", + "trendPercent": -45.5, + "stats": { + "attention": 21, + "depth": 57, + "reach": 0 + }, + "tiers": { + "attention": 2, + "depth": 3, + "reach": 2 + }, + "faction": "Organisations", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1359436538, + "pageBytes": 2555, + "languageCount": 0, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 26 + }, + { + "month": "2026-06", + "views": 24 + }, + { + "month": "2026-07", + "views": 49 + }, + { + "month": "2026-08", + "views": 40 + }, + { + "month": "2026-09", + "views": 33 + }, + { + "month": "2026-10", + "views": 18 + } + ], + "latestMonth": "2026-10", + "total": 190, + "dailyAverage": 0.5806451612903226, + "trendPercent": -45.45454545454545 + }, + "stats": { + "attention": 21, + "depth": 57, + "reach": 0 + } + } + }, + { + "pageId": 14761136, + "title": "RBMX", + "category": "Culture", + "wikidataId": "Q18038778", + "revisionId": 1383624184, + "pageBytes": 8537, + "languageCount": 1, + "monthlyViews": 34, + "latestMonth": "2026-10", + "trendPercent": 21.4, + "stats": { + "attention": 26, + "depth": 66, + "reach": 10 + }, + "tiers": { + "attention": 3, + "depth": 7, + "reach": 4 + }, + "faction": "Ideas & Tech", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1383624184, + "pageBytes": 8537, + "languageCount": 1, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 46 + }, + { + "month": "2026-06", + "views": 40 + }, + { + "month": "2026-07", + "views": 60 + }, + { + "month": "2026-08", + "views": 54 + }, + { + "month": "2026-09", + "views": 28 + }, + { + "month": "2026-10", + "views": 34 + } + ], + "latestMonth": "2026-10", + "total": 262, + "dailyAverage": 1.096774193548387, + "trendPercent": 21.428571428571427 + }, + "stats": { + "attention": 26, + "depth": 66, + "reach": 10 + } + } + }, + { + "pageId": 31946653, + "title": "Cody Floatplane", + "category": "Culture", + "wikidataId": "Q5140425", + "revisionId": 1321146397, + "pageBytes": 8324, + "languageCount": 3, + "monthlyViews": 89, + "latestMonth": "2026-10", + "trendPercent": -11.0, + "stats": { + "attention": 33, + "depth": 65, + "reach": 20 + }, + "tiers": { + "attention": 6, + "depth": 7, + "reach": 6 + }, + "faction": "Other", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1321146397, + "pageBytes": 8324, + "languageCount": 3, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 105 + }, + { + "month": "2026-06", + "views": 77 + }, + { + "month": "2026-07", + "views": 87 + }, + { + "month": "2026-08", + "views": 107 + }, + { + "month": "2026-09", + "views": 100 + }, + { + "month": "2026-10", + "views": 89 + } + ], + "latestMonth": "2026-10", + "total": 565, + "dailyAverage": 2.870967741935484, + "trendPercent": -11.0 + }, + "stats": { + "attention": 33, + "depth": 65, + "reach": 20 + } + } + }, + { + "pageId": 247636, + "title": "Canadian Grand Prix", + "category": "Culture", + "wikidataId": "Q7965", + "revisionId": 1380730000, + "pageBytes": 56884, + "languageCount": 44, + "monthlyViews": 5339, + "latestMonth": "2026-10", + "trendPercent": 4.3, + "stats": { + "attention": 62, + "depth": 79, + "reach": 55 + }, + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Events", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1380730000, + "pageBytes": 56884, + "languageCount": 44, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 62687 + }, + { + "month": "2026-06", + "views": 9468 + }, + { + "month": "2026-07", + "views": 5499 + }, + { + "month": "2026-08", + "views": 4783 + }, + { + "month": "2026-09", + "views": 5119 + }, + { + "month": "2026-10", + "views": 5339 + } + ], + "latestMonth": "2026-10", + "total": 92895, + "dailyAverage": 172.2258064516129, + "trendPercent": 4.297714397343231 + }, + "stats": { + "attention": 62, + "depth": 79, + "reach": 55 + } + } + } + ], + "starterDeckPageIds": [ + { + "deck": "Stargazers", + "cost": 1, + "title": "Moon", + "faction": "Space", + "home": "reach", + "pageId": 19331, + "cardId": "loaner:moon" + }, + { + "deck": "Stargazers", + "cost": 1, + "title": "Electron", + "faction": "Science", + "home": "depth", + "pageId": 9476, + "cardId": "loaner:electron" + }, + { + "deck": "Stargazers", + "cost": 2, + "title": "Mars", + "faction": "Space", + "home": "attention", + "pageId": 14640471, + "cardId": "loaner:mars" + }, + { + "deck": "Stargazers", + "cost": 2, + "title": "Periodic table", + "faction": "Science", + "home": "depth", + "pageId": 23053, + "cardId": "loaner:periodic-table" + }, + { + "deck": "Stargazers", + "cost": 3, + "title": "Saturn", + "faction": "Space", + "home": "reach", + "pageId": 44474, + "cardId": "loaner:saturn" + }, + { + "deck": "Stargazers", + "cost": 3, + "title": "Photosynthesis", + "faction": "Science", + "home": "attention", + "pageId": 24544, + "cardId": "loaner:photosynthesis" + }, + { + "deck": "Stargazers", + "cost": 3, + "title": "Black hole", + "faction": "Space", + "home": "depth", + "pageId": 4650, + "cardId": "loaner:black-hole" + }, + { + "deck": "Stargazers", + "cost": 4, + "title": "Quantum mechanics", + "faction": "Science", + "home": "reach", + "pageId": 25202, + "cardId": "loaner:quantum-mechanics" + }, + { + "deck": "Stargazers", + "cost": 4, + "title": "Milky Way", + "faction": "Space", + "home": "attention", + "pageId": 2589714, + "cardId": "loaner:milky-way" + }, + { + "deck": "Stargazers", + "cost": 5, + "title": "DNA", + "faction": "Science", + "home": "attention", + "pageId": 7955, + "cardId": "loaner:dna" + }, + { + "deck": "Stargazers", + "cost": 5, + "title": "Sun", + "faction": "Space", + "home": "reach", + "pageId": 26751, + "cardId": "loaner:sun" + }, + { + "deck": "Stargazers", + "cost": 6, + "title": "Theory of relativity", + "faction": "Science", + "home": "depth", + "pageId": 30001, + "cardId": "loaner:theory-of-relativity" + }, + { + "deck": "Field Guide", + "cost": 1, + "title": "Octopus", + "faction": "Nature", + "home": "depth", + "pageId": 22780, + "cardId": "loaner:octopus" + }, + { + "deck": "Field Guide", + "cost": 1, + "title": "Stonehenge", + "faction": "History", + "home": "attention", + "pageId": 27633, + "cardId": "loaner:stonehenge" + }, + { + "deck": "Field Guide", + "cost": 2, + "title": "Axolotl", + "faction": "Nature", + "home": "attention", + "pageId": 235589, + "cardId": "loaner:axolotl" + }, + { + "deck": "Field Guide", + "cost": 2, + "title": "Rosetta Stone", + "faction": "History", + "home": "reach", + "pageId": 26428, + "cardId": "loaner:rosetta-stone" + }, + { + "deck": "Field Guide", + "cost": 3, + "title": "Coral reef", + "faction": "Nature", + "home": "depth", + "pageId": 87410, + "cardId": "loaner:coral-reef" + }, + { + "deck": "Field Guide", + "cost": 3, + "title": "Roman Empire", + "faction": "History", + "home": "reach", + "pageId": 25507, + "cardId": "loaner:roman-empire" + }, + { + "deck": "Field Guide", + "cost": 3, + "title": "Honey bee", + "faction": "Nature", + "home": "attention", + "pageId": 58261, + "cardId": "loaner:honey-bee" + }, + { + "deck": "Field Guide", + "cost": 4, + "title": "Ancient Egypt", + "faction": "History", + "home": "depth", + "pageId": 874, + "cardId": "loaner:ancient-egypt" + }, + { + "deck": "Field Guide", + "cost": 4, + "title": "Amazon rainforest", + "faction": "Nature", + "home": "reach", + "pageId": 48139, + "cardId": "loaner:amazon-rainforest" + }, + { + "deck": "Field Guide", + "cost": 5, + "title": "Blue whale", + "faction": "Nature", + "home": "attention", + "pageId": 4925, + "cardId": "loaner:blue-whale" + }, + { + "deck": "Field Guide", + "cost": 5, + "title": "Great Wall of China", + "faction": "History", + "home": "reach", + "pageId": 5094570, + "cardId": "loaner:great-wall-of-china" + }, + { + "deck": "Field Guide", + "cost": 6, + "title": "World War II", + "faction": "History", + "home": "depth", + "pageId": 32927, + "cardId": "loaner:world-war-ii" + }, + { + "deck": "Headliners", + "cost": 1, + "title": "Haiku", + "faction": "Culture", + "home": "attention", + "pageId": 13217, + "cardId": "loaner:haiku" + }, + { + "deck": "Headliners", + "cost": 1, + "title": "Ada Lovelace", + "faction": "People", + "home": "depth", + "pageId": 974, + "cardId": "loaner:ada-lovelace" + }, + { + "deck": "Headliners", + "cost": 2, + "title": "Jazz", + "faction": "Culture", + "home": "attention", + "pageId": 15613, + "cardId": "loaner:jazz" + }, + { + "deck": "Headliners", + "cost": 2, + "title": "Marie Curie", + "faction": "People", + "home": "reach", + "pageId": 20408, + "cardId": "loaner:marie-curie" + }, + { + "deck": "Headliners", + "cost": 3, + "title": "Mona Lisa", + "faction": "Culture", + "home": "reach", + "pageId": 70889, + "cardId": "loaner:mona-lisa" + }, + { + "deck": "Headliners", + "cost": 3, + "title": "Frida Kahlo", + "faction": "People", + "home": "attention", + "pageId": 162276, + "cardId": "loaner:frida-kahlo" + }, + { + "deck": "Headliners", + "cost": 3, + "title": "Chess", + "faction": "Culture", + "home": "depth", + "pageId": 5134, + "cardId": "loaner:chess" + }, + { + "deck": "Headliners", + "cost": 4, + "title": "Leonardo da Vinci", + "faction": "People", + "home": "reach", + "pageId": 18079, + "cardId": "loaner:leonardo-da-vinci" + }, + { + "deck": "Headliners", + "cost": 4, + "title": "The Beatles", + "faction": "Culture", + "home": "attention", + "pageId": 29812, + "cardId": "loaner:the-beatles" + }, + { + "deck": "Headliners", + "cost": 5, + "title": "William Shakespeare", + "faction": "People", + "home": "depth", + "pageId": 32897, + "cardId": "loaner:william-shakespeare" + }, + { + "deck": "Headliners", + "cost": 5, + "title": "Olympic Games", + "faction": "Culture", + "home": "reach", + "pageId": 22576, + "cardId": "loaner:olympic-games" + }, + { + "deck": "Headliners", + "cost": 6, + "title": "Wolfgang Amadeus Mozart", + "faction": "People", + "home": "depth", + "pageId": 33163, + "cardId": "loaner:wolfgang-amadeus-mozart" + }, + { + "deck": "Pioneers", + "cost": 1, + "title": "Sputnik 1", + "faction": "Space", + "home": "reach", + "pageId": 28484, + "cardId": "loaner:sputnik-1" + }, + { + "deck": "Pioneers", + "cost": 1, + "title": "Nikola Tesla", + "faction": "People", + "home": "attention", + "pageId": 21473, + "cardId": "loaner:nikola-tesla" + }, + { + "deck": "Pioneers", + "cost": 2, + "title": "Hubble Space Telescope", + "faction": "Space", + "home": "depth", + "pageId": 40203, + "cardId": "loaner:hubble-space-telescope" + }, + { + "deck": "Pioneers", + "cost": 2, + "title": "Isaac Newton", + "faction": "People", + "home": "reach", + "pageId": 14627, + "cardId": "loaner:isaac-newton" + }, + { + "deck": "Pioneers", + "cost": 3, + "title": "Neil Armstrong", + "faction": "People", + "home": "attention", + "pageId": 21247, + "cardId": "loaner:neil-armstrong" + }, + { + "deck": "Pioneers", + "cost": 3, + "title": "Jupiter", + "faction": "Space", + "home": "reach", + "pageId": 38930, + "cardId": "loaner:jupiter" + }, + { + "deck": "Pioneers", + "cost": 3, + "title": "Galileo Galilei", + "faction": "People", + "home": "depth", + "pageId": 29688374, + "cardId": "loaner:galileo-galilei" + }, + { + "deck": "Pioneers", + "cost": 4, + "title": "Albert Einstein", + "faction": "People", + "home": "attention", + "pageId": 736, + "cardId": "loaner:albert-einstein" + }, + { + "deck": "Pioneers", + "cost": 4, + "title": "International Space Station", + "faction": "Space", + "home": "depth", + "pageId": 15043, + "cardId": "loaner:international-space-station" + }, + { + "deck": "Pioneers", + "cost": 5, + "title": "Apollo 11", + "faction": "Space", + "home": "attention", + "pageId": 662, + "cardId": "loaner:apollo-11" + }, + { + "deck": "Pioneers", + "cost": 5, + "title": "Charles Darwin", + "faction": "People", + "home": "reach", + "pageId": 8145410, + "cardId": "loaner:charles-darwin" + }, + { + "deck": "Pioneers", + "cost": 6, + "title": "Solar System", + "faction": "Space", + "home": "depth", + "pageId": 26903, + "cardId": "loaner:solar-system" } ] } \ No newline at end of file diff --git a/scripts/night/card_analyze.py b/scripts/night/card_analyze.py index 6bbb30c..c18adb5 100644 --- a/scripts/night/card_analyze.py +++ b/scripts/night/card_analyze.py @@ -137,3 +137,20 @@ for name, cs in sorted(by.items(), key=lambda kv: -len(kv[1])): other = collections.Counter(x['label'] for c in by.get('Other', []) for x in c['instanceOf']) print('\nUnclassified P31 labels: ' + ', '.join(f'{k} {v}' for k, v in other.most_common(25))) if len(sys.argv) > 4: json.dump({c['pageId']: c['faction'] for c in C}, open(sys.argv[4], 'w')) +if len(sys.argv) > 3: + s = json.load(open(sys.argv[3])); fmap = {c['pageId']: c['faction'] for c in C} + for p in s['cards']: p['faction'] = fmap[p['pageId']] + json.dump(s, open(sys.argv[3], 'w'), indent=1, ensure_ascii=False) +if len(sys.argv) > 5: + d['factionRules'] = [[n, rx] for n, rx in FAC]; d['tierBreakpoints'] = T + def cuts(k): + v = sorted(c['stats'][k] for c in C if c['stats'][k] is not None); n = len(v) + return [v[max(0, math.ceil(i * n / 100) - 1)] for i in range(1, 100)] + d['percentiles'] = {k: cuts(k) for k in ('attention', 'depth', 'reach')} + d['percentilesMethod'] = 'cut point i (1..99) = nearest-rank i-th percentile of the sample snapshot score (sorted ascending, index ceil(i*n/100)-1). Use with DESIGN.md §1.1 counting.' + if not d['rawPagesSeen']: + d['randomBatches'], d['rawPagesSeen'] = 17, 340 + d['randomBatchesNote'] = 'Sampling was resumed from a saved state, so full batch counts were lost. These are the counts logged at batch 17 (149 illustrated of 340 raw pages, 44% pass rate). The 330 picked cards came from about 38 batches; this sample holds the first N of those that finished enrichment before sampling stopped (Wikimedia 429s).' + d['note'] = 'docs/game/starter-cards.json is the loaner POOL (real frozen snapshots of random articles), used by the sim and the deck builder to fill slots. The default starter decks are defined in DESIGN.md §2.1; their real pageIds are in starter-cards.json under starterDeckPageIds.' + for c in d['cards']: c['category'] = c['legacyCategory'] + json.dump(d, open(sys.argv[5], 'w'), indent=1, ensure_ascii=False) diff --git a/scripts/night/card_sample.py b/scripts/night/card_sample.py index 06f1fc6..6e87102 100644 --- a/scripts/night/card_sample.py +++ b/scripts/night/card_sample.py @@ -17,7 +17,7 @@ def get(url, cache=True): if os.environ.get('CACHE_ONLY') and 'wikidata.org' not in url: return {'__missing': True} for attempt in range(6): - wait = (1.0 if 'en.wikipedia.org' in url else 0.25) - (time.time() - _last[0]) + wait = 1.0 - (time.time() - _last[0]) if wait > 0: time.sleep(wait) _last[0] = time.time() req = urllib.request.Request(url, headers={'User-Agent': UA, 'Accept': 'application/json'}) From 482de6ce3c02edc21f600f44c633b6bf8951dc79 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 04:43:29 +0000 Subject: [PATCH 5/5] =?UTF-8?q?Night=201:=20DESIGN.md=20=C2=A72.1=20loaner?= =?UTF-8?q?=20pageIds=20and=20copy=20rule=20(#24)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- docs/game/DESIGN.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/game/DESIGN.md b/docs/game/DESIGN.md index 262efcd..8a11676 100644 --- a/docs/game/DESIGN.md +++ b/docs/game/DESIGN.md @@ -160,7 +160,9 @@ These are the default `starterDecks`: four 12-card loaner decks. Everything after them still applies: `powerByCost`, `onTopicBonus`, `vanillaBonus`, the §10.1 keyword choice and `keywordParams`. A mode that changes those numbers changes loaners exactly as it changes owned cards. - **Pinned cost isn't fame.** Cost was set by hand to fit the curve, not from the article's fame. Rarity is `Common` (frame only) and trend is 0. -- **Loaner ids:** `cardId` = `loaner:`, and `pageId` = the article's real pageId if the UI has it, otherwise `null`. Copies are counted per `cardId`. +- **Loaner ids:** `cardId` = `loaner:`, and `pageId` = the article's real pageId (v1 pins the 4 `shared/catalog.ts` ones: Moon 19331, Periodic table 23053, Octopus 22780, + Albert Einstein 736; the rest are filled in from one batched API call in v1.1, `null` until then). The copy limit counts per `pageId` + together with owned copies (§2); a loaner with `pageId: null` counts per `cardId`. - **Relation to `docs/game/starter-cards.json`** (council-data, real frozen snapshots of random articles): that file is the **loaner pool** for the sim and for "fill a slot with a loaner" in the deck builder. It is **not** the default starter decks. The decks below pin their values on purpose, for two reasons. Famous, recognisable articles would all derive to cost 5–6.