In this repo we collect all the functions for the preprocessing of the raw Democrasci data, i.e., the data from the Swiss parliament archives. The functions implemented here go from the opening and manipulation of these files, to the cleaning, curation, aggregation, and visualization, for all the different preprocessing steps. The final output files, one for each year, are the inputs for the functions in the repository corresponding to WP2.