correspondence

Analyzing hundreds of thousands of letters, emails, and phone calls between legislators and federal agencies.

View the Project on GitHub judgelord/correspondence

This repository contains code to merge, augment, and analyze data on congressional correspondence with the federal bureaucracy.

Publications using these data

Data

(See AJPS Dataverse linked above)

Software

The FOIA data are cleaned using scripts in the repo and linked to other data via ICPSR numbers using the legislators R package: https://judgelord.github.io/legislators/ (There will soon be an agencies package to link agency names to datasets.)

Want to help?

Here are some tasks that anyone can do:

For collaborators

All datasheets must have these columns:

Most datasheets have additional columns, such as the letter’s text, priority level, date of reply, or the person in the agency tasked with responding to the letter. Because such information is not consistent across agencies, these are dropped when sheets are merged. They can be added back in for a more detailed analysis of specific departments or agencies. For example, see the more detailed analysis of FERC.

Other columns required for applying the codebook are added by the function in prep sheets.R.

Cleaning

If extractMemberName() fails to match:

  1. Inspect the pattern variable. There are two main causes of failing to match:
  2. Missing permutations of names in the members data that comes with the legislators package. Please add to or open an issue on the legislators-data repo
  3. Typos - If it is a common typo that we are likely to see in other data (not just from that agency), please add to or open an issue on the legislators-data repo - If you suspect it is an uncommon typo or unique to that agency, fix it with find and replace in the Google Sheet or with a regex in the clean script

There will eventually be a process for users to submit additional permutations and typos to the legislators package data. Until then, use github issues.

If the pattern exists, but extractMemberName() fails to find it, this may be a new or existing bug. please add to or open an issue on the legislators repo

Where there is insufficient information to identify a letter’s date or author, the NOTES column should include “FOIA,” and commits tagging observations to FOIA should reference #76

Coding

Codebook

Data that are ready for coding should have an open issue named “apply codebook to AGENCY.”

Where there is insufficient information to code a letter, the NOTES column should include “FOIA” and #76 should be tagged in the “apply codebook” issue.

Validating

Example letter

Example logs