United States presidential primary
There is no provision for the role of political parties in the United States Constitution, since the Founding Fathers did not originally intend for American politics to be partisan. In Federalist Papers No. 9 and No. 10, Alexander Hamilton and James Madison, respectively, wrote specifically about the dangers of domestic political factions. Thus in the first two presidential elections, the Electoral College handled the nominations and elections in 1789 and 1792 that selected George Washington. The beginnings of the American two-party system then emerged from Washington's immediate circle of advisors. Hamilton and Madison, who wrote the aforementioned Federalist Papers against political factions, ended up being the core leaders in this partisanship: Hamilton became the leader of Federalist Party while Madison co-helmed the Democratic-Republican Party with Thomas Jefferson.
The Federalist Papers
The authorship of seventy-three of "The Federalist" essays is fairly certain. Twelve of these essays are disputed over by some scholars, though the modern consensus is that Madison wrote essays Nos. 49–58, with Nos. 18–20 being products of a collaboration between him and Hamilton; No. 64 was by John Jay. The first open designation of which essay belonged to whom was provided by Hamilton who, in the days before his ultimately fatal gun duel with Aaron Burr, provided his lawyer with a list detailing the author of each number. This list credited Hamilton with a full sixty-three of the essays (three of those being jointly written with Madison), almost three-quarters of the whole, and was used as the basis for an 1810 printing that was the first to make specific attribution for the essays.
Madison did not immediately dispute Hamilton's list, but provided his own list for the 1818 Gideon edition of "The Federalist". Madison claimed twenty-nine numbers for himself, and he suggested that the difference between the two lists was "owing doubtless to the hurry in which [Hamilton's] memorandum was made out." A known error in Hamilton's list—Hamilton incorrectly ascribed No. 54 to John Jay, when in fact, Jay wrote No. 64—provided some evidence for Madison's suggestion.