mirror of
https://github.com/bitbaum/solon.git
synced 2026-12-04 04:07:02 +01:00
main
36
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3990d0e93d |
feat(places): Italy, region by region and comune by comune (#681)
Italy as a pack of its own, from ISTAT's SITUAS at the current date (2 December 2026): the 20 regions, five of special statute; 110 supra-municipal units (83 provinces, 15 metropolitan cities, 6 free municipal consortia, the autonomous provinces of Trento and Bolzano/Bozen, and Friuli-Venezia Giulia's 4 non-administrative units, as ISTAT lists them); and 7,894 comuni, each in its unit. Sardinia's units are those of its reform, recoded from 1 January 2026. A comune's German, Ladin or Slovene name stands beside the Italian one where ISTAT gives it. ISTAT content is CC BY 4.0; names in other languages from Wikidata (CC0). The country, every region and the 102 units whose Wikidata item holds the world pack's ISO 3166-2 code move over with their pages; the provinces of Sassari and South Sardinia, which the reform abolished, end. Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
71bbcde64a |
feat(places): Austria, Land by Land and Gemeinde by Gemeinde (#682)
Austria as a pack of its own, from Statistik Austria's regional classification (open data, CC BY 4.0, as of 2026-01-01, checked code by code against the 2026 lists): the nine Länder, 79 political districts, 14 statutory cities (each a Gemeinde that is its own district, held once with both codes), 2,077 Gemeinden in the districts, and Vienna as Land, district and Gemeinde with its 23 districts. 2,092 Gemeinden and 94 districts, as Statistik Austria counts them. Each Land keeps the ISO 3166-2 code the world pack held it by, so its page moves and the old path redirects. The 22 Burgenland Gemeinden the Volksgruppengesetz, Anlage 1, names whole carry their Croatian or Hungarian name. Names in other languages from Wikidata. Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
ebcb85af72 |
feat(i18n): the start-a-business guide in eight languages; per-language pending lists for the messages check (#675)
* fix(i18n): check:messages leaves out each language's own pending namespaces langkit's command line takes one --pending list for every language, but Amend is pending only outside AMEND_LOCALES, so main failed check:messages with 366 missing Amend keys in zh, ja and ko. scripts/check-messages.ts calls langkit's checkMessages with a per-language map, read from src/i18n/pending.ts, which the parity test now shares. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz * feat(i18n): the start-a-business guide in all eight languages The page's words are the StartBusiness messages (metadata too); the guide's facts stay written once, in English, and read their other languages from data/i18n/config.json by their English words. guideTexts() lists every text the page can show from the guide files, for every country and region, so pnpm run i18n:config finds them and the configuration test holds each to every language. Official names keep their original (in brackets where the English has them; as they are in German). The route counts as translated. The title no longer hyphenates words that fit a 320px line. Chinese, Japanese and Korean are machine translations, not yet read by a native speaker, as for the rest of the site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
e24eb72e42 |
feat(places): Belgium by its parts, side by side in Eurostat's figures (#674)
* feat(places): the Netherlands and Belgium as packs - The Netherlands from Statistics Netherlands' "Gebieden in Nederland 2026" (86247NED, CC BY 4.0): 12 provinces and 342 municipalities by CBS code, Amsterdam GM0363 among them; Bonaire, Sint Eustatius and Saba as public bodies (GM9001 to GM9003, table 83698NED). - Belgium as Statbel nests it on be.STAT, with the NIS codes of Eurostat's LAU 2026 list: 3 regions, 10 provinces, 43 administrative arrondissements, 565 municipalities after the mergers of 1 January 2025. Brussels has no province, so its arrondissement and its 19 municipalities are levels of their own under the region. - The Flemish, French and German-speaking Communities as an overlapping level: each overlaps the municipalities of its language area (285, 252 and the 9 of NUTS 3 BE336), from the Constitution (Art. 2, 127, 128, 130), vlaanderen.be and federation-wallonie-bruxelles.be; none overlaps Brussels' municipalities, where their decrees reach institutions. - Names in other languages from Wikidata (CC0), matched by CBS code (P382) and NIS code (P1567). ISO 3166-2 rows move from the world pack. Built by scripts/places/netherlands-units.py and scripts/places/belgium-units.py. - A test holds every repository batch file that carries a whole pack to its levels: parents, overlaps and identifier forms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz * fix(i18n): the City of Zürich's tasks and departments in Chinese, Japanese and Korean #666 merged after #668 with nine new phrases in five languages, so main's parity test failed for zh, ja and ko. These are the nine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz * fix(places): the Netherlands' and Belgium's names in Chinese, Japanese and Korean Main gained three languages while this branch was open: the two packs' level names and attributions in zh, ja and ko, and main merged in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz * feat(places): Belgium's parts in Eurostat's figures, side by side Belgium, the Flemish, Walloon and Brussels-Capital Regions and the German-speaking Community's area (NUTS BE336) get their population on 1 January, area, GDP and GDP per inhabitant from Eurostat's regional tables (demo_r_pjanaggr3, reg_area3, nama_10r_3gdp), read live by the existing eurostat_json adapter, which now takes NUTS codes beside country codes. Each is a statistic with its definition, scope and plain words, so every part's page shows the four figures with their source and each opens the statistic's page, where all five places stand side by side. - regional-metrics.ts: the four metrics and the requests that read them - eurostat-regions-be: the source, NUTS code to the pack's places - profile figures: a "Population, area and output" group; a place that is not a country is no longer ranked among the countries; an area draws no trend line (a square kilometre re-measured reads as a leap) - themes, plain words, 8 locales Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
585884e63e |
feat(places): Brazil, Argentina and Chile, state by state and commune by commune (#673)
Brazil: 26 states, the Federal District, 5,569 municipalities and the state district of Fernando de Noronha, from IBGE's localities API. Argentina: 23 provinces and the Autonomous City, 512 departments and partidos, the City's 15 comunas and 1,877 local governments, from IGN's units in the Georef API (CC BY 4.0). Chile: 16 regions, 56 provinces and 345 communes by CUT code, from the Library of the National Congress's vector maps. Names in other languages from Wikidata. Each state, province and region keeps the ISO 3166-2 code, and so the page, the world pack held it by. Antarctica and the South Atlantic islands stay places of their own in the world list: Tierra del Fuego's departments for them and Chile's commune of Antártica are not added. Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
e8696eb56d |
feat(i18n): Solon in Chinese, Japanese and Korean (#668)
Every message, configuration text, contested-place question and area name in Simplified Chinese, Japanese and Korean, with the three in the language menu. Each language has its list of words that take a side about a place, matched anywhere in a text because these languages run words together; the neutrality test reads all eight catalogues. The chat and law-question endpoints accept every locale, model prompts name the language from Intl rather than a table of five, and <html lang> is zh-Hans for Chinese so the browser picks Simplified glyphs. Translated by a model, checked for placeholders, tags and the loaded terms; not yet read by a native speaker (AGENTS.md says so). Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
0f7394030a |
feat(places): 8053 is Witikon: the City of Zürich's postcodes by quarter (#664)
Every official address in the City of Zürich (swisstopo's register of building addresses) placed in the city's statistical quarters and counted per postcode: 98.6 % of 8053's addresses are in Witikon. The table (data/places/switzerland/zurich-postcode-quarters.csv) is made by scripts/places/zurich-postcode-quarters.py and imported as a postcode source. A postcode search puts a quarter holding most of a postcode before the city it lies in. Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
db6c8ece61 |
Places: Ukraine, Russia, Belarus, Latvia, Lithuania, both Koreas and Singapore as packs; both claims held for six areas (#663)
* feat(places): Ukraine, Russia, Belarus, Latvia and Lithuania as packs; both claims held for six areas - Ukraine from its KATOTTH codifier (order No. 1321 of 7 July 2026): 27 regions, 136 raions, 1,772 territorial communities. Russia: the 89 subjects of Constitution Art. 65 with the Federal Tax Service's subject codes. Latvia from the ATVK (CC0), Lithuania by Statistics Lithuania's codes, Belarus from Wikidata until one of its registers answers. ISO 3166-2 rows move from the world pack and keep their pages; the world files leave these countries out. - A contest may be an area two packs' units each claim: every side names its unit and quotes its claim; listed alphabetically. Crimea, Sevastopol and the Donetsk, Luhansk, Zaporizhzhia and Kherson regions compared from each side's own constitution (and Russia's admission laws). - Paths from Cyrillic and Hangul names are transliterated; pages are read in the charset they declare (the weekly source check and the constitution reader); "1 straipsnis" is an article. - Latvia's, Lithuania's and Belarus's constitutions chosen in the plan from their official publishers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrUENEfGK4f785HStF * feat(places): South Korea, North Korea and Singapore as packs - South Korea from the Ministry of the Interior and Safety's legal-dong code register: 16 provinces and metropolitan cities (Gwangju and South Jeolla as one unit since 1 July 2026), 229 cities, counties and districts, 39 districts of cities. - North Korea's 13 ISO 3166-2 places and Singapore's 5 CDC districts from Wikidata, their own registers not having answered; both on the ROADMAP with their plans. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrUENEfGK4f785HStF --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
bcfd87d971 |
feat(places): the West Bank, East Jerusalem, Gaza and the Golan, side by side; Israel's localities (#662)
The contest model holds layered places (shape C, design 2026-11-contested-law.md §5.2) as data: a side may name its own world place or names of its own, administer the place, govern only the zones a source draws, and must quote the words its role rests on; a contest quotes how others (UN Security Council resolutions) describe the place, attributed. No place is named in code. - world list: west-bank, east-jerusalem, gaza-strip, golan-heights (Wikidata items), claimedBy the State of Palestine / Syria. - contests (src/lib/config/places/contests/levant.ts): Areas A, B, C and each side's jurisdiction from the Interim Agreement (1995, UN-circulated text); Israel's Basic Laws (Knesset translations) and the Golan Heights Law; the Amended Basic Law of Palestine and its UN membership application; Syria's Constitutional Declaration (2025); SC resolutions 478, 497, 2334, 2803; PwC tax summaries cited as summaries. Every page opened 2026-12-01; every quote translated in data/i18n/config.json for de, fr, it, ru. - the weekly source check reads PDFs by their text layer (unpdf), so the resolutions and the Basic Laws are checked like any page. - an israel pack from the Central Bureau of Statistics' locality file on data.gov.il (scripts/places-il-cbs-localities.ts): 7 districts and 1,267 localities, 127 in the file's Judea and Samaria Area; Israel and its ISO districts move out of the world pack with their ids. A pack may name the language its paths are read from (Hebrew is not transliterated). - ROADMAP: what is still open (PCBS localities, CBS subdistricts, a second reader, statutes). Claude-Session: https://claude.ai/code/session_019MDtmuGwYBfhKDBa4xK9Ui Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
e375e45517 |
places: jobs, building and party strengths for every commune (#628)
The explorer offers jobs per 100 residents, dwellings built a year per 1,000 residents and the six largest parties' strength at the 2023 National Council election, from the Federal Statistical Office's tables; each commune's page shows them with its rank. Also fixes the importer overflowing the stack when a file whose figures are already held (every commune's vote results) is loaded again. Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
464ac6d504 |
feat(places): how every commune voted in every federal popular vote since 2015 (#623)
- /places/votes: all 102 federal proposals since 2015 with the people's yes, the cantons, turnout, and the next vote day's proposals - explorer: any vote's yes share as an axis or column, plotted against the commune figures - commune pages: the commune in numbers (rank among all communes) and how it voted beside the country - csv_facts: dateColumn (a figure for one day) and variantColumn (a variant per row); loadSeriesFor reads one variant - scripts/fetch-federal-votes.mjs writes the results from the FSO's open data Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
5124beb2ed |
feat(places): every Swiss commune in numbers — /places/explore (#622)
All 2,115 communes with their residents, change since 2020, share of foreign nationals and share aged 65 or over, from the FSO's STATPOP (px-x-0102010000_101, end of 2025 and 2020), kept as a Places repo file and imported like every other one. Sort by any column; plot any two against each other (log scale for population, Pearson's r with what it does not mean); mark a commune on the plot from its row; each name leads to its place page. Server-drawn, no script. Columns are config (src/lib/config/places/explore-columns.ts); the mechanism is src/lib/places/explore.ts, unit-tested. Imported end to end against a local database: 12,690 facts once the register's mergers are held (five communes merged on 2026-01-01 carry 2025 figures). Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
ffc16763ce |
feat(law): Zürich's official routes as data, and the letter that carries a proposal (#law-route, #law-handoff) (#619)
* feat(law-route): the City of Zürich's routes as sourced data, on every proposal Petition, Einzelinitiative, Volksinitiative (3,000 in six months), motion or postulate, and contesting one's own fine, each with whom it is open to and the provision that says so. A proposal shows them as "What it takes to make this real here", the case routes apart. Co-Authored-By: Claude <noreply@anthropic.com> * feat(law-handoff): write the petition or Einzelinitiative from a proposal, as a PDF made on the writer's device The writer's details stay in the browser: no request carries them, nothing is stored, the page is not indexed. Whoever may not take a voters-only route is shown the petition. Co-Authored-By: Claude <noreply@anthropic.com> * feat(law): the act API gives the version id, so a signer can file a change with their own key scripts/amendment-file.ts pins each change to its provision's hash, computes the revision hash as the server does, signs and files. First spec: Art. 8 of the City of Zürich's Parkkartenverordnung. Co-Authored-By: Claude <noreply@anthropic.com> * docs(law): roadmap, changelog and design for #law-route and #law-handoff Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
39899f66aa |
feat(compare): start from where you are; the law beside how it is enforced (#611)
* fix(statistics): the source checker reads umlauts written as entities gesetze.li writes every umlaut as a named entity (ü), and comparable() decoded only seven names, so no German word on Liechtenstein's law pages could ever match: a record citing one would fail statistics:verify on correct words. It now decodes the Latin-1 letters and the common typographic entities. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(statistics): using cannabis yourself — the law in three places, enforcement apart A rubric (personal.cannabis_use, five languages) with a stated free end: which end of the scale leaves the decision to the person. freerOrder() reads places off it by point, never as a score. Codings, each from the statute's own words with its articles: - Switzerland 1: a fine (BetmG Art. 19a, CHF 100 on the spot, OBV 8001), and 10 g prepared for one's own use is not punishable (Art. 19b). - Liechtenstein 2: a fine of up to CHF 50,000 (BMG Art. 21); no amount exempt. - Monaco 3: six months to three years and EUR 2,250-9,000 (Loi 890 art. 5, Code pénal art. 26); using in company five to ten years (art. 2). Enforcement records now carry a confidence and why. Five, kept apart from the law: Zürich city's cannabis fixed fines 2019-2025 (190 -> 29), the canton's narcotics trend, the ZüriCan trial, Liechtenstein's 2024 police report (350 reports for own use, all drugs), and Monaco's 2024 count (166 narcotics offences, no split: low confidence). Every checked phrase was matched against the live page with comparable(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(compare): start from where you are, change places where they are shown, law beside enforcement The friction: to compare, a reader typed a name, picked among canton and commune, saw one place, then scrolled to the bottom to type the next. - Where you are: with no place in the link, the reader's own country is guessed from their languages and marked as a guess. 'Start from where I am' reads the position and resolves it on the device: the world outline holding it (geo-kit pickAllAtPosition), then the commune Solon draws there. Solon is asked only which place carries the country's code (/api/v1/places/by/<scheme>/<value>). Where location was already allowed, the guess is replaced without asking. - One picker at the top: each place with its levels in one row (commune, district, canton, country: one tap each), remove, and Add with near you (from the same outlines), compared before (this device only), suggestions (curated, called suggestions, not 'popular') and search. Up to four. - What the law says, per topic: the written scale from the end that leaves the most to the person, each place on the point its own statute puts it, with the articles (Solon's law page, or the publisher's) and the words. Federal law reaches Zürich through its chain. How it is enforced is a separate, labelled block: who said it, for which years, confidence and why, sources; it never moves a place. Then tax, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(compare): what the first real look showed - Monte Carlo sat in the sea on the 1:50m world outlines, so 'where I am' found no country: a position no outline holds now takes the nearest country within 20 km, ring by ring. - 'The world' was offered as a level to compare Monaco at: a level may be marked as a grouping root (the world pack's), and is not offered. - The current level was cut off at the end of its row; it is scrolled into view, and a name the row holds twice says its level (Zürich, canton or commune). - Topics only one place answers are folded into one line each; a topic no place has enforcement for says so once, not once per place; a dimension's 'what would fill it' is shown only where it is about that one topic. - The tax table's own Remove links are gone: the picker's × is the one way. - Two cards a row on wide screens, so a level row has room. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(statistics): say only what the pages say about the trial and the fixed fine The ZüriCan trial's stated end (October 2026) has passed, so its record speaks in the past tense. The Swiss coding no longer says the fixed fine is for adults: that rule was not read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(compare): changelog, roadmap and the framework's cannabis example as built; the law loader asks no act twice Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(roadmap): declare the id the changelog cites for the comparison Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(compare): find where you are with geo-kit as published pickAllAtPosition is in bitbaum/kits#3 but not on npm yet (publishing waits on an npm sign-in). Turning a globe to face the position puts it at the centre pixel, so geo-kit 0.8's pickAllAt gives the same stack today; outlinesAt says to move to pickAllAtPosition once that version is published. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
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> |