Input (grade 9): The screenplay, written by Hampton Fancher and David Peoples, is based loosely on the novel Do Androids Dream of Electric Sheep?
Output (grade 3): It was based on the book Do Androids Dream of Electric Sheep?