{
rep_name: rep_name,
issue : {
issue_name: issue_name,
middle_class_position: middle__class_position,
issue_area: issue_area,
rep_vote: rep_vote
},
rep_score: rep_score,
rep_party: rep_party,
rep_state: rep_state,
year: year
}
What do people think about this?
In addition, if you go to any legislator's page, (e.g.
http://www.themiddleclass.org/legislator/daniel-akaka-405), you'll see
a list of topics associated with each bill. One could find out which
topics are "popular" with a candidate by looking the number of times
a topic's name occurs on its page. It would be even easier to find
which "issue area" a legislator holds dear by looking at
issue[issue_area] for a given rep_name over the years. Thoughts?
didier
Agreed, maybe it would be more appropriate to associate them with
their "middle class bias" or show it as a list of their "top
middle-class issues". I ssupect themiddleclass.org is choosy in the
sort of issues they consider "middle-class" but nevertheless it would
be interesting to see.
didier
>
> Shahin
> >
>
Looks good. It might make sense to break it up a bit more and have one
dictionary per rep, issue combination instead of sorting them rep and
then issue. Also, do they use any kind of IDs? We should be sure to
include those if they exist. It'd be annoying if issue_name was the
only identifier they provided.
So you're saying it might be better to have something like this for a
representative:
rep =
{
specific_issue_name: rep_vote,
rep_name: rep_name,
rep_score: rep_score,
rep_party: rep_party,
rep_state: rep_state,
year: year
}
The details associated with of each issue would be stored as so:
issue_facts =
{
issue_name:
{
issue_area: area,
middle_class_position: position
}
}
Is this right? Note that $rep would be yielded at each iteration while
$issue_facts would only need to be computed/loaded once.
> Also, do they use any kind of IDs? We should be sure to
> include those if they exist. It'd be annoying if issue_name was the
> only identifier they provided.
There are no IDs associated with any of this data. We could associate
an ID with each issue_name by listing issue names for *all* the years
so far and assigning them an an increasing number (1,2,3,etc).
Thoughts?
didier
>
> >
>