Coder Social home page Coder Social logo

Comments (11)

JoshData avatar JoshData commented on June 8, 2024

Oh and despite my initial reaction I'd love to have it also.

It's stateRank here:
http://www.senate.gov/legislative/LIS_MEMBER/cvc_member_data.xml

In addition, I'd like us to think about a generic way to handle rank. Imagine that we assign numbers consecutively from the 1st Congress to each term (in a smart way), so that at any given point in time you could compute the rank of all Members of Congress by sorting them by this rank value. It would be interesting to then see if it lines up with e.g. http://www.rollcall.com/politics/houseseniority.html

Junior/senior should be computable by comparing the ranks of the two senators. Though I'd be OK with storing that separately in the DB anyway, especially in case our algorithm doesn't match the senate's algorithm.

from congress-legislators.

dwillis avatar dwillis commented on June 8, 2024

We should definitely have it for senators, but there's (always) a catch; junior/senior status can and does switch. If Kerry is confirmed as Secy of State, Elizabeth Warren becomes the senior senator from Massachusetts. Brian Schatz was junior senator from HI when he was sworn in after Christmas, but by virtue of that he's now senior senator. If all we care about is the "final" status of senators in a Congress, then it's easier.

In terms of House seniority, it's also easier if we pick an approach that can account for people leaving the House and returning later.

from congress-legislators.

JoshData avatar JoshData commented on June 8, 2024

Seniority resets, right? (if people leave and return)

from congress-legislators.

dwillis avatar dwillis commented on June 8, 2024

In my experience, seniority is what leadership says it is. Some people, like Lautenberg, demanded that his seniority be restored as a condition of running again. So it should reset, but doesn't always.

from congress-legislators.

GPHemsley avatar GPHemsley commented on June 8, 2024

According to Wikipedia, seniority is determined by the following factors (in order):

  1. Length of continuous service
  2. Former U.S. senator
  3. Former U.S. representative
  4. Former president
  5. Former vice president
  6. Former Cabinet member
  7. Former state governor
  8. Population of state based on the most recent census when the senator took office
  9. Alphabetical by last name (in case two senators came from the same state on the same day and have identical credentials)

According to that article, Lautenberg has not actually received his previous seniority (because that wouldn't comply with these criteria) and is listed at 35th.

from congress-legislators.

konklone avatar konklone commented on June 8, 2024

That reference in Wikipedia is to an unlinked Hill article, but it might have been early. This Hill article from 2006 says he got a post he otherwise wouldn't have gotten, as does this one from 2010.

Because of this, if we were to list rankings, I'd much rather list them from an official source if possible. The House provides such a list (PDF), but I think with the Senate it's limited to the "official algorithm" + "undocumented leadership fudging".

Josh, that XML is awesome. Is it from the Capitol Visitors Center?? What page is it linked from?

from congress-legislators.

JoshData avatar JoshData commented on June 8, 2024

It's from the Senate: http://www.senate.gov/general/common/generic/XML_Availability.htm. It's one of the recently improved files. (But stateRank might have been there for a while.)

In light of the fudging, nevermind my idea.

from congress-legislators.

konklone avatar konklone commented on June 8, 2024

Just "assigned" myself to the issues I'm planning on doing. A feature I haven't really used before, but helpful purely for my own reference in which of the growing number of issues I'm on point on. :)

from congress-legislators.

konklone avatar konklone commented on June 8, 2024

In the middle of tackling this now.

from congress-legislators.

konklone avatar konklone commented on June 8, 2024

Done - just used the source above to get both state_rank (on individual terms, set to "junior" or "senior"), and their LIS ID (which we were only missing for freshmen senators). Merged cleanly with Josh's manual update.

from congress-legislators.

konklone avatar konklone commented on June 8, 2024

Oh, and to clarify - this is done in the same senate_contacts.py script, no new script was added.

from congress-legislators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.