{"id":18804670,"url":"https://github.com/loleg/swiss-parl-wordtime","last_synced_at":"2025-07-03T15:09:09.332Z","repository":{"id":66866585,"uuid":"199261544","full_name":"loleg/swiss-parl-wordtime","owner":"loleg","description":"Analysis of the speeches of Swiss politicians","archived":false,"fork":false,"pushed_at":"2019-08-23T18:53:38.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T06:47:49.035Z","etag":null,"topics":["datapackage","parliamentary-data","switzerland"],"latest_commit_sha":null,"homepage":"https://data.okfn.org/tools/view?url=https%3A%2F%2Fraw.githubusercontent.com%2Floleg%2Fswiss-parl-wordtime%2Fmaster%2Fdatapackage.json","language":"Jupyter Notebook","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/loleg.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-07-28T08:25:15.000Z","updated_at":"2022-06-26T11:16:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"e219d2ca-329e-41f9-ae49-3abad32d949a","html_url":"https://github.com/loleg/swiss-parl-wordtime","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"0dfc050e30cedc8b8a140aabf4513c4f7a831e30"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loleg%2Fswiss-parl-wordtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loleg%2Fswiss-parl-wordtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loleg%2Fswiss-parl-wordtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loleg%2Fswiss-parl-wordtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loleg","download_url":"https://codeload.github.com/loleg/swiss-parl-wordtime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248762262,"owners_count":21157701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["datapackage","parliamentary-data","switzerland"],"created_at":"2024-11-07T22:39:53.287Z","updated_at":"2025-04-13T18:37:33.072Z","avatar_url":"https://github.com/loleg.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![goodtables.io](https://goodtables.io/badge/github/loleg/swiss-parl-wordtime.svg)](https://goodtables.io/github/loleg/swiss-parl-wordtime)\n\nThis repository contains code and open data from an analysis of speeches of Swiss politicians evaluated by [Beobachter magazine](https://en.wikipedia.org/wiki/Beobachter_(magazine)) together with Oleg Lavrovsky from the association [Opendata.ch](https://opendata.ch), as basis for the article [Im Bundeshaus reden Frauen weniger](https://www.beobachter.ch/politik/wahlen-2019/long-read/datenanalyse-im-bundeshaus-reden-frauen-weniger) (Tina Berg, Yves Demuth 18.07.2019)\n\n_Data source:_ Parliamentary Services of the Federal Assembly, Bern\n\n_Last update:_ May 9, 2019\n\n[\u003cimg alt=\"DataHub\" src=\"https://datahub.io/static/img/logo-cube.png\" width=\"50\"\u003e\u003cbr\u003eDataHub preview](https://datahub.io/loleg/swiss-parl-wordtime/v/1)\n\n## Background\n\nOn the topic of the 2019 national elections in Switzerland, we analyzed parliamentary speeches during sessions of the [National Council](https://www.parlament.ch/en/organe/national-council) and the [Council of States](https://www.parlament.ch/en/organe/council-of-states). The first three years of the current legislative period - between November 2015 and December 2018 - were taken into account. \n\nOur focus was strictly on political speeches. During this period, there were seven Presidents and Vice-Presidents of the Council of States, and six Presidents and Vice-Presidents of the National Council whose speaking time was not evaluated, since it included administrative content and therefore was not comparable to the other speeches. Several members of the Councils resigned or came in between 2015 and 2018: they were also not counted. They were likewise excluded from the analysis. \n\nThe evaluation therefore takes into account the speeches of 39 Council of States members (5 women and 34 men) who spoke a total of 315 hours (~13 days), as well as 175 National Council members (56 women and 119 men), who spoke a total of 552 hours (~23 days). \n\n## Data\n\nThe video recordings were made by the parliamentary services and the transcripts are open to the public. Open data from the Parliamentary Services of the Federal Assembly was collected from the [Swiss Parliament Web Services](https://www.parlament.ch/en/services/open-data-webservices).\n\nWe initially used data previously aggregated by [Tony Bowden](https://github.com/tmtmtmtm) (mySociety), and automatically updated on the [morph.io platform](https://morph.io/tmtmtmtm/switzerland-parlament). This is a script that connects to the \"old\" Web Services endpoint. The data is up-to-date, however it is missing some attributes which we needed, that are only available in the \"new\" endpoint.\n\nAdditionally, these similar open data projects provided inspiration: [make.opendata.ch//parlament](http://make.opendata.ch/wiki/project:parlament), [douglas-watson/parl-scraping](https://github.com/douglas-watson/parl-scraping.git).\n\n## Preparation\n\nTo reproduce the analysis, these general steps are involved which you can see in the [analysis notebook](scraper.ipynb):\n\n- Update the metadata of Swiss politicians\n- Collect transcripts for specified criteria (dates, format)\n- Filter out transcripts according to specific rules (error correction)\n- Aggregate the times and apply word count calculations\n- Output the aggregated data\n- Run some consistency checks\n\nFollow the instructions at [julialang.org](https://julialang.org/) to install Julia development environment on your system as a first step. \n\nThen open a Julia console, and at the prompt press ] on your keyboard to enter the package manager (your prompt will change to `(v1.1) pkg\u003e`). Then enter the following to install required packages:\n\n```\nadd JSON\nadd HTTP\nadd CSV\nadd Dates\nadd DelimitedFiles\nadd DataFrames\nadd Feather\n```\n\nYou now have all the dependencies, and should be able to run the `scraper.jl` script to generate the data. If you would like to explore the process in more detail, we suggest [installing IJulia](https://github.com/JuliaLang/IJulia.jl#installation) to explore the analysis in the Jupyter notebook. At the same prompt as above, run:\n\n`add IJulia`\n\nThen in your shell console, run `jupyter notebook`, to be able to run the code in this repository.\n\n## License\n\n### ODC-PDDL-1.0\n\nThis Data Package is made available under the Public Domain Dedication and License v1.0 whose full text can be found at: [opendatacommons.org](http://www.opendatacommons.org/licenses/pddl/1.0/)\n\n### Notes\n\nThe [Terms of Use](https://www.parlament.ch/en/services/open-data-webservices) (parlament.ch) of the source dataset list three specific restrictions on public use of these data:\n\n- this information may not be used in such a way that it gives the impression of being an official publication\n- if this information is reproduced the source must be indicated as follows: «Parliamentary Services of the Federal Assembly, Bern»;\n- the content of the information may not be altered;\n- the date on which the information was downloaded must be clearly indicated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floleg%2Fswiss-parl-wordtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floleg%2Fswiss-parl-wordtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floleg%2Fswiss-parl-wordtime/lists"}