Eviction Research Network

Peer-reviewed article · Cityscape 26(1) · HUD PD&R

Toward a National Eviction Data Collection Strategy Using Natural Language Processing

How the Eviction Research Network read 111,740 Washington eviction court records from scanned PDF and TIFF images, and estimated racial and gender disparities that county-level counts do not show.

Tim Thomas and Alex Ramiller, UC Berkeley · Cheng Ren, University at Albany, SUNY · Ott Toomet, University of Washington
Cityscape vol. 26, no. 1 (2024), HUD Office of Policy Development and Research

111,740
court record images processed
4
Washington counties
2004–2017
years of filings
93%
of addresses geocoded to rooftop-to-block accuracy

About the paper

Why court records need a pipeline

Many states have no formal process to digitize, count, or release eviction filings, and some publish only county-level counts. In those states the names and addresses that show who is evicted, and from which neighborhoods, sit in scanned court images or paper files.

The 2024 Cityscape paper lays out the pipeline the Eviction Research Network built for Washington State and proposes a strategy for collecting eviction data across the country. The team downloaded 111,740 court record images from Pierce, Snohomish, Whatcom, and King counties, converted them to text with optical character recognition (OCR), and extracted defendant addresses with rule-based matching and a spaCy named-entity recognizer. It then geocoded the addresses and estimated race and gender with published R packages, checking the estimates against legal-aid intake data.

In Pierce County, one in five Black female-headed renter households was named in an eviction filing between 2013 and 2017. In King County, it was one in nine. The state’s own records counted filings only by county.

Contributions

What the paper contributes

OCR and text extraction can read scanned court records at scale

Tesseract OCR converted 111,740 PDF and TIFF images to text, and rule-based matching plus spaCy named-entity recognition extracted defendant addresses. A Naive Bayes model put 98% confidence on the correct address.

Geocoders differ in coverage and in replicability

The team tested OpenStreetMap, the Census Bureau geocoder, King County’s address file, Esri Business Analyst, and Azure on about 5,000 hand-extracted 2013 King County addresses. Azure geocoded the most. Among tools whose results can be reproduced later, Esri Business Analyst did best.

Surname-based race estimates came within several percentage points of intake data

Imai and Khanna’s wru package, backed by Xie’s rethnicity Bi-LSTM model, produced race estimates within several percentage points of King County legal-aid intake data. The training data were voter files from Southern states, so estimates outside the South need extra caution.

Black female-headed households had the highest filing rates in every county

The rates were 11% against 6% to 7% for White-headed households in King, 19% against 13% to 16% in Pierce, and 12% against 8% to 10% in Snohomish. Whatcom’s 26% rests on 15 cases.

Court access depended on each clerk

One clerk granted access readily and two others through local legal aid. A fourth would not waive a 25-cent page fee, an estimated $350,000 for 2004 to 2017. The technical pipeline is portable, but access may take a legislative mandate, grant support, or a legal-aid partner.

Layout analysis and language models could lower the barrier

The paper tested large language models such as ChatGPT on the 2013 court records and flags privacy risks and accuracy gaps. It also points to document layout analysis, which combines computer vision and NLP. Both could let researchers with less programming experience do this work.

The pipeline

From court image to demographic estimate

The paper documents each of the five stages so that other teams can reproduce the pipeline or adapt it to their own courts’ records.

Case study area

  • King County
  • Pierce County
  • Snohomish County
  • Whatcom County

Tools

  • Tesseract OCR
  • spaCy NER
  • Azure Maps
  • Esri Business Analyst
  • wru (R)
  • rethnicity (R)
  • gender (R)
  1. Access and download

    With case numbers from a state records request made with the Washington Office of Civil Legal Aid, a scraper pulled 111,740 eviction case images from Washington’s court portals, pausing between requests so as not to overload the servers.

  2. OCR and text cleaning

    Tesseract OCR converted scanned PDF and TIFF summonses into text. Common errors, such as a “1” read as “|”, a superscript “th” read as a quote mark, and row numbers caught inside addresses, were handled in post-processing.

  3. Address extraction

    Rule-based regular expressions (house numbers, street types, and ZIP Code patterns) ran first, then spaCy named-entity recognition. A Naive Bayes model scored each candidate address; the correct defendant address had 98% confidence. Against 2013 addresses extracted by hand, the method was 93% accurate. The usual error was picking up the court’s or the attorney’s address.

  4. Geocoding and validation

    Addresses that resolved only to a street or county centroid were dropped, leaving 93% at rooftop-to-block accuracy. Against hand-extracted 2013 addresses, the extracted addresses had an average Levenshtein ratio of 0.82.

  5. Race and gender estimation

    The R package wru (Imai and Khanna) estimated race by Bayesian inference from surname and tract composition, and rethnicity (Xie) handled the remaining names with a Bi-LSTM model. The gender package (Mullen et al.) inferred gender from first names checked against SSA and IPUMS records. Estimates agreed with King County Bar Housing Justice Project intake data within several percentage points.

Washington findings

Eviction filing rates by race and gender

Black female-headed renter households had the highest five-year filing rate in every county, from 11% in King to 19% in Pierce. Pierce County’s rates ran high for every group, from 12% to 19%. The paper describes Pierce as one of the largest destinations for movers from King County and the rest of the country.

Five-year eviction rates by race and gender of householder, King, Pierce, Snohomish, and Whatcom counties, 2013–2017
Householder group King Pierce Snohomish Whatcom
Black female 11% 19% 12% 26%*
Black male 8% 15% 7% 6%
Asian female 6% 16% 10% 5%
Asian male 4% 16% 9% 6%
Latinx female 8% 14% 8% 5%
Latinx male 8% 12% 10% 4%
White female 6% 13% 8% 5%
White male 7% 16% 10% 7%
Other race/ethnicity female 5% 12% 7% 3%
Other race/ethnicity male 8% 13% 10% 5%

Source: Thomas, Ramiller, Ren, and Toomet (2024), Exhibit A.1. Denominators are estimated renter households from ACS 5-year estimates; numerators are estimated heads of household named in unlawful detainer filings, identified through the NLP pipeline. Darker cells mark higher rates.

* Hatched: the Whatcom County Black female rate rests on 15 named defendants. The Pierce County rate, the paper’s headline figure, rests on 1,392 filings against an estimated 7,233 Black female-headed renter households.

Summary

The paper in depth

The two national eviction data efforts, Eviction Lab and the Legal Services Corporation (LSC), collect structured records and cannot capture filings that exist only as scanned images or paper files, the paper finds. Eviction Lab receives datasets from collaborators or buys them from vendors; LSC scrapes digital data from county court systems.

Washington’s legislature asked for estimates of racial and gender disparities in eviction, and the state’s own counts existed only at the county level. The records sit on three web portals, and each elected county clerk decides who gets access. One clerk would not waive a charge of 25 cents per downloaded page, an estimated $350,000 for the records from 2004 to 2017.

“Combining data science tools with existing eviction data collection efforts can fill in massive gaps. The NLP approach can extract addresses from court record images, creating the opportunity to analyze demographic disparities in the State of Washington and create a clearer picture of who was being evicted and from where.”

Thomas, Ramiller, Ren, and Toomet (2024), p. 253

Where eviction rates peaked

Eviction rates peaked in the region’s lowest-rent and most racially diverse neighborhoods. In King County, cases were more frequent in South Seattle’s diverse neighborhoods in the earlier years and then grew outside the city in South King County, both known displacement destinations for Black, Indigenous, Latinx, and Asian households. In Pierce and Snohomish counties, evictions concentrated in segregated urban areas.

What this means for other jurisdictions

The case study is Washington, but the method is general. OCR, address extraction, geocoding, validation, and demographic estimation each use tools the paper names (pp. 253–254), and teams in states without complete Eviction Lab or LSC coverage can start from them.

The paper also sets two conditions for scaling the approach. An interdisciplinary team has to guard privacy and data integrity at every step, and court officers may cooperate only with a legislative mandate or grant support.

Policy context

Washington tenant protections

The paper reports that this research helped pass several statewide tenant protections, including the 2019 extension of the pay-or-vacate notice from 3 to 14 days (ESSB 5600) and just-cause eviction protections.

The estimates produced by the pipeline were used in legislative testimony and in coalition work with the Washington Office of Civil Legal Aid, the King County Bar Housing Justice Project, and tenant attorneys across the four counties in the study. None of these reforms is attributable to a single study.

  1. 2019

    Pay-or-vacate notice extended from 3 to 14 days

    ESSB 5600 (2019 c 356) · named in the paper

    Replaced the 3-day notice to pay rent or vacate with a 14-day notice in a set form. The same law created a state payment to landlords in some eviction cases, to give tenants more time to find the resources to stay.

  2. 2021

    Statewide just cause

    RCW 59.18.650 (2021 c 212) · named in the paper

    A landlord may end a tenancy only for a cause the statute lists, with limited exceptions for fixed-term leases.

  3. 2021

    Appointed counsel for low-income tenants

    RCW 59.18.640 (2021 c 115) · not named in the paper

    Courts must appoint an attorney for indigent tenants in unlawful detainer cases, subject to funding. Washington was one of the first states to guarantee it.

Authors

The research team

Current affiliations where known, then the affiliations at publication as listed in the paper (p. 257).

  • Tim Thomas, Ph.D. Assistant Researcher, UC Berkeley Department of Sociology, and Director, Eviction Research Network. At publication, Research Director, UC Berkeley Urban Displacement Project.
  • Alex Ramiller University of Toronto. At publication, Ph.D. candidate in City and Regional Planning, UC Berkeley.
  • Cheng Ren At publication, Ph.D. candidate, UC Berkeley Department of Social Welfare, and Lecturer, University at Albany, SUNY.
  • Ott Toomet, Ph.D. At publication, Assistant Teaching Professor, University of Washington.

From the paper’s acknowledgments: “This work was funded in part by the Moore/Sloan foundation, Bill and Melinda Gates Foundation, and MacArthur Foundation. The authors would like to also thank the numerous colleagues and organizations that helped make this work possible, including the Snohomish, Pierce, and Whatcom Counties court clerks and tenant attorneys; Edmund Whitter and the King County Bar Association; John Stovall and Washington State Representative Nicole Macri; Jim Bamberger and the Washington Office of Civil Legal Aid; the University of Washington eScience Institute, iSchool, Department of Sociology, and Center for Studies in Demography and Ecology—particularly, Bill Howe, Jose Hernandez, Ian Kennedy, Sarah Stone, and Kyle Crowder; and The University of California Berkeley Institute of Governmental Studies; D-Lab; Berkeley Institute of Data Science; and Karen Chapple and the Urban Displacement Project.”

Full paper

Read the 19-page article

Published open access by HUD’s Office of Policy Development and Research in Cityscape vol. 26, no. 1 (2024), the “Local Data for Local Action” issue.