The Analytical Engine

Squaring the Bishop


Chapter XVIII of Charles Babbage's 1864 autobiography Passages from the Life of a Philosopher is consecrated to a topic which many present-day computer people find equally fascinating—picking locks and deciphering encrypted messages. Babbage concludes the chapter with a discussion of a word puzzle called “squaring words”. For example, to square the word “dean”, we write the word vertically and horizontally:

d e a n
e . . .
a . . .
n . . .

The goal is to find English words to fill in the empty spaces so that the resulting grid reads the same across and down, for example:

d e a n
e a s e
a s k s
n e s t

Babbage then observes,

The various ranks of the church are easily squared; but it is stated, I know not on what authority, that no one has yet succeeded in squaring the word bishop.

Who can resist such a challenge?

Tall vertical brass bar with screws Tall vertical brass bar with screws
Spoiler warning! The balance of this document presents a contemporary computer-based attempt to solve Babbage's puzzle. If you'd like to have a go at solving it yourself, don't read further until you've made your own attempt. Otherwise, scroll down pass the “spoiler guard” bars to see the results.


Armed with the product of 130 years of technological evolution of Babbage's Analytical Engine and an on-line spelling checker dictionary of more than a quarter million words, it's a lot easier to attack a puzzle like this than in Babbage's day. I wrote a small C program to search for solutions, tested it on “dean”, and then set it to work on “bishop”. In a minute or so, it printed a list of ways to square “bishop”—more than two thousand different ways, as a matter of fact.

The spelling dictionary I used includes proper names and many obsolete and/or extremely obscure words, and most of the solutions found included one or more such words. Babbage didn't prescribe precise rules for the puzzle, so I assumed the following:

  1. No proper names.
  2. All words must appear in the Oxford English Dictionary, Second Edition.
  3. Words must not be listed as obsolete and have reference citations which span the date of Babbage's writing.
  4. No “borrowed words” from other languages.

This still leaves a number of solutions, some of which are given below. Brief definitions are given in italics for uncommon words.

b i s h o p
i m p a l a
s p a r e s
h a r l o t
o l e o s e oily
p a s t e l

Replacing the word “pastel” in the last line by “pasted” or “pastes” also yields solutions to the puzzle. Another solution is:

b i s h o p
i m p e d e
s p a c e s
h e c k l e
o d e l e t small ode
p e s e t a Spanish coin

and another:

b i s h o p
i m p o s e
s p o r t s
h o r n e t
o s t e a l of or pertaining to bone
p e s t l e for grinding in mortar

and yet another:

b i s h o p
i n h a l e Nope, never did.
s h a r e s
h a r l o t
o l e o s e oily
p e s t e r

The relentless accretion of words into the English language has created many new solutions which would have seemed gibberish in the mid-nineteenth century. My favourite is:

b i s h o p
i g n o r e
s n o b o l programming language for string processing
h o b b i t Tolkien's hole-dwellers
o r o i d e alloy of copper and zinc
p e l t e d with rocks, posers of pesky puzzles


The solutions to the puzzle of squaring the word “bishop” were found with a small C program used in conjunction with a large spelling checker dictionary. You can download the program as a zipped archive from the link below. As with any C program, it may require some tweaking to run with your compiler and operating system; the program is in the public domain and you're free to use it in any way you wish, but you're entirely on your own—no assistance of any kind is available. In addition to the program you'll need a spelling dictionary in standard Unix /usr/dict/words form: an ASCII text file with one word per line. If your system doesn't have such a dictionary, you can download the Moby Words dictionary collection from the archive at the University of Sheffield. Get the file mwords.tar.Z which is about 4 megabytes, uncompress, un-tar, and you'll find a collection of dictionaries. The list of 354,984 single words is an excellent one to use with the squaring words program. If you are looking for more common words in the square, try the list of 113,809 words from the Scrabble dictionary, or the list of 74,550 common dictionary words. Happy hunting!

  Download word squaring program


Click on titles to order books on-line from
Simpson, J. A., and E. S. C. Weiner, eds. The Oxford English Dictionary, Second Edition. Oxford: Oxford University Press, 1991. ISBN 0-19-861258-3.


by John Walker
6th January 1998