Back to News
Behind the Guardian’s analysis of 100 years of MPs’ language on immigration
Technology•February 25, 2026 at 8:00 AMNational

Behind the Guardian’s analysis of 100 years of MPs’ language on immigration

By Carmen Aguilar García, Anna Vissens, Alice Thornewill von Essen, Tom Ravalde and Pamela Duncan•The Guardian - UK News

Methodology: how we trained a machine learning model to analyse rhetoric on immigration in the UK parliament over the course of a centuryThe Guardian has revealed a significant rightward shift toward sentiment relating to immigration among MPs speaking in the House of Commons in the past five years. To do this analysis the Guardian’s Data Science and Data Projects teams, in collaboration with University College London, developed an in-house machine learning model to measure linguistic sentiment in debates in the Commons over the course of a century.Unlike off-the-shelf sentiment models, the Guardian’s version distinguishes sentiment directed specifically at immigration from general emotionally charged language about any topic. Continue reading...

Methodology: how we trained a machine learning model to analyse rhetoric on immigration in the UK parliament over the course of a century

The Guardian has revealed a significant rightward shift toward sentiment relating to immigration among MPs speaking in the House of Commons in the past five years.

To do this analysis the Guardian’s Data Science and Data Projects teams, in collaboration with University College London, developed an in-house machine learning model to measure linguistic sentiment in debates in the Commons over the course of a century.

Unlike off-the-shelf sentiment models, the Guardian’s version distinguishes sentiment directed specifically at immigration from general emotionally charged language about any topic.

Continue reading...

More From These Categories

Technology

View All

No other articles in this category yet.