Analyse Political Texts
Overview
Wrangle and annotate different types of political texts. It also introduces Urgency Analysis, a new method for the analysis of urgency in political texts.
2026-09-17
Package
- Added a US presidential speeches vignette presenting a case study with plots
- Improved documentation and examples across exported functions
- Improved README to be shorter and clearer
- Fixed tests to skip gracefully when spaCy (Python) is unavailable, rather than erroring
- Removed ORCID field from DESCRIPTION to avoid CRAN submission issues
Functions
- Renamed
extract_title()toextract_first_sentence()to be more descriptive - Removed
extract_date() - Removed
sim_urgency()for now, as it does not work well with the updatedget_urgency() - Improved
annotate_text()to parse large text vectors in chunks, avoiding memory issues and R crashes
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0
- Improved
annotate_text()to initialise the spaCy backend only once, increasing efficiency - Improved
get_urgency()to score from word stems instead of lemmas, increasing accuracy and speed - Improved
get_urgency()scoring so that the urgency score is the sum of the other dimensions divided by the "must" score - Added a "min" option to the
summariseargument ofget_urgency() - Fixed
get_urgency()to return 0s, rather than NAs, when scores are genuinely zero - Fixed
get_urgency()where spacing was being replaced by dots - Improved
gather_topics()to match on word stems instead of lemmas, increasing accuracy and speed - Fixed a bug in priority identification in
select_priorities() - Improved
read_pdf()detection of non-readable PDFs
Data
- Renamed and replaced
US_News_Conferences_1960_1980withUS_inaugural_addresses_1993_2025 - Improved internal data to a single dataset with scores from the second urgency survey
- Removed the urgency codebook (please refer to the paper for details)
- Moved raw replication data to a separate
databranch to reduce package size
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 14
- Examples that run
- 8%1 run in a plain check · 5 only when donttest examples are enabled (R CMD check --as-cran) · 6 hold no code
- Exported functions with examples
- 92%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 7%
Downloads
Repository
- PRs merged (all time)
- 92%
- Median days to close, 50 most recently updated closed issues
- 325
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
Issues over time
PRs over time
Commits over time
15 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/henriquesposito/poldis on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows
GitHub Pages site last deployed 2026-09-18 · The repository has a site deploy workflow
Show all practicesHide 2 practices
Dependencies
Installing poldis adds 56 packages (30 with compiled code, 47 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, quanteda 4.2 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.2.0Latest2026-09-18 · current release · diff ↗ ·
removed 3 exports
extract_date, extract_title, sim_urgencyadded 1 export
extract_first_sentence - RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.1.2
- 0.1.12024-07-21
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-07-21
- Total releases
- 3 / 2 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 31 KB / 1 file
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("poldis")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.