Contributing
House of the People is a neutral research site. A contribution is welcome when it makes a figure more accurate, a source better, a sentence clearer or a page easier to use. This page says how to report a problem and what a change must meet to be merged.
#Report an error
Open an issue and choose the form that fits: a wrong figure or source, a translation problem, or a suggestion. Give the page address, the figure or sentence, what it should say and the source that says so. A correction without a source cannot be made.
Security problems go through the private route in SECURITY.md, not an issue.
#Before you change anything
Read CLAUDE.md. It records the decisions taken and the traps already met. Then read the document for what you are changing:
- a figure or a data file: docs/data-dictionary.md and docs/methodology.md;
- the bills or a vote: docs/legislative-updates.md;
- a translation: docs/translation.md;
- the build, the checks or a release: docs/maintenance.md.
#What every change must meet
- Neutral. State each position in its holders' own terms, with a source, and give comparable space. Do not argue for a party or an outcome. Do not copy briefing material written for any organisation.
- Sourced. Every figure comes from a data file, and every data file names its source, the document's date and the table or page. Do not type a calculated figure into a sentence. The build inserts it.
- Plain. Write full sentences with facts and explanations. No em dashes. No "not X but Y" turns. No stock words, flourishes or slogans. No emoji. Headings in sentence case. Say what a figure is, where it comes from and what it cannot show. The writing rules are set out in CLAUDE.md, and
scripts/check.pyfails on the ones a pattern can catch. A pattern cannot catch a fragment or a flourish, so read what you write. - In all languages. A change to an English string is a change to the five translations in the same commit. See docs/translation.md.
- Accessible. Colour pairs must pass contrast in both themes. Controls must work with a keyboard. A page must not scroll sideways at 320 pixels wide. After a change to layout or colour, run axe over the pages you changed in both themes at 390 and 1280 pixels.
- Dated. Anything about the bills states the date and time it was true, and the source.
#How to submit a change
- Fork the repository, or create a branch if you have access.
- Make the change. Edit the source (
data/,site/pages/,i18n/,paper/source.html), never the generated output. - Run the checks:
python3 scripts/check.py python3 scripts/make_map.py --check python3 scripts/make_tables.py --check python3 scripts/make_paper.py --check node scripts/test-apportion.mjsnode scripts/test-site.mjsneeds Chromium. It runs in CI if you cannot run it. - If you changed a page title, description or a figure shown on a state page, redraw the share cards (
node scripts/make_cards.mjs <built site>) and commitog/. - Open a pull request using the template. Describe what changed, why, and how you checked it. A merge to
mainpublishes the site, so a pull request is merged only after its checks pass and a maintainer has read it.
#Corrections policy
If a published figure or claim was wrong, the fix goes on the page, and the Corrections page records the date, the page, what it said, what it says now and why. A change of wording that leaves the meaning alone is not listed. A detail removed because it could identify a person is described and never repeated.
#Licence
By contributing you agree that your code is released under the MIT licence and your text and data under CC BY 4.0, as set out in LICENSE.