Reproducible Research Repository
Reproducible Research Repository
  • Home
  • Repository
  • Collections
  • About
    Home / Repository / PRWP / RR_IND_2026_771
PRWP

Reproducibility package for Decoding Green Justice: An AI-Assisted Exploration of Indian Environmental Court Rulings over Five Decades

2026
Get Reproducibility Package
Reference ID
RR_IND_2026_771
Author(s)
Patrick Behrer, Shareen Joshi, Olexiy Kyrychenko, Viknesh Nagarathinam, Peter Neis, Shashank Singh
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
Nov 11, 2026
Last modified
Nov 24, 2026
Page views
24
Downloads
24
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Overview

    Abstract

    This study demonstrates the potential of large language models (LLMs) to analyze environmental court rulings from India. Using a novel dataset of 12,615 environmental court orders spanning five decades, we evaluate the performance of two LLMs - GPT-4o API and Claude 3 Sonnet - in coding and interpreting judicial decisions. The LLMs are tasked with identifying pro-environmental rulings and extracting key case attributes, with their performance benchmarked against human coders who analyzed 1,910 rulings. Both models achieve approximately 70% accuracy compared to human coding, with the GPT-4o API showing slightly better performance in various sub-samples. These findings suggest promising applications for AI to improve access to and analysis of legal data, particularly in jurisdictions where administrative records lack standardization.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/catalog/701/download/2113/README.pdf
    Reproducibility package for Decoding Green Justice: An AI-Assisted Exploration of Indian Environmental Court Rulings over Five Decades
    File name
    RR_IND_2026_771
    Zip package
    RR_IND_2026_771.zip
    Title
    Reproducibility package for Decoding Green Justice: An AI-Assisted Exploration of Indian Environmental Court Rulings over Five Decades
    Date
    2026-11
    Dependencies
    R dependencies are listed in the file renv.lock. Stata dependencies are listed in the ado folder.
    Instructions
    See README in reproducibility package.
    Notes
    Computational reproducibility verified by Development Impact (DECDI) Analytics team, World Bank.
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    Stata
    Name
    Stata
    Version
    19.5 MP

    Reproducibility

    Technology environment

    Paper exhibits were reproduced on a computer with the following specifications:
    • OS: Windows 11 Enterprise
    • Processor: INTEL(R) XEON(R) PLATINUM 8562Y+ 2.80 GHz (2 processors)
    • Memory available: 32.0 GB

    Technology requirements

    Run time: ~ 2 minutes

    Reproduction instructions

    To reproduce the findings in this paper, a replicator must:

    1. Secure access to data: obtain the nine input datasets from the World Bank Microdata Library once the embargo ends, and place them in data/input/. See the Datasets section for more details. The checksums in data/input/SHA256SUMS.txt can be used to confirm the files are unchanged.
    2. Run the package: update the working directory in line 22 of the script 00_main.do, and run it.

    Note: The package also includes the scripts the authors used to scrape the court rulings from Indian Kanoon and to generate the LLM classifications. They are in code/0_documentation_not_run/ and are documentation only, not meant to be re-run. Re-running them would not reproduce the input data exactly: the LLM outputs are not deterministic, the model versions used are retired, and Indian Kanoon content can change. The analysis is reproduced from the constructed input datasets.

    While the data is embargoed, the package includes the results produced by the reviewers. These files can be used to review the results presented in the paper.

    Data

    Datasets
    Decoding Green Justice: replication input data
    Name
    Decoding Green Justice: replication input data
    Note
    Nine input files prepared by the authors. They are the starting point of the reproduction and will be deposited as one entry in the World Bank Microdata Library. File location: data/input/ (not included in the package; SHA-256 checksums in data/input/SHA256SUMS.txt). The files hold no ruling text, only metadata, citations, human codes and model responses, keyed on the Indian Kanoon document number (kanoon_id). They contain party and judge names as they appear in public rulings; coder identifiers were removed. Original sources: ruling metadata scraped from Indian Kanoon (https://indiankanoon.org) by August 2024, in files (3) compact_merged_df_with_meta.csv, (7) NGT_word_count_and_citations.csv, (8) courts_kanoon_ids.csv and (9) All_cases_with_pulled_citations.csv; and human coding of 1,910 rulings by 14 law students of the National Law School of India University in 2021, in file (4) Air Pollution Cases_updated 17.10.21.xlsx. Generated by the authors with LLMs from the rulings in 2024: GPT-4o (gpt-4o-2024-05-13, OpenAI API) outputs in files (1) gptoutput_flat_27jun_notext.csv and (5) gpt4_human_data_green_verdict_v1.csv; and Claude 3 Sonnet (claude-3-sonnet-20240229, Anthropic API) outputs in files (2) claude_air_pollution_output_flat_sep16.csv and (6) Claude_human_prompt.csv. Both models were called at temperature 0.5 with no fixed seed, and both versions are now retired, so these outputs cannot be regenerated exactly. The scraping and API scripts are in code/0_documentation_not_run/ and were not re-run. The LLM use is documented in ai_documentation/ai_log.md. The files are embargoed until the companion paper is published, then openly available.
    Access policy
    Data is currently embargoed but expected to be made public in World Bank Microdata Library.
    Citation
    Behrer, A. P., S. Joshi, O. Kyrychenko, V. Nagarathinam, P. Neis, and S. Singh. 2026. "Decoding Green Justice: replication input data" [dataset]. World Bank Microdata Library. Forthcoming.
    Data statement

    The reproducibility package relies on 1 type of data: embargoed (expected to be made public via World Bank Microdata Library). For the source, access type, file location, and citation of each dataset, refer to the Datasets section and the README file.

    Description

    Output
    Decoding Green Justice: An AI-Assisted Exploration of Indian Environmental Court Rulings over Five Decades
    Type
    Working Paper
    Title
    Decoding Green Justice: An AI-Assisted Exploration of Indian Environmental Court Rulings over Five Decades
    Description
    Policy Research Working Paper (PRWP)
    Authors
    Author Affiliation Email
    Patrick Behrer World Bank Group abehrer@worldbank.org
    Shareen Joshi Georgetown University Shareen.Joshi@georgetown.edu
    Olexiy Kyrychenko Radboud University olexiy.kyrychenko@ru.nl
    Viknesh Nagarathinam Georgetown University viknesh.n91@gmail.com
    Peter Neis Universitie Clermont Auvergne peter.neis@uca.fr
    Shashank Singh The University of Chicago shashanksinghss09@gmail.com
    Date of production

    2026-11-09

    Scope and coverage

    Geographic locations
    Location Code
    India IND
    Keywords
    Environmental Law Large Language Models Argument Mining India
    Topics
    ID Topic Parent topic ID Vocabulary Vocabulary URI
    K32 Energy, Environmental, Health, and Safety Law K3 Journal of Economic Literature (JEL)
    K41 Litigation Process K4 Journal of Economic Literature (JEL)
    C45 Neural Networks and Related Topics C4 Journal of Economic Literature (JEL)
    Q58 Government Policy Q5 Journal of Economic Literature (JEL)

    Disclaimer

    Disclaimer

    The materials in the reproducibility packages are distributed as they were prepared by the staff of the International Bank for Reconstruction and Development/The World Bank. The findings, interpretations, and conclusions expressed in this event do not necessarily reflect the views of the World Bank, the Executive Directors of the World Bank, or the governments they represent. The World Bank does not guarantee the accuracy of the materials included in the reproducibility package.

    Access and rights

    License
    Name URI
    MIT License https://opensource.org/license/mit
    World Bank IGO Rider https://github.com/worldbank/metadata-editor/blob/main/WB-IGO-RIDER.md

    Contacts

    Contacts
    Name Affiliation Email
    Patrick Behrer World Bank Group abehrer@worldbank.org
    Reproducibility World Bank Group World Bank Group reproducibility@worldbank.org

    Information on metadata

    Producers
    Name Abbreviation Affiliation Role
    Reproducibility WBG DECDI World Bank - Development Impact Department Verification and preparation of metadata
    Date of Production

    2026-11-09

    Document version

    1

    Back to Catalog
    The World Bank Working for a World Free of Poverty
    • IBRD IDA IFC MIGA ICSID

    © The World Bank Group, All Rights Reserved.