W7: Scaling Political Texts
2026-10-23Fall 2026 (115-1) · National Taiwan University (GIND)
NTLDEV 7191 · Fri. 16:30–18:20 · 國發 204
Last compiled: 2026-10-30 12:33:35 (Asia/Taipei)
IPSA World Congress 2027 · Rome
Panel: Special Interest Influence and the Quality of Democratic Representation
Abstract deadline: 4 November 2026
EPSS 2027 Conference · Copenhagen
Paper deadline: 13 November 2026, 23:59 CET
Taipei time: 14 November 2026, 06:59
22nd TASPAA Annual Conference · 2027
Abstract and panel proposal deadline: 1 December 2026
14–15 May 2027 · National Taipei University, Sanxia Campus
Saturday, 31 October 2026
Taipei Pride
第24屆臺灣同志遊行
Taipei City Hall Plaza
Gather from 13:00 · Parade starts at 14:05
Have a good weekend. Enjoy Taiwan’s diversity and inclusive spirit.
Official event information and images: Development Studies Conference · Taiwan LGBT+ Pride.
An early Wordscores application: Laver & Benoit (2002).
| Research choice | The Irish Dáil study |
|---|---|
| Political setting | October 1991 confidence debate on the Fianna Fáil–PD government |
| Texts | 58 English-language speeches by individual legislators |
| Measurement target | How strongly did each speaker support or oppose the government? |
Discuss: what might speeches reveal beyond a final confidence vote?
Laver & Benoit (2002), Irish Political Studies 17(1): 59–73. DOI · Original article.
An early Wordscores application: Laver & Benoit (2002).
| Research choice | The Irish Dáil study |
|---|---|
| Political setting | October 1991 confidence debate on the Fianna Fáil–PD government |
| Texts | 58 English-language speeches by individual legislators |
| Measurement target | How strongly did each speaker support or oppose the government? |
Discuss: what might speeches reveal beyond a final confidence vote?
Laver & Benoit (2002), Irish Political Studies 17(1): 59–73. DOI · Original article.
An early Wordscores application: Laver & Benoit (2002).
| Research choice | The Irish Dáil study |
|---|---|
| Political setting | October 1991 confidence debate on the Fianna Fáil–PD government |
| Texts | 58 English-language speeches by individual legislators |
| Measurement target | How strongly did each speaker support or oppose the government? |
Discuss: what might speeches reveal beyond a final confidence vote?
Laver & Benoit (2002), Irish Political Studies 17(1): 59–73. DOI · Original article.
| Step | The early parliamentary design |
|---|---|
| Assign reference positions | Haughey: +1. Bruton and de Rossa: −1 |
| Score the vocabulary | Learn word scores from those reference speeches |
| Locate other speakers | Combine the scored words in each remaining speech |
Interpretation: support for this government in this debate.
2002: parliamentary application.
2003: the general Wordscores article, including this debate.
Laver & Benoit (2002), pp. 61–66, reference speeches. Laver, Benoit & Garry (2003), pp. 326–328, APSR.
| Research task | W6 connection | W7 question |
|---|---|---|
| Assign a category | Hate speech and grandstanding | Which texts belong together? |
| Measure a degree | Julia Park’s original grandstanding score (continuous) | Where does a text sit on a scale? |
| Interpret the measure | Read errors and external evidence | What gives a position its meaning? |
Today: Wordscores, Wordfish, Wordshoal and Latent Semantic Scaling (LSS).
Course connection: W6: Human Coding and Document Classification. Original continuous measure: Park (2021). Lecture context: Benoit (2018), pp. 3–4, 21–27.
| Research task | W6 connection | W7 question |
|---|---|---|
| Assign a category | Hate speech and grandstanding | Which texts belong together? |
| Measure a degree | Julia Park’s original grandstanding score (continuous) | Where does a text sit on a scale? |
| Interpret the measure | Read errors and external evidence | What gives a position its meaning? |
Today: Wordscores, Wordfish, Wordshoal and Latent Semantic Scaling (LSS).
Course connection: W6: Human Coding and Document Classification. Original continuous measure: Park (2021). Lecture context: Benoit (2018), pp. 3–4, 21–27.
| Research task | W6 connection | W7 question |
|---|---|---|
| Assign a category | Hate speech and grandstanding | Which texts belong together? |
| Measure a degree | Julia Park’s original grandstanding score (continuous) | Where does a text sit on a scale? |
| Interpret the measure | Read errors and external evidence | What gives a position its meaning? |
Today: Wordscores, Wordfish, Wordshoal and Latent Semantic Scaling (LSS).
Course connection: W6: Human Coding and Document Classification. Original continuous measure: Park (2021). Lecture context: Benoit (2018), pp. 3–4, 21–27.
Sequence: cases → method concepts
→ reading and validation → R tools and practice.
Research cases and original-study sources follow. Method selection depends on the question and available evidence.
| Study | Article | Method | Texts | Teaching connection |
|---|---|---|---|---|
| Study 1 | Laver, Benoit & Garry (2003) | Wordscores | Party manifestos | Wordscores and reference positions |
| Study 2 | Slapin & Proksch (2008) | Wordfish | German manifestos | Wordfish and change over time |
| Study 6 | Lowe & Benoit (2013) | Wordfish | Irish budget speeches | Human judgments and model failure |
| Study 3 | Lauderdale & Herzog (2016) | Wordshoal | Legislative debates | Wordshoal and debate structure |
| Study 4 | Trubowitz & Watanabe (2021) | LSS | News summaries | LSS and geopolitical threat |
| Study 5 | Hjorth et al. (2015) | Both | Danish and German manifestos | External benchmarks and context |
Both = Wordscores + Wordfish. Wordshoal uses Wordfish within each debate.
Situation: some texts have credible positions on a defined dimension.
Example: earlier party manifestos provide references for a later election.
Will Lowe (2008)
Political Analysis 16(4): 356–371
Discuss: would a campaign manifesto be a suitable reference for a parliamentary interruption?
Model interpretation: Lowe (2008), Understanding Wordscores. Course checks: Laver, Benoit & Garry (2003), pp. 314–315; Benoit (2018), pp. 18–20. Image: user-supplied article screenshot. Discussion prompt is a course application.
Study 1
Michael Laver, Kenneth Benoit and John Garry
American Political Science Review, 2003
Laver, Benoit & Garry (2003), “Extracting Policy Positions from Political Texts Using Words as Data”. Lecture walkthrough: Benoit (2018), pp. 5–8.
Study 1
Figure 1 · reference texts → words → new texts
1 · 1992 references
Economic policy:
lower = public services
higher = tax cuts
Study 1
Figure 1 · reference texts → words → new texts
2 · From texts to words
Study 1
Figure 1 · reference texts → words → new texts
3 · 1997 positions
Labour and the Liberal Democrats switch order.
Study 1
Figure 1 · reference texts → words → new texts
4 · Read the note
Situation: we have comparable documents but no trusted position labels.
Example: party manifestos from several elections, or speeches in one budget debate.
Slapin & Proksch (2008), AJPS. Lowe & Benoit (2013), Political Analysis. Lecture context: Benoit (2018), pp. 34–35, 37.
Possible complications: changing topics, speaking roles, genre and historical vocabulary.
Slapin & Proksch (2008), model specification, pp. 708–710. Interpretation also follows Lowe & Benoit (2013). Lecture context: Benoit (2018), pp. 37–38, 42–43.
Possible complications: changing topics, speaking roles, genre and historical vocabulary.
Slapin & Proksch (2008), model specification, pp. 708–710. Interpretation also follows Lowe & Benoit (2013). Lecture context: Benoit (2018), pp. 37–38, 42–43.
Possible complications: changing topics, speaking roles, genre and historical vocabulary.
Slapin & Proksch (2008), model specification, pp. 708–710. Interpretation also follows Lowe & Benoit (2013). Lecture context: Benoit (2018), pp. 37–38, 42–43.
Study 2
Jonathan B. Slapin and Sven-Oliver Proksch
American Journal of Political Science, 2008
1 · Model the word counts
Slapin & Proksch (2008), AJPS, p. 709. Course notation: i indexes a manifesto, j a word. Lecture context: Benoit (2018), pp. 37–38. Red circles and arrows are course annotations.
Study 2
Jonathan B. Slapin and Sven-Oliver Proksch
American Journal of Political Science, 2008
2 · Allow different baselines
Slapin & Proksch (2008), AJPS, p. 709. Course notation: i indexes a manifesto, j a word. Lecture context: Benoit (2018), pp. 37–38. Red circles and arrows are course annotations.
Study 2
Jonathan B. Slapin and Sven-Oliver Proksch
American Journal of Political Science, 2008
3 · Connect words and positions
Slapin & Proksch (2008), AJPS, p. 709. Course notation: i indexes a manifesto, j a word. Lecture context: Benoit (2018), pp. 37–38. Red circles and arrows are course annotations.
Study 2
Jonathan B. Slapin and Sven-Oliver Proksch
American Journal of Political Science, 2008
Slapin & Proksch (2008), “A Scaling Model for Estimating Time-Series Party Positions from Texts”. Lecture example: Benoit (2018), p. 46.
Study 2
Figure 1 · panels A and B · course annotations in red
Panel A vs. panel B
Study 2
Figure 1 · panels A and B · course annotations in red
SPD: 1990–2002
Study 2 · word parameters
Figure 2 · word parameters · red overlays
Read across, then up.
Slapin & Proksch (2008), AJPS, Figure 2, p. 715. Original image supplied by the instructor.
Study 2 · word parameters
Figure 2 · word parameters · red overlays
Read across, then up.
Slapin & Proksch (2008), AJPS, Figure 2, p. 715. Original image supplied by the instructor.
Study 2 · word parameters
Figure 2 · word parameters · red overlays
Read across, then up.
Slapin & Proksch (2008), AJPS, Figure 2, p. 715. Original image supplied by the instructor.
Study 2 · word parameters
Figure 2 · word parameters · red overlays
Read across, then up.
Slapin & Proksch (2008), AJPS, Figure 2, p. 715. Original image supplied by the instructor.
| Aspect | Wordscores | Wordfish |
|---|---|---|
| Strength | Scores new texts using reference positions. | Estimates positions without supplied position scores. |
| Assumptions | Trusted reference positions; comparable language; shared word–position links. | One common dimension; conditionally independent Poisson counts; shared word effects. |
| Limits | Reference choice matters; unseen words lack scores; shared words pull raw scores inward. | Topics or roles may drive the scale; small standard errors do not establish validity. |
Both need checks against the texts and independent evidence.
Reference: Laver et al. (2003), Slapin & Proksch (2008), Lowe & Benoit (2013). Benoit (2018), pp. 18–20, 37–45, 59.
| Aspect | Wordscores | Wordfish |
|---|---|---|
| Strength | Scores new texts using reference positions. | Estimates positions without supplied position scores. |
| Assumptions | Trusted reference positions; comparable language; shared word–position links. | One common dimension; conditionally independent Poisson counts; shared word effects. |
| Limits | Reference choice matters; unseen words lack scores; shared words pull raw scores inward. | Topics or roles may drive the scale; small standard errors do not establish validity. |
Both need checks against the texts and independent evidence.
Reference: Laver et al. (2003), Slapin & Proksch (2008), Lowe & Benoit (2013). Benoit (2018), pp. 18–20, 37–45, 59.
| Aspect | Wordscores | Wordfish |
|---|---|---|
| Strength | Scores new texts using reference positions. | Estimates positions without supplied position scores. |
| Assumptions | Trusted reference positions; comparable language; shared word–position links. | One common dimension; conditionally independent Poisson counts; shared word effects. |
| Limits | Reference choice matters; unseen words lack scores; shared words pull raw scores inward. | Topics or roles may drive the scale; small standard errors do not establish validity. |
Both need checks against the texts and independent evidence.
Reference: Laver et al. (2003), Slapin & Proksch (2008), Lowe & Benoit (2013). Benoit (2018), pp. 18–20, 37–45, 59.
Study 6
Will Lowe and Kenneth Benoit
Political Analysis, 2013 · publisher page shown
Lowe & Benoit (2013), Political Analysis, §3. Image: publisher page (user-provided screenshot).
Figure 3 · red arrows identify Sinn Féin
Study 6
Lowe & Benoit (2013), Political Analysis, §§5–6. Figure 3 in the author manuscript, p. 32. Dimensionality background: Benoit (2018), p. 63.
Figure 3 · Sinn Féin and the gray agreement line
Study 6
Lowe & Benoit (2013), Political Analysis, §§5–6. Figure 3 in the author manuscript, p. 32. Dimensionality background: Benoit (2018), p. 63.
Study 6 · Reading exercise
Text A
We have sought to do all of this in a manner that is fair and that protects the most vulnerable.
Text B
This is a jobless and a joyless budget.
Discuss: which passage supports the budget? What else would you read before assigning a position?
Verbatim excerpts from quanteda.textmodels::data_corpus_irishbudget2010. Speaker identities follow on the next slide. Corpus documentation. Related reading example: Benoit (2018), pp. 64–66.
Study 6 · Reading exercise
We have sought to do all of this in a manner that is fair and that protects the most vulnerable.
Brian Lenihan (supports the budget) · Fianna Fáil · Minister for Finance
This is a jobless and a joyless budget.
Richard Bruton (opposes the budget) · Fine Gael · opposition finance spokesperson
Interpretation: budget support, policy preferences and government responsibility can overlap in these speeches.
Study 6 · Lecture example
Benoit’s fuller-speech example: Green Party leader and government minister.
“As leader of the Green Party …”
The speaker sets out his party’s budget position.
“I will now comment on some specific aspects of my Department’s Estimate.”
The speaker turns to departmental business.
Discuss: which passages belong in a measure of budget support?
Benoit (2018), pp. 64–66; short excerpts from p. 65. The lecture’s text scope differs from our classroom corpus.
Study 6 · Lecture example
Target: support for or opposition to the budget.
Decide from the content of each passage.
Reference: Benoit (2018), pp. 64–66.
Situation: legislators speak about different issues in different debates.
Target: a common summary of expressed positions across debates.
Lauderdale & Herzog (2016), Political Analysis, §§2–3. Lecture context: Benoit (2018), pp. 47–49.
Situation: legislators speak about different issues in different debates.
Target: a common summary of expressed positions across debates.
Lauderdale & Herzog (2016), Political Analysis, §§2–3. Lecture context: Benoit (2018), pp. 47–49.
Situation: legislators speak about different issues in different debates.
Target: a common summary of expressed positions across debates.
Lauderdale & Herzog (2016), Political Analysis, §§2–3. Lecture context: Benoit (2018), pp. 47–49.
Situation: legislators speak about different issues in different debates.
Target: a common summary of expressed positions across debates.
Lauderdale & Herzog (2016), Political Analysis, §§2–3. Lecture context: Benoit (2018), pp. 47–49.
Situation: legislators speak about different issues in different debates.
Target: a common summary of expressed positions across debates.
Lauderdale & Herzog (2016), Political Analysis, §§2–3. Lecture context: Benoit (2018), pp. 47–49.
Course schematic · A, B and C are speakers who recur across debates.
One Wordfish fit per debate; shared speakers link the results.
Lauderdale & Herzog (2016), Political Analysis, p. 374 n. 1 (name), pp. 377–378 (two stages). Course diagram; fish illustration generated with OpenAI.
The common scale summarizes positions expressed in the debates legislators joined.
Lauderdale & Herzog (2016), Political Analysis, §§2–3 and 6. The second-stage model treats missing debate positions as missing at random. Lecture context: Benoit (2018), pp. 47–49.
The common scale summarizes positions expressed in the debates legislators joined.
Lauderdale & Herzog (2016), Political Analysis, §§2–3 and 6. The second-stage model treats missing debate positions as missing at random. Lecture context: Benoit (2018), pp. 47–49.
The common scale summarizes positions expressed in the debates legislators joined.
Lauderdale & Herzog (2016), Political Analysis, §§2–3 and 6. The second-stage model treats missing debate positions as missing at random. Lecture context: Benoit (2018), pp. 47–49.
The common scale summarizes positions expressed in the debates legislators joined.
Lauderdale & Herzog (2016), Political Analysis, §§2–3 and 6. The second-stage model treats missing debate positions as missing at random. Lecture context: Benoit (2018), pp. 47–49.
The common scale summarizes positions expressed in the debates legislators joined.
Lauderdale & Herzog (2016), Political Analysis, §§2–3 and 6. The second-stage model treats missing debate positions as missing at random. Lecture context: Benoit (2018), pp. 47–49.
Study 3
Benjamin E. Lauderdale and Alexander Herzog
Political Analysis, 2016
Lauderdale & Herzog (2016), “Measuring Political Positions from Legislative Speech”, §§3–5. Lecture example: Benoit (2018), pp. 47–50.
Study 3
Figure 1 · panels a and b
Lauderdale & Herzog (2016), Political Analysis, Figure 1(a–b), advance article p. 8. Original panels cropped from the full figure. Lecture example: Benoit (2018), p. 50.
Study 3
Figure 1 · panels a and b
Lauderdale & Herzog (2016), Political Analysis, Figure 1(a–b), advance article p. 8. Original panels cropped from the full figure. Lecture example: Benoit (2018), p. 50.
Study 3
Figure 1 · panels a and b
Lauderdale & Herzog (2016), Political Analysis, Figure 1(a–b), advance article p. 8. Original panels cropped from the full figure. Lecture example: Benoit (2018), p. 50.
Study 3 · 30th Dáil
Figure 2 · individual legislators · panels a–d · red overlays
Individual legislators
r is the correlation with coalition status.
Lauderdale & Herzog (2016), Political Analysis, Figure 2, p. 382; interpretation, p. 383. Screenshot supplied by the instructor.
Study 3 · 30th Dáil
Figure 2 · individual legislators · panels a–d · red overlays
Individual legislators
r is the correlation with coalition status.
Lauderdale & Herzog (2016), Political Analysis, Figure 2, p. 382; interpretation, p. 383. Screenshot supplied by the instructor.
Study 3
| Speaker | Budget | Health | Foreign policy |
|---|---|---|---|
| A | Speaks | Speaks | — |
| B | Speaks | — | Speaks |
| C | — | Speaks | Speaks |
Teaching example: shared speakers link different debates.
A single budget debate provides no cross-debate structure. A disconnected set of speakers requires additional identifying information.
Situation: we can name a concept’s poles but have few labelled documents.
Hostility (+1): enemy, foe, hostile.
Friendliness (−1): ally, friend, peaceful.
Watanabe (2021), “Latent Semantic Scaling”. Seed examples from Trubowitz & Watanabe (2021), ISQ. Plural forms and other seeds omitted here.
Discuss: could a negative news story describe an ally sympathetically?
Watanabe (2021), CMM. LSX: seed selection and target-specific example. Discussion is a course application.
Study 4
Peter Trubowitz and Kohei Watanabe
International Studies Quarterly, 2021
Trubowitz & Watanabe (2021), “The Geopolitical Threat Index”. LSS method: Watanabe (2021). Image: published advance article from LSE Research Online.
Study 4
Figure 2 · learned word polarity
Trubowitz & Watanabe (2021), ISQ, Figure 2 and “Geopolitical Threat Index.” GTI is a proportion, distinct from a mean polarity score.
Study 4
Figure 2 · learned word polarity
Trubowitz & Watanabe (2021), ISQ, Figure 2 and “Geopolitical Threat Index.” GTI is a proportion, distinct from a mean polarity score.
Study 4
Figure 2 · learned word polarity
Trubowitz & Watanabe (2021), ISQ, Figure 2 and “Geopolitical Threat Index.” GTI is a proportion, distinct from a mean polarity score.
Study 4
Figure 4 · aggregate hostile-story proportions
Check the same unit your claim is about.
Reference: Trubowitz & Watanabe (2021), ISQ, Fig. 4; fn. 18.
Study 4
Figure 4 · aggregate hostile-story proportions
Check the same unit your claim is about.
Reference: Trubowitz & Watanabe (2021), ISQ, Fig. 4; fn. 18.
Study 4
Figure 4 · aggregate hostile-story proportions
Check the same unit your claim is about.
Reference: Trubowitz & Watanabe (2021), ISQ, Fig. 4; fn. 18.
Studies 1–4
| Method | Guidance supplied | Structure | Main output |
|---|---|---|---|
| Wordscores | Reference document scores | Comparable reference and new texts | New document positions |
| Wordfish | No position labels | One count matrix | Relative document positions |
| Wordshoal | No position labels | Speakers across debates | Common speaker positions |
| LSS | Seed words and polarity | Corpus semantic relationships | Word and document polarity |
Next: connect speakers across debates with Wordshoal.
Laver et al. (2003) · Slapin & Proksch (2008) · Lauderdale & Herzog (2016) · Watanabe (2021). Lecture context: Benoit (2018), pp. 4, 34–35, 47–49.
First stage: estimate a Wordfish position zᵢⱼ within each debate j.
| Quantity | Meaning |
|---|---|
| θᵢ | Speaker’s common position |
| bⱼ | Direction and strength of a debate’s connection |
| Missing zᵢⱼ | The legislator did not speak in that debate |
Debate scales can connect with different signs and strengths.
First stage: estimate a Wordfish position zᵢⱼ within each debate j.
| Quantity | Meaning |
|---|---|
| θᵢ | Speaker’s common position |
| bⱼ | Direction and strength of a debate’s connection |
| Missing zᵢⱼ | The legislator did not speak in that debate |
Debate scales can connect with different signs and strengths.
First stage: estimate a Wordfish position zᵢⱼ within each debate j.
| Quantity | Meaning |
|---|---|
| θᵢ | Speaker’s common position |
| bⱼ | Direction and strength of a debate’s connection |
| Missing zᵢⱼ | The legislator did not speak in that debate |
Debate scales can connect with different signs and strengths.
Constructed example: two debates encode the same ordering with opposite signs.
| Speaker | Debate A position | Debate B position | Naive average |
|---|---|---|---|
| A | −1 | +1 | 0 |
| B | 0 | 0 | 0 |
| C | +1 | −1 | 0 |
A common model must align debate locations, scales and directions before interpreting shared positions.
Discuss: why does a negative debate loading not necessarily indicate an absence of common structure?
Benoit (2018), pp. 47–49; Lauderdale & Herzog (2016). This is not output from a Wordshoal fit.
| Step | Information used |
|---|---|
| Define poles | Concept-specific seed words and polarity |
| Estimate semantic relationships | Word co-occurrence, typically across sentences |
| Score words | Similarity to the seed words in a reduced semantic space |
| Score documents | Frequency-weighted average of word scores |
Units matter: sentence-level learning can support article-level scoring and later country-year aggregation.
Watanabe (2021), CMM. LSX workflow and grouping. Country-year aggregation refers to the GTI application. Vector background: Benoit (2018), pp. 68–69.
| Step | Information used |
|---|---|
| Define poles | Concept-specific seed words and polarity |
| Estimate semantic relationships | Word co-occurrence, typically across sentences |
| Score words | Similarity to the seed words in a reduced semantic space |
| Score documents | Frequency-weighted average of word scores |
Units matter: sentence-level learning can support article-level scoring and later country-year aggregation.
Watanabe (2021), CMM. LSX workflow and grouping. Country-year aggregation refers to the GTI application. Vector background: Benoit (2018), pp. 68–69.
| Step | Information used |
|---|---|
| Define poles | Concept-specific seed words and polarity |
| Estimate semantic relationships | Word co-occurrence, typically across sentences |
| Score words | Similarity to the seed words in a reduced semantic space |
| Score documents | Frequency-weighted average of word scores |
Units matter: sentence-level learning can support article-level scoring and later country-year aggregation.
Watanabe (2021), CMM. LSX workflow and grouping. Country-year aggregation refers to the GTI application. Vector background: Benoit (2018), pp. 68–69.
| Step | Information used |
|---|---|
| Define poles | Concept-specific seed words and polarity |
| Estimate semantic relationships | Word co-occurrence, typically across sentences |
| Score words | Similarity to the seed words in a reduced semantic space |
| Score documents | Frequency-weighted average of word scores |
Units matter: sentence-level learning can support article-level scoring and later country-year aggregation.
Watanabe (2021), CMM. LSX workflow and grouping. Country-year aggregation refers to the GTI application. Vector background: Benoit (2018), pp. 68–69.
| Step | Information used |
|---|---|
| Define poles | Concept-specific seed words and polarity |
| Estimate semantic relationships | Word co-occurrence, typically across sentences |
| Score words | Similarity to the seed words in a reduced semantic space |
| Score documents | Frequency-weighted average of word scores |
Units matter: sentence-level learning can support article-level scoring and later country-year aggregation.
Watanabe (2021), CMM. LSX workflow and grouping. Country-year aggregation refers to the GTI application. Vector background: Benoit (2018), pp. 68–69.
Use singular value decomposition (SVD) to reduce sentence–word counts to k dimensions.
| Quantity | Meaning |
|---|---|
| vⱼ | Word vector learned from sentence contexts |
| pₛ | Researcher-assigned polarity of seed s, such as −1 or +1 |
| gⱼ | Word polarity: similarity weighted by the seed polarities |
Document scores then average word polarities using token frequencies.
Watanabe (2021), “Latent Semantic Scaling,” Eqs. 1–2. Representation background: Benoit (2018), pp. 54, 68–69.
| Question | W6 classification practice | W7 scaling |
|---|---|---|
| What is evaluated? | Predicted categories | Positions on a stated dimension |
| What is the evidence? | Reserved human labels; F1 | External measures; rank agreement |
| What do we read? | Errors and coding boundaries | Surprising positions and their language |
Hjorth et al. test convergence across measures. This differs from k-fold cross-validation.
Next: do Wordscores and Wordfish agree with external measures of party positions?
Course synthesis connecting W6, Hjorth et al. (2015) and Lowe & Benoit (2013). Validation framework: Benoit (2018), p. 59.
Study 5
Frederik Hjorth, Robert Klemmensen, Sara Hobolt, Martin Ejnar Hansen and Peter Kurrild-Klitgaard
Research & Politics, 2015
Hjorth et al. (2015), “Computers, Coders, and Voters”, pp. 1–2. Original article heading, CC BY-NC 3.0.
Study 5
| Country | Elections | Manifestos | Mean words |
|---|---|---|---|
| Denmark, 1945–2007 | 24 | 212 | 1,232 |
| Germany, 1980–2009 | 9 | 42 | 10,306 |
Assumption to examine: do these benchmarks address the same political dimension?
Hjorth et al. (2015), pp. 2–4 and Table 1. Mean word counts rounded. CMP = Comparative Manifesto Project.
Study 5
Original Table 3: mean Spearman rank correlations across elections.
| Country | Method | CMP | Experts | Voters |
|---|---|---|---|---|
| Denmark | Wordscores | 0.7 | 0.8 | 0.8 |
| Denmark | Wordfish | 0.2 | 0.2 | 0.1 |
| Germany | Wordscores | 0.8 | 0.8 | 0.8 |
| Germany | Wordfish | 0.8 | 0.7 | 0.7 |
Rank agreement supports an ordering; it does not establish meaningful distances.
Discuss: why might Wordfish agree with the benchmarks in one country more than the other?
Hjorth et al. (2015), Table 3, p. 7. Published correlations transcribed; estimation times omitted. These are not classification accuracies.
Study 5
| Explanation | What the authors report |
|---|---|
| Text length: checked | Randomly shorten German manifestos to a Danish-like average. About half of Germany’s Wordfish advantage disappears. |
| Political vocabulary: inferred | Shortened German texts still do better. The authors link the remaining advantage to more ideologically polarized language. |
Evidence limit: this is the authors’ rough attribution. Vocabulary was not separately tested.
Hjorth et al. (2015), “Difference in cross-validity,” p. 4, and discussion, pp. 5–6. Approximate attribution on p. 4. Detailed shortening results are in the authors’ online appendix.
| Evidence | What it does | What it leaves to check |
|---|---|---|
| Wordscores references | Define the learned scale | Performance on other texts |
Wordfish dir |
Choose an orientation | Meaning of the dimension |
| LSS seeds | Specify a semantic direction | Concept and target in context |
| Independent judgments | Check an intended interpretation | Agreement, coverage and scope |
Party separation and agreement between models provide partial evidence.
Course synthesis of Lowe & Benoit (2013) and the model documentation. Judgments used to tune a measure should be separated from its final evaluation. Validation framework: Benoit (2018), p. 59.
Sensitivity: replace references or seeds, change the text scope, and compare reasonable preprocessing choices.
Uncertainty: distinguish model intervals, human disagreement and variation across specifications.
Evaluation: reserve judgments that did not guide those choices.
Discuss: which choice would you vary first, and what evidence would you reserve?
Lowe & Benoit (2013), uncertainty and model assumptions. Watanabe, seed-word evaluation. Evaluation design is a course synthesis. Lecture context: Benoit (2018), pp. 60–66.
Research title and abstract: due October 23, 2026, before 23:59.
Course schedule. Deadline follows the W6 announcement. Validation questions synthesize the W7 research cases. Validation framework: Benoit (2018), p. 59.
| Task | Package | Main interface |
|---|---|---|
| Prepare texts and counts | quanteda |
Corpus, tokens and DFM |
| Reference-based scaling | quanteda.textmodels |
textmodel_wordscores() |
| Latent count scaling | quanteda.textmodels |
textmodel_wordfish() |
| Plot estimated positions | quanteda.textplots |
textplot_scale1d() |
| Cross-debate scaling | wordshoal |
textmodel_wordshoal() |
| Semantic scaling | LSX |
textmodel_lss() |
R practice: Wordscores and Wordfish on one budget debate.
quanteda · quanteda.textmodels · wordshoal · LSX.
Copy and run S01.
# S01: Packages and the built-in corpus
# install.packages(c("quanteda", "quanteda.textmodels",
# "quanteda.textplots"))
library(quanteda)
library(quanteda.textmodels)
library(quanteda.textplots)
quanteda_options(threads = 1)
options(width = 72, digits = 4)
corp_irish <- data_corpus_irishbudget2010
c(quanteda = as.character(packageVersion("quanteda")),
textmodels = as.character(packageVersion("quanteda.textmodels")),
textplots = as.character(packageVersion("quanteda.textplots")))
ndoc(corp_irish)The corpus is included in quanteda.textmodels. Keep this R session open for all later steps.
R console output
quanteda textmodels textplots
"4.3.1" "0.9.10" "0.96.1"
[1] 14
Explanation
[1] marks the first printed value; 14 is the document count.Copy and run S02a.
Each row is one speech. The stable IDs keep texts, references and model results aligned.
R console output
doc_id speaker party
ie_01 Lenihan FF
ie_02 Bruton FG
ie_03 Burton LAB
ie_04 Morgan SF
ie_05 Cowen FF
ie_06 Kenny FG
ie_07 ODonnell FG
ie_08 Gilmore LAB
ie_09 Higgins LAB
ie_10 Quinn LAB
ie_11 Gormley Green
ie_12 Ryan Green
ie_13 Cuffe Green
ie_14 OCaolain SF
Explanation
speaker and party describe the speeches; neither model uses the party column to fit positions.Copy and run S02b.
Remove punctuation, symbols and numbers, then lowercase the working tokens. Keep the original corpus for reading.
R console output
[1] "when" "i" "presented" "the"
[5] "supplementary" "budget" "to" "this"
[9] "house" "last" "april" "i"
Explanation
[1], [5], and [9] mark token positions, not frequencies.Copy and run S02c.
Both methods start from these token counts. No TF-IDF weighting is applied.
R console output
[1] 14 4885
[1] FALSE
the to of and in a
3598 1633 1537 1359 1231 1013
Explanation
14 4885 reflects fourteen speeches and their combined vocabulary; cells count word occurrences.FALSE confirms cleaning left words in every speech.the remains common: 3,598 occurrences alone do not distinguish political positions.Copy and run S03.
# S03: Define the Wordscores references
ref_scores <- rep(NA_real_, ndoc(counts))
names(ref_scores) <- docnames(counts)
ref_ids <- c("ie_01", "ie_02")
ref_scores[ref_ids] <- c(1, -1)
print(data.frame(speaker = meta$speaker[match(ref_ids, meta$doc_id)],
reference = ref_scores[ref_ids]), row.names = FALSE)Assign +1 to Lenihan and −1 to Bruton for budget support. Leave the other twelve positions unknown.
R console output
speaker reference
Lenihan 1
Bruton -1
Explanation
+1 because he defends the budget, and Bruton −1 because he criticizes it.NA because we have not supplied them.Copy and run S04a.
With smooth = 0, words must occur in the reference vocabulary to receive a score.
R console output
word score
budget -0.384
government 0.140
tax 0.665
jobs 0.379
fair -0.229
recovery 0.403
Explanation
tax scores +0.665 because it is proportionally more frequent in Lenihan’s positive reference.fair scores −0.229 because it is proportionally more frequent in Bruton’s negative reference.Copy and run S04b.
Match the DFM to words scored by the references. Coverage is the share of each speech’s processed tokens that remain.
R console output
[1] 14 2131
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.836 0.850 0.874 0.886 0.887 1.000
Explanation
Copy and run S04c.
# S04c: Predict raw Wordscores for every speech
ws_pred <- predict(ws, newdata = ws_counts, rescaling = "none")
results <- meta
results$reference <- ref_scores
results$ws_raw <- as.numeric(ws_pred)
results$coverage <- ws_coverage
print(data.frame(speaker = results$speaker, party = results$party,
reference = results$reference,
ws_raw = round(results$ws_raw, 3)), row.names = FALSE)The reference column records assigned inputs. ws_raw records predictions, including reference-text rescoring.
R console output
speaker party reference ws_raw
Lenihan FF 1 0.339
Bruton FG -1 -0.339
Burton LAB NA -0.001
Morgan SF NA 0.023
Cowen FF NA 0.180
Kenny FG NA -0.020
ODonnell FG NA -0.029
Gilmore LAB NA -0.012
Higgins LAB NA -0.040
Quinn LAB NA -0.023
Gormley Green NA 0.159
Ryan Green NA -0.012
Cuffe Green NA 0.003
OCaolain SF NA 0.026
Explanation
+1 and −1 teach word scores; rescoring averages those scores, yielding Lenihan +0.339 and Bruton −0.339.NA marks twelve speeches whose reference positions were not supplied; ws_raw contains their predictions.Copy and run S04d.
# S04d: Plot raw Wordscores with model-based intervals
ws_plot <- predict(ws, newdata = ws_counts,
se.fit = TRUE, rescaling = "none")
ws_labels <- paste0(meta$speaker,
ifelse(is.na(ref_scores), "", " [reference]"))
textplot_scale1d(ws_plot, doclabels = ws_labels, sort = TRUE) +
ggplot2::labs(x = NULL, y = "Raw Wordscores") +
ggplot2::theme_minimal(base_size = 24)Plot all fourteen raw predictions. The two reference speeches are labelled; their dots are rescored values, not assigned endpoints.
W7 run: Irish 2010 budget corpus (quanteda.textmodels). Lab HTML · Lab ZIP. Plot: quanteda example. Concepts: Benoit (2018), pp. 14–15.
Explanation
+0.339 and −0.339 show rescored word averages, rather than assigned endpoints.W7 run: Irish 2010 budget corpus (quanteda.textmodels). Lab HTML · Lab ZIP. Plot: quanteda example. Concepts: Benoit (2018), pp. 14–15.
Copy and run S05a.
Estimate all positions jointly. dir asks for Bruton below Lenihan, using document indices found from stable IDs.
R console output
speaker theta
1 Bruton -0.585
2 Lenihan 1.775
Explanation
dir chooses that ordering.Copy and run S05b.
theta gives relative positions. se reports uncertainty under this fitted model and its assumptions.
R console output
speaker party theta se
Lenihan FF 1.775 0.021
Bruton FG -0.585 0.029
Burton LAB -1.150 0.016
Morgan SF -0.093 0.029
Cowen FF 1.794 0.024
Kenny FG -0.789 0.026
ODonnell FG -0.493 0.044
Gilmore LAB -0.587 0.030
Higgins LAB -0.979 0.041
Quinn LAB -0.921 0.042
Gormley Green 1.122 0.075
Ryan Green 0.212 0.065
Cuffe Green 0.793 0.073
OCaolain SF -0.098 0.039
Explanation
theta = −1.150 and se = 0.016; Gormley’s se = 0.075 is larger.Copy and run S05c.
beta links word use to position. psi represents the word’s baseline frequency.
R console output
word beta psi
budget 0.042 2.711
government 0.173 2.612
tax 0.396 2.194
jobs 0.505 1.842
fair 0.191 0.860
recovery 0.358 0.897
Explanation
psi (2.711) describes baseline commonness; its small beta (0.042) means little change along theta.beta (0.505) gives stronger log expected-count change per theta unit, with other effects fixed.psi is not raw frequency; positive beta is not positive sentiment.Copy and run S05d.
Plot the fourteen estimated positions before comparing models. The horizontal bars use the fitted model standard errors.
W7 run: Irish 2010 budget corpus (quanteda.textmodels). Lab HTML · Lab ZIP. Plot: quanteda example. Concepts: Benoit (2018), pp. 59–61.
Explanation
theta ± 1.96 × se; smaller standard errors produce narrower intervals.W7 run: Irish 2010 budget corpus (quanteda.textmodels). Lab HTML · Lab ZIP. Plot: quanteda example. Concepts: Benoit (2018), pp. 59–61.
Copy and run S06a.
# S06a: Compare rankings among the twelve new texts
comparison <- results[is.na(results$reference), ]
comparison$ws_rank <- rank(comparison$ws_raw)
comparison$wf_rank <- rank(comparison$wf_theta)
comparison$gap <- abs(comparison$ws_rank - comparison$wf_rank)
comparison <- comparison[order(-comparison$gap, comparison$doc_id), ]
round(cor(comparison$ws_raw, comparison$wf_theta,
method = "spearman"), 3)
print(head(comparison[c("speaker", "ws_rank", "wf_rank", "gap")], 6),
row.names = FALSE)Exclude both Wordscores references. Rank 1 is the lower end of each scale, after fixing a common orientation.
R console output
[1] 0.734
speaker ws_rank wf_rank gap
Burton 7 1 6
ODonnell 2 6 4
Ryan 6 9 3
OCaolain 10 7 3
Cuffe 8 10 2
Morgan 9 8 1
Explanation
ws_rank = 7 and wf_rank = 1 give Burton an absolute gap = 6; rank 1 means lower.Copy and run S06b.
# S06b: Plot the new texts on both scales
plot(comparison$ws_raw, comparison$wf_theta,
type = "n", xlim = c(-0.08, 0.24),
xlab = "Wordscores (raw)", ylab = "Wordfish (theta)")
abline(h = 0, v = 0, col = "grey45", lty = 2, lwd = 1.8)
points(comparison$ws_raw, comparison$wf_theta,
pch = 19, col = "#0271bb")
text(comparison$ws_raw[1:3], comparison$wf_theta[1:3],
labels = comparison$speaker[1:3], pos = 4, cex = 0.85)Each point is one of the twelve new texts. Labels identify the three largest ranking disagreements.
Explanation
Copy and run S07a.
# S07a: Identify and read the largest ranking disagreement
read_id <- comparison$doc_id[1]
print(comparison[1, c("doc_id", "speaker", "ws_rank", "wf_rank")],
row.names = FALSE)
read_sentences <- as.character(corpus_reshape(
corp_irish[read_id], to = "sentences"))
cat(strwrap(read_sentences[1], width = 66), sep = "\n")Use the largest ranking gap to select a speech, then return to its original wording.
R console output
doc_id speaker ws_rank wf_rank
ie_03 Burton 7 1
The other day, Goldman Sachs circulated a note about the Irish
budget which referred to the remarkable degree of consensus in
Ireland about the necessity for budget adjustments.
Explanation
Copy and run S07b.
Read sentences 5–7 in Burton’s speech. The original corpus preserves their punctuation and wording.
R console output
One could never have imagined one's party giving such an
advantageous start to any Government. This could have been a
consensus budget as it was a classic "all jump together" moment,
an opportunity for burden sharing by everyone but the Minister
blew it. The budget is straight out of the Leona Helmsley school
of thought in which burden sharing, like taxation, is only for
the little people.
Explanation
consensus budget is something Burton says the Minister failed to achieve; she criticizes burden sharing.Copy and run S08a.
# S08a: Replace the positive reference and refit Wordscores
ref_alt <- ref_scores
ref_alt[c("ie_01", "ie_05")] <- c(NA, 1)
ws_alt <- textmodel_wordscores(counts, y = ref_alt, smooth = 0)
ws_alt_counts <- dfm_match(counts, features = names(coef(ws_alt)))
ws_alt_pred <- predict(ws_alt, newdata = ws_alt_counts,
rescaling = "none")
print(data.frame(speaker = meta$speaker[!is.na(ref_alt)],
reference = ref_alt[!is.na(ref_alt)]), row.names = FALSE)Replace Lenihan with Cowen at +1. Keep Bruton at −1 and use the same preprocessing and raw scoring rule.
R console output
speaker reference
Bruton -1
Cowen 1
Explanation
reference lists assigned inputs: Cowen +1 replaces Lenihan +1; Bruton −1 stays.Copy and run S08b.
# S08b: Compare ranks within the same eleven new texts
common_new <- is.na(ref_scores) & is.na(ref_alt)
sensitivity <- meta[common_new, c("doc_id", "speaker")]
sensitivity$before <- rank(ws_pred[common_new])
sensitivity$after <- rank(ws_alt_pred[common_new])
sensitivity$change <- sensitivity$after - sensitivity$before
print(sensitivity[c("speaker", "before", "after", "change")],
row.names = FALSE)Recalculate both rankings within the same eleven texts. Exclude Lenihan, Bruton and Cowen from this comparison.
R console output
speaker before after change
Burton 7 5 -2
Morgan 9 8 -1
Kenny 4 2 -2
ODonnell 2 4 2
Gilmore 5 6 1
Higgins 1 1 0
Quinn 3 3 0
Gormley 11 11 0
Ryan 6 9 3
Cuffe 8 10 2
OCaolain 10 7 -3
Explanation
change = after − before, with both rankings recalculated among the same eleven speeches.| Decision | What to report |
|---|---|
| Corpus and representation | Debate, speakers, preprocessing and counts |
| Wordscores | Reference texts, assigned values, coverage and raw/rescaled scores |
| Wordfish | Direction, model settings and the interpretation of theta |
| Assessment | Ranking disagreements, passages read and sensitivity |
Return to Lowe & Benoit: what independent reader judgments would test our budget-support interpretation?
Benoit, Kenneth. 2018. Scaling Text. Quants 3: Quantitative Text Analysis, Trinity College Dublin, March 23. Lecture reference for the concept walkthrough, pp. 3–27, 34–50, 54–55, 59–70.
Laver, Michael, and Kenneth Benoit. 2002. “Locating TDs in Policy Spaces: Wordscoring Dáil Speeches.” Irish Political Studies 17(1): 59–73. DOI.
Laver, Michael, Kenneth Benoit, and John Garry. 2003. “Extracting Policy Positions from Political Texts Using Words as Data.” American Political Science Review 97(2): 311–331. DOI.
Slapin, Jonathan B., and Sven-Oliver Proksch. 2008. “A Scaling Model for Estimating Time-Series Party Positions from Texts.” American Journal of Political Science 52(3): 705–722. DOI.
Lauderdale, Benjamin E., and Alexander Herzog. 2016. “Measuring Political Positions from Legislative Speech.” Political Analysis 24(3): 374–394. DOI.
Hjorth, Frederik, Robert Klemmensen, Sara Hobolt, Martin Ejnar Hansen, and Peter Kurrild-Klitgaard. 2015. “Computers, Coders, and Voters: Comparing Automated Methods for Estimating Party Positions.” Research & Politics 2(2): 1–9. DOI.
Lowe, Will, and Kenneth Benoit. 2013. “Validating Estimates of Latent Traits from Textual Data Using Human Judgment as a Benchmark.” Political Analysis 21(3): 298–313. DOI.
Watanabe, Kohei. 2021. “Latent Semantic Scaling: A Semisupervised Text Analysis Technique for New Domains and Languages.” Communication Methods and Measures 15(2): 81–102. DOI.
Trubowitz, Peter, and Kohei Watanabe. 2021. “The Geopolitical Threat Index: A Text-Based Computational Approach to Identifying Foreign Threats.” International Studies Quarterly 65(3): 852–865. DOI.
Article images reproduce the original research evidence. The participation table and numerical Wordscores example are teaching illustrations. Speech excerpts retain their original wording.
Benoit lecture: PDF · Page guide.