arXiv:2611.07134cs.CLNov 2026

Manuscript Offprint

arXiv:2611.07134

Matriarchy Classics: A Computational Approach to Swap Only Gendered Words in Classic Novels

Rachel Lea Draelos

Abstract

This paper proposes a trustworthy computational method to gender-swap public domain novels, with programmatic guarantees that only gendered words are inverted and all other words are left unchanged. This may seem like a simple task, but both large language models and naïve rule-based methods fail to complete it. The proposed method includes a custom whitespace-preserving tokenizer, gender-swap mappings across plural and possessive forms, pronoun handling, and a character renaming strategy. It shortens the time required to gender-swap a novel from weeks of manual labor to minutes. The method is demonstrated on two public-domain novels. Pride and Prejudice is transported to matriarchal Regency England, where inheritance flows through daughters, mothers rule the household, and a frantic Mr. Bennet is determined to secure advantageous marriages for his sons. The Great Gatsby pivots to a matriarchal Jazz Age where newly-rich Ms. Gatsbee throws lavish parties in the hopes of reuniting with her lost love, David, who is now married to the violent Thelma Buchanan. Gender-swapped novels could serve as useful tools to investigate the gender biases of readers, authors, societies, and AI systems.

Introduction

Publishers have released dozens of gender-swapped versions of classic novels, from Olivia Twist by Lorie Langdon to One for All by Lillie Lainoff. However, critically, these are retellings—with every sentence, the author has chosen to what extent the new characters conform to or subvert gender stereotypes. And there may be more conformity than the gender-swap premise implies: a computational analysis of gender-bending fanfiction found that male characters turned female are often rewritten to conform with feminine stereotypes¹.

Original works of fiction have imagined matriarchal or gender-swapped societies for over a century, including Sultana's Dream (1905)², Herland (1915)³, and Egalia's Daughters (1977)⁴. Gender-swapping classic novels has been reported by parents who dynamically perform the gender inversion while reading out loud to their children⁵. Gender Swapped Fairy Tales by Karrie Fransman and Jonathan Plackett⁶ inverts only gendered language in classic fairy tales. Kim Knight's classroom gender bias exercise⁷ involves using the digital Regender tool⁸ created by Ping Yee to gender-swap web pages. Gender-swapped text has also been used to quantify and mitigate AI gender bias⁹⁻¹¹ and evaluate reader biases¹²,¹³.

In the spirit of this prior work, the Matriarchy Classics project inverts only gendered words in classic novels, and leaves all other words unchanged. To the best of the author's knowledge, no prior work reports gender-only inversion of full-length novels, likely because carrying out this task by hand requires weeks of painstaking labor for each book. The primary contribution of this paper is a computational method that shortens the time required from weeks to minutes, with programmatic guarantees that only gendered words will be changed—a crucial guarantee for the efficacy of the project. The method is demonstrated on two public-domain novels, Pride and Prejudice and The Great Gatsby, with the gender-swapped versions made freely available as published ebooks through the project website, www.matriarchyclassics.com.

When the author first began this project six years ago, it seemed that developing a computational method to gender-swap novels would be trivial—merely a few lines of Python exchanging “he” for “she” and so on. Indeed, a few lines of Python are sufficient to produce a barely-readable gender-swapped atrocity, in which replacement of “man” with “woman” results in nonsense transformations like “manor” to “womanor.” Producing a literary-quality gender swap for an entire novel while maintaining perfect grammar, preserving punctuation and formatting, ensuring appropriate character naming, and programmatically guaranteeing that only gendered words have been altered proves to be a more challenging problem, analogous to a specialized form of algorithmic translation—one that even modern large language models cannot complete successfully.

The proposed method may be useful for creating a gender-swapped canon of classic novels that could serve as tools in future gender bias research.