Wordfish

Measurement
Introduced by
Jonathan Slapin, Svenja-Sophia Proksch
Year
2008
Type
Generative text model for dimension reduction
Family
Text Scaling

What does it do?

Wordfish is a statistical model for scaling documents on a single latent dimension, introduced by Slapin and Proksch (2008).

Unlike reference-based approaches such as Wordscores, it does not require reference texts with known positions; it estimates word-level and document-level parameters jointly from the word counts themselves. It was developed to estimate positions over time, such as the political positions of parties in successive manifestos.

The intuition behind the method

Wordfish treats the word counts in each document as random draws whose expected values depend on the document's position on a latent dimension. Each word has its own baseline frequency and its own sensitivity to position, so words whose frequencies shift strongly between documents at different positions carry more information about where those documents lie. Fitting the model to the whole corpus at once yields both a position for each document and a discrimination value for each word. Because no reference texts are needed, the dimension is recovered from the pattern of word use alone, and its orientation and origin must be interpreted afterwards.

History

Slapin and Proksch (2008), in the Journal of Politics, presented Wordfish as a scaling algorithm for estimating policy positions from word frequencies in texts, with an application to German party manifestos for successive elections. The cited abstract describes the method as a means to estimate time-series party positions.

When to use it

Choose Wordfish when you need to place documents on one dimension without reference texts, for example when you want to track positions over time across a series of comparable documents such as successive party manifestos or legislative speeches. It is a poor choice when you have trusted reference documents with known positions and want a scale anchored to them, in which case a reference-based method is more direct. It also assumes that the documents share a broadly common vocabulary and concern the same underlying issue space, so it is unsuited to collections of heterogeneous texts or to very short documents, where word counts carry little information. If your research question requires more than one dimension, the standard model is not designed for that.

Limitations and considerations

  • One dimension: the standard model estimates a single latent dimension, so multi-dimensional structure requires a different specification.
  • Poisson assumption: word counts are modelled as Poisson, which may fit poorly for some texts, for example where counts vary more than a Poisson distribution allows (overdispersion). The cited abstract reports robustness to distributional assumptions in its German application, but this should be tested for the corpus at hand.
  • Estimation: because fitting is iterative, the solution can depend on starting values, and convergence should be verified.
  • Identification: the dimension is identified only up to reflection and a change of location and scale, so its direction and units must be set by the analyst.
  • Assumptions to test, not results from the cited work: one dominant latent dimension drives word use across the corpus; word counts are treated as conditionally independent given document position; and the vocabulary is comparable across documents. Very short documents provide little information, so their position estimates are unreliable.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Reference-free: positions are estimated from word use alone, so no subjective choice of anchor texts is needed.
  • Suited to time series: the model was developed to estimate party positions across successive periods from texts, as described in the cited 2008 abstract.
  • Word-level output: the discrimination values show which words contribute most to separating documents on the dimension, which allows the scale to be inspected.
  • Robustness checks: in the German party-manifesto application (1990-2005) reported in the cited abstract, the estimated positions were insensitive to distributional assumptions and to document selection. Results may differ for other corpora, so similar checks should be run on new data.

Applications

  • Party manifesto analysis: estimating the positions of parties from their manifestos, including across several elections.
  • Other political texts, such as speeches, provided the texts are comparable across documents and periods, as set out under limitations.
  • Tracking change over time: comparing estimated positions across successive periods to study shifts in the party system or policy emphasis.

How it works

How it works

1

Specify a Poisson model for the count of each word in each document. The expected count depends on a document-specific term, a word-specific baseline, and the product of a word-specific sensitivity with the document's position on the latent dimension. The document-specific term absorbs differences in overall word counts between documents.

2

Fit the model to the document-word count matrix so that the document positions and word parameters are estimated together. Fitting is iterative, so check that the estimates have stabilised: repeat the fit from several starting values and confirm that the solutions agree.

3

Use the estimated document positions as scores on the latent dimension. The direction and origin of this dimension are not fixed by the model, so orientation is set afterwards, for example by reading the words with the largest discrimination values or by anchoring the scale to documents whose positions are known from other evidence.

Common pitfalls

  • Skipping convergence checks: fitting from a single starting point can yield a solution that is not the best fit, so repeat the estimation from different starts and compare the results.
  • Reading discrimination as validity: a word with high discrimination separates documents on the estimated dimension, but this does not show that the dimension corresponds to the construct of interest. The cited abstract notes that words with strong political connotations tend to discriminate best, which may reflect topic rather than position.
  • Treating the scale as self-validating: without external reference documents or independent measures, the estimated dimension should be checked against expert judgement or other data before it is interpreted substantively.

Frequently asked questions

How does Wordfish differ from Wordscores?

Wordscores requires reference texts with known positions, whereas Wordfish estimates positions from the word counts alone. Wordfish is suited to unsupervised analysis and time-series comparisons, but it offers less external anchoring. Wordscores depends heavily on the choice and quality of its reference texts.

What do the word discrimination scores tell me?

A word's discrimination value indicates how strongly its frequency changes with document position on the estimated dimension. High values mean the word helps separate documents on that dimension. They do not guarantee that the dimension is meaningful, so the scale should be validated against external measures.

Can I orient the Wordfish dimension to known anchors?

Yes. After estimation, you can choose documents with known positions, such as manifestos of parties whose placement is established, and use them to set the direction and scale of the dimension. This changes only how the estimated scale is read and does not alter the model fit.

How does document length affect Wordfish estimates?

The model includes a document-specific term that absorbs differences in overall word counts, which helps with varying document lengths. Very short documents, however, provide little information, so their position estimates are unreliable and should be treated with caution.

Can Wordfish scale documents in different languages?

Only with caution. Documents in different languages can be scaled together if they share enough vocabulary or if dictionaries are aligned across languages. This assumes that words carry comparable meanings across languages, which is often unrealistic. Scaling each language separately and then aligning the results may be more reliable.

Related methods

Sources

  1. Slapin, J. B., & Proksch, S. O. (2008). A scaling model for estimating time-series party positions from texts. Journal of Politics, 70(3), 554-569.

    Open DOI reference
  2. Proksch, S. O., & Slapin, J. B. (2009). How to avoid pitfalls in statistical machine learning for social science. Political Analysis, 20(3), 343-357.

    Open publication reference
  3. Benoit, K., Muhr, D., & Spirling, A. (2016). Crowd-sourced text analysis: Reproducible and distributed production of political data. American Political Science Review, 110(2), 278-295.

    Open DOI reference