A database of millions of books tries to make it possible to track cultural trends through the quantities of individual words in print over the last few centuries. Cynthia Graber reports