{"id":32440376,"url":"https://github.com/patrickbarks/parliamentary-ngrams","last_synced_at":"2026-07-09T17:31:14.183Z","repository":{"id":96005437,"uuid":"42978627","full_name":"patrickbarks/parliamentary-ngrams","owner":"patrickbarks","description":"Scrape and analyze transcripts of daily debates in the House of Commons","archived":false,"fork":false,"pushed_at":"2015-09-23T04:58:19.000Z","size":8756,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T01:28:25.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickbarks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-23T04:37:58.000Z","updated_at":"2016-02-21T19:11:09.000Z","dependencies_parsed_at":"2023-03-06T22:30:43.559Z","dependency_job_id":null,"html_url":"https://github.com/patrickbarks/parliamentary-ngrams","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patrickbarks/parliamentary-ngrams","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickbarks%2Fparliamentary-ngrams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickbarks%2Fparliamentary-ngrams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickbarks%2Fparliamentary-ngrams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickbarks%2Fparliamentary-ngrams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickbarks","download_url":"https://codeload.github.com/patrickbarks/parliamentary-ngrams/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickbarks%2Fparliamentary-ngrams/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35308362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-09T02:00:07.329Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-26T01:28:10.678Z","updated_at":"2026-07-09T17:31:14.177Z","avatar_url":"https://github.com/patrickbarks.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"parliamentary n-grams\n=====================\n\nScrape and analyze [transcripts](http://www.parl.gc.ca/HouseChamberBusiness/ChamberSittings.aspx?View=H\u0026Parl=41\u0026Ses=1\u0026Language=E\u0026Mode=2) of daily debates in the House of Commons.\n\n\n### Data files\n\nparl-41-raw.txt contains all (hope I got 'em all) 45,928 turns-of-talk from the 502 Question Periods held during the 41st Parliament\n\nVariable | Description\n---|---------\n`date` | date in dd-mm-yyyy format\n`name` | name of the MP speaking\n`party` | party affiliation of the MP speaking\n`speech` | text of the MP's speech (translated into English if initially spoken in French)\n\nparl-41-processed.txt is the same, but with non-target turns-of-talk removed (e.g. directions from The Speaker of the House, jeers from unnamed members, etc.), missing party affiliations filled in, and MP names made consistent (some MPs are referred to in the transcripts in multiple ways, e.g. with or without their middle initial)\n\n\n### Example analyses\n\nThe distribution of dollar-value mentions by party:\n\n![](/figures/dollar-mentions.png)\n\nThe percent occurrence of various terms over time:\n\n![](/figures/n-grams.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickbarks%2Fparliamentary-ngrams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickbarks%2Fparliamentary-ngrams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickbarks%2Fparliamentary-ngrams/lists"}