Digitising Roger Cooter's Biobibliography

History of Phrenology Research Environment


Digitising the George Combe Correspondence at the NLS

Last update: 05 November 2026
This page documents the methodologies and steps used to digitise and generate metadata from the George Combe correspondence, held at the National Library of Scotland. It is an active, human-written working document and will be updated as the project develops.

1. Image Capture and Post-Processing

Two parallel developments have influenced our decisions regarding the initial digitisation of the correspondence. 1) The quality of HTR and ATR is much less dependent on the quality of the originally scanned image. Context-based LLM data minimises the impact of Character Error Rates (CER) on Word Error Rates (WER). Furthermore, ATR systems are getting better at detecting document borders. 2) The quality of cameras in hand-held mobile phones has improved considerably. Therefore, the initial digitisation run was performed by photographing select volumes at the National Library of Scotland Special Collections Reading Rooms under the self-service photography guidelines using hand-held iPhone 16e camera with minimal immediate post-image processing.


Only page orientation and some page cropping was done on each image.  For a full volume of around 130-160 folio pages, this meant around 2 1/2 hours of work or photographing and simple post-processing. The resulting photographs, available in the viewer on this website are not perfect and contain bleed-throughs of text, skewed pages due to non-flat surfaces, underlying folios poking through and the occasional thumb. While this has an effect on the text recognition quality particularly for docket text, the overall recognition quality handles these issues surprisingly well. 

2. Text Recognition 

One aim of the project is to test the capabilities of Automated Text Recognition (ATR), in particular HTR (Handwritten Text Recognition) as a research tool for metadata extraction and historical analysis. A number of tools (e.g. Transkribus, generic LLM transcription, Leo) were evaluated for this step.

The most promising of these tools was the Leo ATR-1 LLM-assisted model, and a transcription run of half a dozen Combe volume was made possible through the generous donation of free transcription credits via the Leo Transcription Grant. The resulting transcription was saved as a TEI XML file, which contains markups for deletions and things like super-script. The ATR-1 model is designed for archival material, normally removing things like archival folio enumeration in pencil. Overall the model performed surprisingly well, but as the nest step shows, there are some areas of improvement needed. As with all parts of the project, each transcription is treated as modular and can be selected in the Combe correspondence viewer on the website.

3. Error Rates and Common Problems

In order to calculate the accuracy of the ATR transcription, a small tool was designed that allows a human reviewer to quickly correct erroneous words on a given folio page and save the resulting correction as an authoritative transcription against which to calculate Word Error Rate (WER) metrics, calculated by the standard formula of (Substitutions+Deletions+Insertions)/Total number of words and expressed as a percentage. For LLM-based ATR transcription this measure is more meaningful than the Character Recognition Rate (CER) used in OCR, because it accounts for the fact that LLM-assisted ATR is more likely to give a plausible erroneous word rather than a random character insert.

The initially calculated WER from three letters by two correspondents in NLS MS7216 was around 3% for the letter bodies (1225 words, 34 errors = WER 3.02%). This rate is comparable to full human transcription. However, the transcription is less reliable than this small sample suggests, for the following reasons:

- the ATR is generally less reliable for proper names and places
- consequently, the docket information which contains names and addresses was excluded from the sample letters. Including these increases the error rate to around 5% (1298 words, 70 errors = WER 5.3%) [e.g. MS7216 f4v. although some of the errors can be attributed to page skew]
- some letters are either particularly difficult to process: those with cross-hatch writing (although some cross-hatched writing does get recognised), contain shorthand, or were not processed by the Leo ATR for unknown reasons [e.g. MS7216 f73r. MS7215 f109r. MS7216 f115v.] In future iterations, these instances will be handled via separate processing


4. Indexing

To our knowledge, no full index of the Combe correspondence exists. The next step after the generation of the raw HTR data was therefore the creation of an index that first grouped the letters within each volume by folio and then extracted metadata such as correspondent name, date, place, etc. The structural separation of the continued run of letters within each volume provided difficult as a fully automated process, even when the LLM was given both the XML formatted transcription and the corresponding images as as a reduced version. A hybrid approach, where a human could quickly go through each volume to identify letter boundaries before automated metadata indexing could begin was therefore chosen and implemented via a short Python script


5. Full text search

A full text search was implemented by generating a SQLite FTS5 full-text search database from the XML transcriptions. The search database is time-stamped and on the website only the most recent search database is used.