TRENTON, N.J. (AP) — The New Jersey Republican who temporarily quit his campaign for an Assembly seat after a rant-filled book he wrote surfaced has lost.

Anthony Cappola and another Republican, Mark DiPisa, lost to incumbent Democratic Assemblymen Tim Eustace and Joe Lagana. DiPisa and the GOP criticized Cappola's candidacy after the book Cappola wrote more than a decade ago came to light. It included rants against gays, Asians and breast-feeding moms.

Cappola took responsibility and initially bowed out of the race, but his name remained on the ballot. He resumed his campaign, even appearing at a debate.

Republicans had hoped to capture a seat in the district, but were weighed down by the book. Democrats ran ads referencing the book, and a super political action committee spent money to help the incumbents.