1. A method comprising: receiving a query string; generating at least one computer-generated image based on the query string; training a model based on the at least one computer generated image; scoring candidate handwritten word images of a collection of handwritten word images using the trained model; and based on the scores, identifying a subset of the word images.