Learning a language by reading books