Know your genre. Know your history. Read a book.