Adaptation.

The self-loathing Charlie Kaufman is hired to write the screenplay adaptation for Susan Orlean's The Orchid Thief. Kaufman is going through depression and is not happy that his twin brother, Donald, has moved into his house and is taking advantage of him. Donald decides to become a screenwriter like Charlie and attends one of Robert McKee's famous seminars. Charlie, who rejects formulaic script writing, wants to ensure that his script is a faithful adaptation of The Orchid Thief. However, he comes to realize that the book does not have a usable narrative and that it is impossible to turn into a film, leaving him with a serious case of writer's block. Already well over his deadline with Columbia Pictures, and despairing at writing his script with self-reference, Charlie travels to New York City to discuss the screenplay with Orlean directly. Unable to face her and with the surprising news that Donald's spec script for a clichéd psychological thriller, called The 3, is selling for six or seven figures, Kaufman resorts to attending McKee's seminar in New York and asks him for advice. Charlie ends up asking Donald to join him in New York to assist with the story structure. Read more on Wikipedia.