Abstract
Responsible development of technology involves applications being inclusive of the diverse set of users they hope to support. An important part of this is understanding the many ways to refer to a person and being able to fluently change between the different forms as needed. We perform a case study on the singular they, a common way to promote gender inclusion in English. We define a re-writing task, create an evaluation benchmark, and show how a model can be trained to produce gender-neutral English with <1% word error rate with no human-labeled data. We discuss the practical applications and ethical considerations of the task, providing direction for future work into inclusive natural language systems.
Introduction
As Natural Language Processing (NLP) systems become increasingly integrated into daily life, ensuring they support diverse gender identities is both a functional requirement and an ethical imperative. While significant research has addressed binary gender bias (e.g., he vs. she), there is a critical need for systems capable of fluently handling non-binary identities, particularly through the use of the singular they.
Rewriting gendered English into gender-neutral versions presents several linguistic challenges. These include one-to-many mappings (where "her" may map to "their" or "them"), complex verb agreement (changing "he grows" to "they grow" while keeping "his dream is" as "their dream is"), and the inherent ambiguity in sentences involving multiple entities.
Methodology
To address these challenges without the need for expensive human-labeled data, we developed a hybrid "teacher-student" approach.
The Rewriting Algorithm (Teacher)
We first constructed a rule-based algorithm to generate a parallel training corpus. This algorithm utilizes regular expressions for simple swaps, dependency parsing via SpaCy to handle verb conjugation, and language modeling via GPT-2 to resolve pronoun ambiguity by selecting the most natural-sounding variant based on perplexity.
The Seq2Seq Model (Student)
The output from this algorithm was used to train a standard Transformer-based sequence-to-sequence (Seq2Seq) model. This neural model aims to generalize the algorithm's rules into an end-to-end system capable of handling more varied linguistic structures.
Experimental Setup
Our training data consisted of 15 million gendered sentences filtered from a 100-million-sentence Wikipedia corpus. To evaluate performance, we created a human-curated benchmark of 500 sentence pairs across five domains: Twitter, Reddit, news, movie quotes, and jokes. This benchmark was gender-balanced to ensure fair evaluation across masculine and feminine source text.
Results and Error Analysis
Both the rule-based algorithm and the neural model achieved exceptional performance, with scores exceeding 99 BLEU and a Word Error Rate (WER) of less than 1%. While the algorithm performed slightly better on clean text, the neural model demonstrated superior potential for generalizing to noisy or unseen phrasing.
Error analysis revealed that performance is sensitive to domain and gender. Mistakes were more frequent in "noisy" text (e.g., Twitter) containing emojis and non-standard punctuation. Furthermore, both systems struggled more with feminine pronouns due to the inherent grammatical ambiguity of "her" in English and a masculine bias in the Wikipedia training data (approx. 70% masculine).
Discussion and Future Work
This work demonstrates that near-perfect accuracy in gender-neutral rewriting can be achieved through zero-label learning. However, limitations remain, particularly regarding sentences with multiple human entities where pronoun resolution is ambiguous. Future research should explore more complex morphological modeling for languages with gendered adjectives and expand the system to handle multi-entity contexts. Ultimately, such tools should be viewed as a means to empower user choice in pronoun usage rather than a method for automatic identity inference.
Summary updated