word_frequency in a book array