This study examines structural patterns in the governance of non-normative gendered bodies in China across distinct historical and contemporary contexts. Rather than asserting a direct causal lineage, we analyze recurring regulatory mechanisms that characterized the governance of imperial eunuchs and are discernibly present in the contemporary governance of transgender individuals, two populations separated by time and circumstance but subject to comparable logics of moral classification, familial surveillance, and institutional scripting. We introduce Confucian biopolitics as an analytical lens to describe governance that operates through li (ritual propriety) and xiao (filial piety) rather than solely through juridical or biomedical systems. This lens does not propose a new totalizing theory; rather, it reorients existing biopolitical frameworks toward the kinship-based, morally-inflected power structures that have historically characterized Chinese governance of bodies. Drawing on three complementary methods (archival analysis of Qing legal and administrative sources, exploratory GIS spatial analysis of institutional distributions, and computational text analysis of Ming Shilu chronicles and Chinese Wikipedia articles on transgender and LGBT topics), we identify structural regularities rather than claim continuity of intent or transmission. Comparative cases from the Ottoman Empire and Tokugawa Japan help distinguish China-specific features from more general patterns. Findings indicate that both eunuchs and transgender individuals were governed through mechanisms centered on familial legitimacy, bodily classification, and moral-ritual normalization. Spatial analysis of contemporary LGBTQ+ NGOs reveals significant geographic clustering (I = 0.735, p < .001) in coastal metropolitan areas, mirroring the spatial isolation mechanism identified in imperial eunuch governance, with Beijing functioning as the dominant institutional hub. Computational text analysis identifies discursive resonance: the term 妖 (demon/monster, χ2(1) = 0.07, p = .788, n.s.) and 欺骗 (deception, p = .863, n.s.) appear at statistically indistinguishable rates across six centuries of text, while terms for psychiatric pathology (精神病, p < .001) and discrimination (歧视, p < .001) are exclusively contemporary—evidence of diagnostic translation within a persistent moral register. The study contributes to gender history, comparative sociology, and digital humanities by offering a multi-method framework for identifying structural recurrences in governance logics across historical ruptures. We conclude with policy implications focused on familial and linguistic mechanisms of stigma, which historical analysis identifies as the most durable sites of governance.