However, if you are writing nonfiction, you have two options: (1) You may choose to write all or part of your book before you attempt to sell it to a publisher, or, (2) you may begin by writing a proposal for your book, then sell the project to a publisher and receive a royalty advance, and only then write the book, thereby being paid, in effect, to write the book.