Measuring party affiliation