We poll the hell out of our populace and ask, "What do you identify as?" That's how we know how people identify.
> In other countries, people pay membership dues to their political parties and get membership cards. Here, we just declare our allegiance to these private organizations on twitter.
Some states in the US have state-level party organizations which you join and receive a card. Not all.
I don't think a pollster would be disappointed that you don't have a party affiliation. In fact some of biggest emphasis in election season is on independents or undecided voters.
Exactly. You can look it up on 538 or wherever you like, but all the polls say roughly the same thing: There's more unaffiliated voters than there is voters for either party. Something like 40-45% unaffiliated, with ~25% identifying as Republican and ~30% identifying as Democrat.