Historians and computer experts have joined forces to shed light on one of the 19th century's great social transformations-how Britain gave up coffee to become a nation of tea drinkers.
Researchers have used 'bespoke software' to trawl historic trade documents that provide insights into the changing habit, which was accelerated by a failure of the Ceylon coffee crop.
Experts used a software technique called text mining to pore over details of commodity movements between Britain and Ceylon, which became modern-day Sri Lanka.
More From This Section
Ceylon's plantations switched their focus to tea growing and coffee production moved east to Indonesia - which is why coffee is sometimes known as java.
Tea continued its rise as the hot drink of choice in British homes.
Although it was already known that the coffee rust outbreak impacted on British tastes, this new project enables researchers to build a clearer picture of how the process evolved.
The project is part of a wider initiative called Trading Consequences, which charts the commercial growth of the British Empire.
It details the economic and environmental impact of shipping valuable commodities such as building materials, tea, fruit and spices.
Sources included British and Canadian Government documents, newspapers from around the world, books and journals.
The project has been led by the University of Edinburgh in collaboration with the Universities of St Andrews and Saskatchewan and York University, Canada.
The two-year project forms part of Digging into Data, a wider initiative by Jisc, the UK's digital information body.
Dr Beatrice Alex, of the University of Edinburgh, said "It is essential that the mined data is accessible and usable. Our text mining work is combined with engaging visualisations, which really bring the data from the historical document collections to life."
Professor Aaron Quigley, of the University of St Andrews, said, "The ability to explore the text mined data in various visualisations allows scholars to think about their research and inquiries in new ways.