mirror of
https://github.com/bitbaum/solon.git
synced 2026-12-04 05:37:09 +01:00
feat/statistics-readable
22
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3cb4b06b80 |
feat(places): the places inside every country, from Wikidata's ISO 3166-2 codes (#570)
- scripts/places-world-subdivisions.ts writes data/places/world/subdivisions.json: every item with an ISO 3166-2 code (P300, statement neither ended nor deprecated, item not dissolved) in every country no pack holds, named in five languages, with its item number. 4,759 places in 194 countries. - Each sits under its nearest coded ancestor by P131+ (a department in its region), else under its country (src/lib/places/nesting.ts, pure, tested): two equally near ancestors that do not lie in each other (Brcko District) mean the place lies in both, so it sits under what they share. The world pack gains three tiers below a country. - Neutral by the world list's rule: an item that is itself a world entry, and the codes in SUBDIVISIONS_WITH_OWN_PAGE (Taiwan, Abkhazia, Transnistria, Kosovo), keep their own pages and are not listed inside a claimant. - The world-subdivisions source imports it after the deploy, like every file under data/places. Ten seconds locally. - The importer inserts identifiers, names, relations and instruments a thousand rows a statement: five thousand places passed Postgres's 65,535 parameters in one. - One Wikidata helper (src/lib/wikidata/query.ts) for scripts. - A banner photo fills a tile at full width, not enlarged from 960 into a blur; a place's line no longer names the world. Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
fcb94810f1 |
Liechtenstein: Staatsquote and Fiskalquote from the Amt für Statistik (#538)
* Liechtenstein: Staatsquote and Fiskalquote from the Amt für Statistik, the fill for the gap #498 records economy.government.expenditure (Staatsquote, 2011-2024) and tax.revenue.general (Fiskalquote, 1998-2024) for Liechtenstein, kept by hand from the office's own tables with their publication, table and the day read. Neither the OECD nor the World Bank carries the country for these; the series a reader asks for at /statistics/economy-government-expenditure?p=LI and /statistics/tax-revenue-total... now has figures. countries.test.ts: a source whose place is read from a column names no fixed country. Claude-Session: https://claude.ai/code/session_019MDtmt65Ai8jku68kDmxUU * Liechtenstein statistics sources: attribution in fr, it and ru Claude-Session: https://claude.ai/code/session_019MDtmt65Ai8jku68kDmxUU |
||
|
|
bb6fbffa2c |
feat(places): one page shape for every place, photographs for every subdivision, served by Solon (#532)
- The page: a hero with where the place sits, its kind, name, status line,
headline facts and one main action (its constitution, else its law); below,
the law and what a resident can do beside the place at a glance, which no
longer repeats the hero. The same shape with or without a photograph.
- The places inside a place are photo tiles, the world index's tile, when most
have a photograph. The world index opens on the Earth from Apollo 17 and is
grouped by kind of place.
- Photographs for 9,296 places: places:photos --all reads every ISO 3166-2
subdivision, Swiss commune, US state and county Wikidata holds; a Swiss
canton's FSO number reaches its ISO code through a config crosswalk. Iran,
Tanzania, Appenzell Ausserrhoden and Jura chosen by hand.
- Solon serves the photographs itself (/api/place-photo, place_photo_bytes):
each Commons thumbnail read once, politely, kept across deploys. About one in
sixteen tiles came up black when the image optimiser hit Wikimedia's limits.
The places-data workflow reads the world list's photographs after a deploy.
- /credits pages through the place photographs.
- Fixed: the chat's "Thought for {time}" label threw a formatting error in
every language.
Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
8c27ece452 |
feat(places): every place opens on its photograph, and shares with it (#531)
- places:photos finds any place on Wikidata by its world entry or by an identifier whose scheme names a Wikidata property (ISO 3166-1/-2, FSO municipality, US FIPS), and chooses one free photograph from Commons: the original of its Wikivoyage banner, its image, aerial or night view, else a panorama as a strip. A person can replace any choice in one line. - A full-screen hero on country, territory and subdivision pages: name, kind, capital, population, area, and the photo's author and licence. - A share card for every place (/api/og/place) with its photograph. - /credits lists every place photograph; the world index is a wall of photographs. Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
09b0a02928 |
feat(world,law): every place's profile, places beyond the UN on the map, more constitutions (#530)
- Kinds of place, by what each does (src/lib/config/world/kinds.ts): UN member (un.org's list, with admission), observer, self-governing, territory, proclaimed (one stated rule: Wikidata micronation, not dissolved, at least 30 Wikipedias: Sealand, Liberland, Molossia, ...), special jurisdiction (Próspera), project (seasteading). They join the world list with pages, law authorities (keyed by slug) and places in the law plan. - `pnpm run world:profiles` writes every place's facts from Wikidata (CC0) and the UN's list: data/world/profiles.json for pages, a small extras.json for the map. Area: the preferred figure, else the smallest (Taiwan's governed area, not its claim). - A profile card on every country, territory, self-governing and proclaimed place page: its kind in a neutral sentence, capital, population, area, languages, currency, government, heads of state and government, UN admission or founding, website, the way into its constitution and law, and where the facts come from. Wikidata descriptions only for special jurisdictions and projects (they can judge: "Scheinstaat"). - The map: "All places" or "Beyond the UN", shading and dots, and a list by kind under the switch. - Constitutions: the owner decided a law's text is never held back for want of a recorded copyright provision (LicenseRef-official-law; the country's own provision is cited where recorded). The copy reader follows indexes of editions (only from a short page, only to the same document), reads a constitution split into subpages whole, reads Markdown, cuts more article forms (Art. 1º, Article premier, Roman numerals, § only without articles, 第一条, المادة/الفصل), and stops at a second printing. Liberland's constitution from its own repository. - docs/design/2026-11-world-of-jurisdictions.md; roadmap, changelog. Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
68759b9847 |
feat(law): a plan for every country's law, and Russia's and Ukraine's constitutions (#529)
- A law authority for every country of the world list: listed ones keep their key; any other is its alpha-2 code, or alpha-3 where a canton holds the two letters (fra, geo, bel). - The plan as data (data/law/plan.json, src/lib/law/plan): per country, the constitution in force by Constitute's index, candidate copies from Wikidata, the source chosen by an unambiguous rule or by a person with a reason, the provision of its own law that puts official texts outside copyright, the national readers. `pnpm run law:plan seed` re-reads the sources and keeps every person's decision; `pnpm run law:plan status` counts progress from the database and derives each country's next step. - One reader for any country's constitution (law:text plan-constitutions): a Wikisource page through the REST API or any document copy (PDF/HTML), cut into articles for many languages, stored as status `copy` with who keeps it and the day read. Refused: no copyright basis recorded, too few articles, or a copy naming no year since the last recorded amendment. A copy attaches to the constitution a register already lists; a country whose constitution is held from its publisher is left alone. Waits as long as a 429 asks. - Russia's Constitution (ru.wikisource, as amended in 2020: 137 articles and the five inserted) and Ukraine's (the Constitutional Court's copy, with the 2016 and 2019 amendments; uk.wikisource's was refused as older), with their routes: Russia Art. 134-136; Ukraine Art. 93, 154-157 and the people's referendum (Art. 72, 74). Licences: Russia Civil Code Art. 1259(6), Ukraine Law No. 2811-IX Art. 8(1)(3). - The act page says whose copy a text is. Law sync runs Russia's register and the plan's constitutions weekly. - statistics sync test writes the metric it names, instead of relying on another file having done so first. - docs/design/2026-11-law-of-every-country.md; roadmap, changelog. Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
2829402aa0 |
feat(law,amend,contested): propose in Russian, Russia's register and routes, a pseudonym per proposal (#528)
* feat(contested,amend): a South Ossetian reader can propose a change in Russian
- Amend pages (write a change, support it, the official route) translated
into Russian, French and Italian; AMEND_LOCALES now holds every language.
- "Propose terms" on a contested place led to the primary organization's
form ("you are not a member of OrangeCat"). It now opens each side's law
to pick the article, where amendments are filed and supported.
- The claimant's quotes, published only in English, read in the reader's
language from the config catalog; their labels too. The coverage test
holds them to every language.
- Roadmap: a scenario side (as a subject of the Russian Federation), "my
life under each", Georgia's budget.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k
* feat(law,amend): Russia's register, its official routes, and a pseudonym per proposal
- Pseudonyms: a signed-in person is named in the public amendment record by
anon:<HMAC(key, proposal, account)>, never actor:<id>, so their proposals
cannot be linked to each other or to them. Rows written earlier keep their
name and are recognised as the same person. The filing rate limit moves
into the process, so no lasting list of who filed is kept to count it.
SOLON_PSEUDONYM_SECRET (falls back to the session secret).
- Russia: one reader over the official publication portal's JSON API
(PRAVO_GOV_RU), one entry per authority: federal Constitution, laws on its
amendment, federal constitutional and federal laws (8,012 acts), and North
Ossetia–Alania's constitutional laws and laws (1,095). The portal's
robots.txt disallows /File, where the scanned texts are, so the register
only. Laws are not objects of copyright (Civil Code Art. 1259(6)).
- Routes: federal bills (Constitution Art. 104, citizens hold no initiative)
and the Russian Public Initiative, federal and regional bars, each from the
page opened; in Russian. An act page shows its official routes whether or
not Solon holds its text.
- Authorities may carry their own names per language (North Ossetia–Alania).
- docs/research/2026-11-russia-sources.md; roadmap and changelog.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k
* test(law): count only this file's acts in the South Ossetian dry-run check
Another integration file registers the Parliament's acts at the same time,
so counting every parliamentrso act raced it (CI: expected 8 to be 5).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
d3cd864ca5 |
feat(i18n,money): every page in the reader's language and one currency (#527)
* feat: one currency and one language for the reader; codes read from their Word files Money: every amount on the budget and comparison pages is in the currency the reader picks (?in=, CHF by default), converted at the budget year's average rate, and the page says from what and whose rate. Rates are data (data/money/rates.json, pnpm run money:rates): Eurostat's annual euro rates for 151 currencies and, for the rouble after 2021, the Bank of Russia's official rate averaged over the year. src/lib/money imports nothing from Solon, ready to become the fleet's package. Eurostat budgets are now also read in million euro beside the shares of GDP (generated from the same taxonomies); a budget knows its GDP, so both show. Language: a law in another language reads in the reader's, as a machine translation labelled as one with the authentic text a click away. The translations are a cache keyed by the sha256 of the words (text_translations, migration 0030), each answer checked before it is kept (one per passage, every number kept, no passage ballooned); titles in lists use it too, and pnpm run law:translate fills titles ahead of readers. Places are named in the reader's language when the data has the name (Tskhinval, not город Цхинвал), their own names still listed. Texts: a South Ossetian code printed as a page linking Word files is read from the file worded as its text (never the contents file), with word-extractor; --stubs reads again the acts held only as such a page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k * feat(i18n,money): every page in the reader's language and one currency - Money defaults to US dollars; the reader's choice is remembered site-wide in a cookie (/api/preferences/currency) and used by budgets, contested places and the structures comparison, which now adds the reader's equivalent beside an amount quoted in its own currency. - Configured words (statistics scales, tax forms, budget lines and their COFOG/ESA labels, source attributions, publishers) get their other languages from one catalog, data/i18n/config.json, keyed by the English. localized() and cite() read it; a test fails while any text a translated page shows lacks a language; pnpm run i18n:config reports gaps. - Citations rewritten in English instead of mixed Russian/English; source lists show the localized attribution; budget document captions read in the reader's language with the original quoted below. - The voting method lab and South Ossetia's legislative route translated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
a25b15a4a5 |
feat: one currency and one language for the reader; codes read from their Word files (#526)
Money: every amount on the budget and comparison pages is in the currency the reader picks (?in=, CHF by default), converted at the budget year's average rate, and the page says from what and whose rate. Rates are data (data/money/rates.json, pnpm run money:rates): Eurostat's annual euro rates for 151 currencies and, for the rouble after 2021, the Bank of Russia's official rate averaged over the year. src/lib/money imports nothing from Solon, ready to become the fleet's package. Eurostat budgets are now also read in million euro beside the shares of GDP (generated from the same taxonomies); a budget knows its GDP, so both show. Language: a law in another language reads in the reader's, as a machine translation labelled as one with the authentic text a click away. The translations are a cache keyed by the sha256 of the words (text_translations, migration 0030), each answer checked before it is kept (one per passage, every number kept, no passage ballooned); titles in lists use it too, and pnpm run law:translate fills titles ahead of readers. Places are named in the reader's language when the data has the name (Tskhinval, not город Цхинвал), their own names still listed. Texts: a South Ossetian code printed as a page linking Word files is read from the file worded as its text (never the contents file), with word-extractor; --stubs reads again the acts held only as such a page. Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
7dcbdc2787 |
Places, statistics, navigation and a new mark: the globe, every country a place, methods, gaps, research with AI, a header that fits, the owl (#458)
* feat(places): a globe that names the world, and zooms where you point geo-kit 0.4.0 labels; countries, subdivisions (Natural Earth 1:10m) and every place of 1,000+ people (GeoNames, CC BY 4.0) loaded a country at a time; blue sea, land on the page surface, light and dark; credit line names the sources and how to steer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * feat(statistics): how the rankings are made; one country registry Nine indexes of freedom and governance described the same way, with quoted licence terms, what is unread, the same critical questions per kind, and checked AI explanation from what was read. Country codes for the law globe, statistics map and OECD sources come from one registry generated from Natural Earth; a test ties every named country to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * fix(places): calm labels on geo-kit 0.5.0, towns actually drawn, land never drawn as sea Quiet type hierarchy with room per style; zoom buttons kept clear; subdivisions and states painted on their own layers; GeoNames towns were loaded but never added to the labels (a patch had not applied), and the loaders no longer drop a fetch when the view changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * feat(places): every country a place; governance scores for all A world pack of 235 countries generated from the registry, World Bank indicators for each and OECD tax series for its 38 members, staggered so no publisher sees a burst; six World Bank governance scores (CC BY 4.0) on a governance dimension; a rate fixed by law is no longer flagged for staying put; the importer names itself and paces the OECD. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * feat(statistics): deep research with AI over Solon's data and law A model with read-only tools (catalog, series, dimensions, methods, law, and the web where configured) gathers numbered sources; the report is written from them alone and checked: numbers, citations, paragraphs, verdict words. Failing reports are dropped; sources stay listed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * fix(places): the world pack has one root, so countries are world/<name> 235 nations in one pack each claimed the root path; Andorra became 'world'. A root place (the Earth) now holds them, as other packs hold their subdivisions. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * test(places): the world pack's data has one root Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * docs(roadmap): second-level subdivisions need a licence read per country Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * feat(statistics): code compulsory old-age provision for CH and US Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * fix(places): the OECD answers a plain request, not Node's default Its gateway returned 500 for accept-language: * and 200 for a plain language and a data type (found by trying headers one at a time; the earlier rate-limit explanation was wrong). The importer now sends accept and accept-language; the 6 s OECD pacing and the five-minute stagger are gone. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * feat(statistics): what is measured, and where it is not A registry and pages for the places where statistical offices collect and publish different things: per topic and breakdown, what each office's own pages say (checked weekly), the law that frames it, where a gap lies, what must accompany a new measure, the objections with safeguards, who decides. First topic: crime by a person's background, nine places; descriptive, no characterisation of offices or people. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * feat(site): a header that fits, Find over everything, an engineering audit Four panels of four or five links (Law, Places, Data, Governance) instead of 27, a Find palette over pages, statistics, places and laws (Ctrl/Cmd+K or /), the phone menu as folds. Six import cycles fixed and gated in verify; docs/design/2026-11-engineering-audit.md records what was measured, the one-source map and the debt in order. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * feat(brand): the owl, and one drawing behind every place the mark appears Solon's mark is now Athens' little owl (the bird on the coins of Solon's city) with the fleet's rotorelief rings for eyes: the Cat's sibling, where the old balance was a line icon from no family. brand/solon-mark.svg is the only drawing. `pnpm run brand` writes the mark data (header, footer, share card), the favicon, the app icons and the deck/press exports from it; a test fails when a copy drifts. The candidates it was chosen over are in brand/concepts with the reasons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * docs(brand): where the marks should live next, and why a copy remains Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * test(e2e): follow the curated header and the folded phone menu The phone menu folds the site by section (only the current one opens), so the test opens Platform before it looks for Security. The Governance panel no longer carries the ideas page (the footer does); the panel test follows Decisions instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * refactor(law): name an authority by its place, in the reader's language Law authorities hand-wrote 80 English names ("Confederation", "Zürich") for places Places already names in every language. Pages now read the place's own name (loadAuthorityNames, once per request); a country with no place yet is named by Intl, the cantons together and the European Union from messages, and two places of one name get their level ("Zürich (Gemeinde)"). The config's field is now `label`: English, for logs, the API, llms.txt and prompts only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * feat(brand): one statement of what Solon is, on the card, in search and on the phone The share card, the meta description and the app manifest each carried their own line about Solon, and all three still described governance alone. They now read the home page's hero (Home.hero), in the reader's language: the card is per locale, set in Inter from the design-tokens package (Cyrillic included, nothing fetched), with the owl, and sizes its headline so every language fits on two lines. Meta.description is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * fix(brand): the owl favicon is linked, and iOS gets its own icon The layout's explicit `icons` replaced Next's file convention, so the generated icon.svg was never linked and only favicon.ico was. Without it, Next links favicon.ico, icon.svg and apple-icon.png (180, full bleed, written by `pnpm run brand -- --png` like the others). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * Test: the world pack's own root is not a reserved path segment Claude-Session: https://claude.ai/code/session_019MDtmsegw9dJ7eykLcT7Fe --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f48c443671 |
South Ossetia: sources research note and the place's structure (#484)
* South Ossetia: research note and the place's structure (pack, Wikidata scheme, five units) Adds the sources research note (publishers, reachability from a runner, counts measured, statistics read, gaps) and the first rows of the place: a pack with no ISO code (identified by Wikidata), the five administrative-territorial units of Constitution Art. 3 para. 2 as part_of the nation, names with the authority's own Russian first. Claims, administration and recognitions follow as their own sources, once the world backbone rows they point at are on main. Claude-Session: https://claude.ai/code/session_019MDtmuWnz7uS87NvSiDSDs * South Ossetia research note: recognitions, Georgia's own wording, what the place model needs Claude-Session: https://claude.ai/code/session_019MDtmuWnz7uS87NvSiDSDs |
||
|
|
e1476751bf |
Places: the United States, Wyoming's counties and the 2026 federal income tax (#426)
The pack `united_states` holds nation, state and county. The nation, all
fifty states and the District of Columbia come by state FIPS code from the
Census Bureau's state list (state.txt), each with its ISO 3166-2 code (US-WY),
which is how the law registry keys a state; Wyoming's 23 counties come by
five-digit FIPS code with the names of the Bureau's 2020 county list. The
script scripts/places-us-census.ts writes the batches, so another state's
counties are a rerun with its postal code: data, not code. New identifier
schemes: iso_3166_2, us_state_fips, us_county_fips. New licence:
LicenseRef-us-federal-work (17 U.S.C. § 105).
Boundaries: the same script cuts Wyoming's counties out of us-atlas's
TopoJSON (Census cartographic boundary file, 2017 edition) into a fixture
batch with its geometry, so opening the United States on the atlas draws
them.
Tax: the federal tax for 2026 from Rev. Proc. 2025-32, read on irs.gov:
§ 4.01 Tables 1 (joint) and 3 (single), and § 4.14(1), standard deduction
32,200 and 16,100. The model reads adjusted gross income, so each tariff is
its table moved up by the standard deduction, stating the table's tax at each
step; valid for 2026 only. Wyoming's own income tax is recorded as zero:
W.S. 39-12-101 keeps the field to the state, which levies none (Title 39,
chapter 12, read on wyoleg.gov; LSO, Wyoming Statutory Tax Structure, June
2025: 0 %). A state whose tariff is not recorded leaves the estimate
incomplete.
Switzerland's typo test now holds the order among Swiss places: Vermont and
the United States ("Vereinigte Staaten") now stand before Bern for "vern".
Checked in a production build: Laramie County's page with its chain,
FIPS code and source; Wyoming's with its ISO code and both sources; the
atlas drawing the 23 counties at $7,670 for an example $75,000 (single:
5,800 + 22 % of 8,500), on a desktop and a phone.
Claude-Session: https://claude.ai/code/session_019MDtmsWmge2YFXGRyA2au4
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
3ab5b29556 |
Places: Estonia's counties, municipalities and income tax (#412)
The pack holds the nation, its fifteen counties and 78 municipalities by their EHAK codes (EHAK2026v1, levels 1 and 2, valid from 2026-09-01), read from Statistics Estonia's classification server on 2026-11-08, with their Estonian, English and Russian names. The Land Board's terms for these units ask for the source and the validity date to be named: that is the licence, LicenseRef-ee-maaamet-by, and the attribution names both. Its tax: 22 % (Tulumaksuseadus § 4 lg 1) of what is above the tax-free income of 8,400 euros (§ 23 lg 1, since 2026-01-01), read from the consolidated text on Riigi Teataja. The same everywhere, so the model reads the nation only; one variant, because each person is taxed alone. Checked in a production build: Tallinn's page with its chain, names, code and source; the comparison in euros (EUR 40,000 gives EUR 6,952), and a Liechtenstein place beside it asking for its own amount in francs. Claude-Session: https://claude.ai/code/session_019MDtmsWmge2YFXGRyA2au4 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
4f6cd80f9e |
feat(places): filing and paying — Liechtenstein's tax steps, deadlines to your calendar, the bill a month (#346)
* feat(compare): one situation across countries in one currency; Liechtenstein's wealth is an amount - /compare asks the reader's situation once for the countries that share a currency (Switzerland and Liechtenstein): one form with every question either asks, each change written to every country that asks it. A hint the countries word differently is dropped rather than shown as both's. - A multiplier the reader reads the same way is one row, each column filled from its own country's figure (a commune's multiplier: 150 % · 160 % · 119 %). - Fix: an input a component adds to its base (Liechtenstein's yield on wealth) is an amount. It was offered as a yes-or-no, so Liechtenstein's wealth never reached its estimate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * wip(places): deadlines to the calendar, the bill a month, Liechtenstein's tax steps source Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * feat(places): Liechtenstein's tax steps at each commune's office, deadlines to your calendar, the bill a month - li-communal-tax-steps: for every one of the eleven communes, where to file (and, where the commune says so, to ask for more time or pay), each with the quote from the commune's own page; Triesenberg and Eschen state the 24 April date, and only those carry it. - A place's dated steps download as an .ics, made on the device: one all-day event each on its next date, a reminder two weeks before, the authority's page as the link and the page that states the date in the description. - The comparison shows each total as what to put aside a month. Ticino's steps are still missing: ti.ch did not answer from here, and no step is added from a page that was not opened. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
a3d8407d2b |
feat(places): Liechtenstein's tax, from its own law and every commune's decision (#340)
* wip(places): Liechtenstein tax model from SteG art. 5, 18, 19, 75 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * wip(places): Liechtenstein surcharges from every commune's own decision, tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * feat(places): Liechtenstein's tax, from its own law and every commune's decision Liechtenstein's tax on income and wealth (SteG, LR 640.0): the country's tariff of art. 19 (LGBl. 2024 Nr. 483, from the tax year 2025) for a single person and a couple taxed together, on income plus 4 % of wealth (art. 5, art. 14 para. 2 l; Finanzgesetz 2025 art. 2), rounded as art. 18 says; and each commune's surcharge (art. 75) for 2024 and 2025, each row read from the commune's own minutes with the line quoted. tax-model 0.11.0's `adds`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
7e0644e51f |
feat(places): Valais, the 26th canton; Uri and Solothurn do not round wealth (#339)
* wip(places): Valais income tax (indexes, couple's rebate, minimum tax) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * wip(places): Valais data and tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * feat(places): Valais, the 26th canton; Uri and Solothurn do not round wealth Valais's exported tables are the base tariffs of its tax law (StG art. 32, 178), read at an indexed income by the canton (2.0072) and by each commune (1.1 to 2.07), with a couple's 35 % rebate (at least CHF 680, at most 4,900) and a CHF 10 minimum tax: tax-model 0.10.0's indexed divisor, rebate and floor, data in valais-income-tax.json (source vs-income-tax). Against the calculator at incomes the indexes were not fitted to, 2025 and 2026: 1,195 of 1,220 whole bills to the franc, the rest within CHF 1. Uri and Solothurn tax wealth as entered; they were wrongly rounded to CHF 1,000. All 25 other cantons match the calculator's total again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f5eadd6c5a |
feat(places): Thurgau, St. Gallen, Appenzell Innerrhoden and Geneva, to the franc (#338)
Four more cantons, matched against the federal calculator's whole bill in every commune and locality (460 cases, single and married, 2026). - Localities: of 644 localities in Thurgau, St. Gallen and Appenzell Innerrhoden, seven communes' rates depend on the locality (school district or parish). A `locality` level that `standsFor` the municipality carries their rates (estv-tax-localities, measured); the nearest place in a chain wins. The export's rows for those communes are skipped with the reason, the commune page lists its localities, and /compare offers them in its column. - Geneva: 47.5 and 1 centimes (LCAC art. 2), the 147.5 % reduced by 12 % on income and the 1 % not (tax.multiplier.extra), the supplementary wealth tax of LIPP art. 59 para. 2 on the calculator's indexed brackets, and no wealth rounding (ch-cantonal-adjustments). - An estimate is a bill: each tax rounded to the franc, the total their sum, so the rows shown add up to the total shown. - /compare shows only rows that say something: a tax that is 0 everywhere, or an optional multiplier no place records, is hidden; a church's rows follow the chosen church; the level in "Levied by" is small type, so three places fit a 390px screen. Valais is not modelled yet: its tables apply to an indexed income, with a factor per commune the export does not carry, and a couple's rebate capped. Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
d6f603d8d5 |
feat(places): the whole Swiss tax bill — church, wealth and per-head tax, to the franc (#335)
* feat(places): the whole Swiss tax bill — church tax and wealth tax The estimate adds church tax (on income and on wealth) and the cantonal and communal wealth tax to the federal, cantonal and communal income tax. - Vendors @bitbaum/tax-model 0.8.1 (schema 7): a component on its own base, applied only when that input is given, so a reader who enters no wealth is asked for none of its facts. - estv-wealth-tax-scales: the calculator's wealth tables, read like income's, rounded down to CHF 1,000 as the calculator does in every modelled canton. - estv_simple_rates reads several fields per source: the canton's and the communes' wealth multipliers and the communes' church rates per church. Uri's and Jura's church rates, and Basel-Landschaft's Reformed and Christian Catholic ones, are a different shape (per mille of income, or on the cantonal tax) and are not read: a member there sees "not recorded" rather than a wrong figure. - The form asks taxable wealth (optional) and the church as one choice; rows for wealth and church show once they apply. Every component matches the federal calculator to the franc in 17 cantons, single and married, Reformed and Roman Catholic, at two uneven wealths (2026). The Swiss integration spec pins Zürich and Biel/Bienne for 2025. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * docs(places): what the wealth and church tax build measured, and what waits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * docs(design): structures as data — compare a foundation, a fund and a company, and act on it The register, comparison and actions behind Causius's vehicle workflow (#wf-vehicle): every fact about a legal form cites a provision Solon holds; Liechtenstein and Switzerland first, then Luxembourg, Ireland and the UAE, each after a reader for its law. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * feat(places): church tax in every modelled canton, wealth tax in Neuchâtel Each church has a tariff of its own, the canton's basic tariff unless the canton levies church tax on something else: Uri's churches on a share of income and wealth, Basel-Landschaft's Reformed and Christian Catholic churches on income and wealth themselves (ch-church-tariffs, measured), and Jura's on the cantonal tax, through tax-model 0.9.0's scaledBy. Neuchâtel's wealth divisor is read like income's. Measured against the federal calculator, 2026, CHF 100,000 income and CHF 1,234,567 and 487,654 wealth, single and married, all three churches: income, church and wealth tax match to the franc in all 21 modelled cantons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * feat(places): per-head taxes in every canton, the whole bill to the franc Each canton's fixed per-head tax per household (tax.head, a fixed tariff per variant, 0 where none), a church's on top for its members (Uri, Geneva, Neuchâtel), and Solothurn's communes' and parishes' own per adult, measured from the federal calculator for 2025 and 2026 in every canton and every Solothurn commune (ch-per-head-taxes). The importer reads fixed tariffs. The whole bill (income, church, wealth, per-head) now matches the calculator's total to the franc in two communes of each of the 21 modelled cantons, every church, single and married. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
37a4f84e79 |
feat(places): what you can do here — file, pay, ask for more time (#332)
* feat(places): what you can do here — file, pay, ask for time Instruments (design §4.7) get their first writer and reader. A batch can state instruments: a place, a kind from the registry, the authority's own page and, where it states one, the usual deadline with the page that states it. A source states its whole list; what it no longer states, or states differently, is superseded. `csv_instruments` reads a hand-kept file. A place shows, per kind, the step offered nearest it (a commune shows its canton's), on the place page and as a "What you can do" row on /compare. Kinds: tax_return, tax_payment, tax_deadline_extension, taken by the Swiss and Liechtenstein packs. Sources ch-cantonal-tax-steps and li-tax-steps are registered; their files follow once every row is checked on the authority's own site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * chore(places): Liechtenstein's tax steps wait for pages that can be opened llv.li answers 403 to every request from here, so no row could be checked on the authority's own site; the source is registered once one can. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC * feat(places): every canton's own pages to file, pay and ask for time data/places/switzerland/tax-steps.csv: 72 rows for 25 cantons, each the canton's own page, with the usual filing deadline for 22 of them and the page and sentence each deadline is read from. Every row was opened on the canton's site on 2026-10-30. Ticino's site could not be opened from here and has no rows; Basel-Landschaft's answers 403 and has only its e-tax portal; Glarus and Appenzell Ausserrhoden state no fixed day, so they show none. The whole file passes the batch check in adapters.test.ts; the Swiss integration spec imports a cut of it and finds Zürich's steps on the city's column of /compare. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
8b716ce8a9 |
feat(places): add Liechtenstein as a country pack (#277)
Liechtenstein becomes a pack beside Switzerland, so /api/v1/places resolves Vaduz and the other communes by name and postcode. - countries/liechtenstein.ts: nation (Fürstentum), the two Landschaften Oberland and Unterland as a full level (Constitution Art. 1; the electoral districts of Art. 46), the eleven communes; CHF, region LI, postcodes 94[89]x. No tax model. - Identifier schemes li_landschaft and li_municipality (7001-7011, the numbers swisstopo's directory of localities gives the communes), both reserved. - Source li-constitution-communes: a hand-kept batch (data/places/liechtenstein/communes.json, fixture adapter) citing the Constitution, Art. 1, with names and numbers checked against swisstopo's directory. - Source swisstopo-postcode-localities-li: the Liechtenstein rows of the same directory the Swiss postcodes come from; csv_postcodes gains a `where` option (as shapefile_areas has) to read only them. - Tests: the batch passes the check and puts each commune in the Landschaft the Constitution names; the postcode source keeps only the 20 Liechtenstein rows; an integration test imports both, reruns with no change, and finds Vaduz by name and postcode. The Swiss typo test now draws its cases from Swiss places. Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
9029982639 |
fix(places): Vaud's 30 % limit on cantonal and communal income tax (#245)
* fix(places): Vaud's 30 % limit on cantonal and communal income tax Co-authored-by: Cursor <cursoragent@cursor.com> * docs: changelog PR number Co-authored-by: Cursor <cursoragent@cursor.com> * chore: drop a scratch script; ignore /tmp Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|
|
a0c582f7a8 |
feat(places): rounding as the calculator does; Vaud, Schaffhausen, Nidwalden and Glarus (#243)
* feat(places): rounding as the calculator does; Vaud, Schaffhausen, Nidwalden and Glarus Co-authored-by: Cursor <cursoragent@cursor.com> * docs: changelog PR number Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> |