FairLangProc: A Python package for fairness in NLP

Arturo Pérez-Peralta, Sandra Benítez-Peña, Rosa E. Lillo
8/5/2025
cs.CLstat.ML

Official code: arturo-perez-peralta/FairLangProc (4 stars, MIT, last commit 2026-02-27).

Abstract

The rise in usage of Large Language Models to near ubiquitousness in recent years has risen societal concern about their applications in decision-making contexts, such as organizational justice or healthcare. This, in turn, poses questions about the fairness of these models in critical settings, which leads to the developement of different procedures to address bias in Natural Language Processing. Although many datasets, metrics and algorithms have been proposed to measure and mitigate harmful prejudice in Natural Language Processing, their implementation is diverse and far from centralized. As a response, this paper presents FairLangProc, a comprehensive Python package providing a common implementation of some of the more recent advances in fairness in Natural Language Processing providing an interface compatible with the famous Hugging Face transformers library, aiming to encourage the widespread use and democratization of bias mitigation techniques. The implementation can be found on https://github.com/arturo-perez-peralta/FairLangProc.

View on arXivView PDF

Code Implementations(1)

MIT

A comprehensive set of fairness metrics, datasets and algorithms to address and mitigate bias in Natural Language Processing.

40Shell, PythonMay 26, 20257 months agoMIT

Similar Papers

Cite this paper

@article{prezperalta2025fairlangproc,
  title  = {FairLangProc: A Python package for fairness in NLP},
  author = {Arturo Pérez-Peralta and Sandra Benítez-Peña and Rosa E. Lillo},
  year   = {2025},
  eprint = {2508.03677},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.03677v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.03677.svg)](https://codeofpaper.com/paper/2508.03677)

Discussion