Wes Anderson's comic fable "The Grand Budapest Hotel" won the Writers Guild of America's Best Original Screenplay Award, beating an Oscar frontrunner, Richard Linklater's "Boyhood," a week before the biggest award ceremony in Hollywood -- the Academy Awards -- is held.
"Budapest" also beat out "Foxcatcher," "Nightcrawler," and "Whiplash." (Another Oscar contender, Alejandro Inarritu's dramedy "Birdman," wasn't nominated for the WGA Awards.)
Best Adapted Screenplay was awarded to Graham Moore for "The Imitation Game," about the British World War II code breaker Alan Turing.
Moore said any honors his film has collected are a credit to its subject, the generally unsung British mathematician who lead the team that cracked the Nazi Enigma code, helping speed the end of World War II.
Other nominees in the Adapted Screenplay category were "American Sniper," "Gone Girl," "Guardians of the Galaxy," and "Wild."
The WGA Awards were presented simultaneously at ceremonies in both Los Angeles and New York on Saturday night.
In L.A., Anderson accepted his statuette (on behalf of co-writer Hugo Guinness, whom Anderson said was in New York) with a hilariously dry recounting of the history of the area now occupied by the Hyatt Regency Century Plaza hotel, the site of the ceremony, noting it formerly was "the backlot of one of the great cinema studios and now is home to this wonderful Hyatt and a large community of entertainment attorneys."
In television categories, HBO's "True Detective" won for Drama Series and New Series.
CBS' "The Good Wife" won for Episodic Drama.
Louis C.K.'s "Louie" won for Comedy Series and Episodic Comedy, while "The Simpsons" took home the prize for Animation.
A complete list of winners follows.
Original Screenplay: "The Grand Budapest Hotel," screenplay by Wes Anderson; story by Wes Anderson & Hugo Guinness
Adapted Screenplay: "The Imitation Game," written by Graham Moore; based on the book, "Alan Turing: The Enigma," by Andrew Hodges
Documentary Screenplay: "The Internet's Own Boy: The Story of Aaron Swartz," written by Brian Knappenberger
Drama Series: "True Detective," written by Nic Pizzolatto (HBO)
Comedy Series: "Louie," written by Pamela Adlon, Louis C.K. (FX)
New Series: "True Detective," written by Nic Pizzolatto (HBO)
Long Form Original: "Deliverance Creek," written by Melissa Carter (Lifetime)
Long Form Adapted: "Olive Kitteridge," teleplay by Jane Anderson; based on the novel by Elizabeth Strout (HBO)
Short Form New Media - Original: "Episode 113: Rachel" (High Maintenance); written by Katja Blichfeld & Ben Sinclair (helpingyoumaintain.com)
Animation: "The Simpsons: Brick Like Me," written by Brian Kelley (Fox)
Episodic Drama: "The Good Wife: The Last Call," written by Robert King & Michelle King (CBS)
Episodic Comedy: "Louie: So Did the Fat Lady," written by Louis C.K. (FX)
Comedy/Variety (Including Talk) - Series: "Last Week Tonight with John Oliver." (HBO)
Comedy/Variety - Music, Awards, Tributes - Specials: "71st Annual Golden Globe Awards." (NBC)
Quiz and Audience Participation: "Hollywood Game Night." (NBC)
Daytime Drama: "General Hospital." (ABC)
Children's Script - Episodic and Specials: "Haunted Hathaways: Haunted Heartthrob," written by Bob Smiley (Nickelodeon)
Documentary Script - Current Events: "United States of Secrets: The Program (Part One)," from "Frontline." Written by Michael Kirk & Mike Wiser (PBS)
Documentary Script - Other Than Current Events: "League of Denial: The NFL's Concussion Crisis," from "Frontline," written by Michael Kirk & Mike Wiser (PBS)
TV News Script - Regularly Scheduled, Bulletin, or Breaking Report: "World News with Diane Sawyer: Nelson Mandela: A Man Who Changed the World," written by Dave Bloch, Lisa Ferri, Diane Sawyer (ABC News)
TV News Script - Analysis, Feature, or Commentary: "60 Minutes: Nowhere to Go," written by Oriana Zill de Granados, Scott Pelley, Michael Rey (CBS)
Radio Documentary: "Three Shots Rang Out: The JFK Assassination 50 Years Later," Written by Darren Reynolds (ABC News)
Radio News Script - Regularly Scheduled, Bulletin, or Breaking Report: "World News This Week," written by Andrew Evans (ABC News Radio)
Radio News Script - Analysis, Feature, or Commentary: "Civil Rights at 50," written by Jane Tillman Irving (WCBS Radio)
On-Air Promotion (Television, New Media or Radio): "How I Met Your Mother," written by Dan Greenberger (CBS)
Outstanding Achievement in Videogame Writing: "The Last of Us: Left Behind," written by Neil Druckmann (Sony Computer Entertainment)