Lune

FSE2025Top-tier venue

The Landscape of Toxicity: An Empirical Investigation of Toxicity on GitHub

Jaydeb Sarker, Asif Kamal Turzo, Amiangshu Bosu

Abstract

Toxicity on GitHub can severely impact Open Source Software (OSS) development communities. To mitigate such behavior, a better understanding of its nature and how various measurable characteristics of project contexts and participants are associated with its prevalence is necessary. To achieve this goal, we conducted a large-scale mixed-method empirical study of 2,828 GitHub-based OSS projects randomly selected based on a stratified sampling strategy. Using ToxiCR, an SE domain-specific toxicity detector, we automatically classified each comment as toxic or non-toxic. Additionally, we manually analyzed a random sample of 600 comments to validate ToxiCR's performance and gain insights into the nature of toxicity within our dataset. The results of our study suggest that profanity is the most frequent toxicity on GitHub, followed by trolling and insults. While a project's popularity is positively associated with the prevalence of toxicity, its issue resolution rate has the opposite association. Corporate-sponsored projects are less toxic, but gaming projects are seven times more toxic than non-gaming ones. OSS contributors who have authored toxic comments in the past are significantly more likely to repeat such behavior. Moreover, such individuals are more likely to become targets of toxic texts.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • ToxiShield: Promoting Inclusive Developer Communication through Real-Time Toxicity Filtering cites Destructive Criticism in Software Code Review Impacts Inclusion
  • ToxiShield: Promoting Inclusive Developer Communication through Real-Time Toxicity Filtering cites Predicting developers' negative feelings about code review
  • Destructive Criticism in Software Code Review Impacts Inclusion cites Predicting developers' negative feelings about code review
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. ToxiShield: Promoting Inclusive Developer Communication through Real-Time Toxicity FilteringMd Awsaf Alam Anindya, Showvik Biswas, Anindya Iqbal, Jaydeb Sarker et al.FSE 2026 · 1 citation
  2. “Write in English, Nobody Understands Your Language Here”: A Study of Non-English Trends in Open-Source RepositoriesMasudul Hasan Masud Bhuiyan, Manish Kumar Bala Kumar, Cristian-Alexandru StaicuICSE 2026 · 1 citation

Builds on6

  1. Don't You Know That You're Toxic: Normalization of Toxicity in Online GamingNicole A. Beres, Julian Frommel, Elizabeth Reid, Regan L. Mandryk et al.CHI 2021 · 235 citations
  2. Is Your Toxicity My Toxicity? Exploring the Impact of Rater Identity on Toxicity AnnotationNitesh Goyal, Ian D. Kivlichan, Rachel Rosen, Lucy VassermanCSCW 2022 · 74 citations
  3. Predicting developers' negative feelings about code reviewCarolyn D. Egelman, Emerson R. Murphy-Hill, Elizabeth Kammer, Margaret Morrow Hodges et al.ICSE 2020 · 50 citations
  4. Destructive Criticism in Software Code Review Impacts InclusionSanuri Dananja Gunawardena, Peter Devine, Isabelle Beaumont, Lola Piper Garden et al.CSCW 2022 · 27 citations
  5. Say 'YES' to Positivity: Detecting Toxic Language in Workplace CommunicationsMeghana Moorthy Bhat, Saghar Hosseini, Ahmed Hassan Awadallah, Paul N. Bennett et al.EMNLP Findings 2021 · 18 citations

Related papers

  1. "Did You Miss My Comment or What?" Understanding Toxicity in Open Source DiscussionsCourtney Miller, Sophie Cohen, Daniel Klug, Bogdan Vasilescu et al.ICSE 2022 · 54 citations
  2. Beyond Adoption: Examining the Evolution and Impact of Code of Conduct on Open Source CommunitiesJiayi Sun, Hongbo Fang, Junming Zhang, Jiakai Shi et al.ICSE 2026 · 2 citations
  3. Towards Automated Detection of Unethical Behavior in Open-Source Software ProjectsHsu Myat Win, Haibo Wang, Shin Hwei TanFSE 2023 · 8 citations
  4. "This Is Damn Slick!" Estimating the Impact of Tweets on Open Source Project Popularity and New ContributorsHongbo Fang, Hemank Lamba, James D. Herbsleb, Bogdan VasilescuICSE 2022 · 18 citations
  5. Who's Pushing the Code? An Exploration of GitHub ImpersonationYueke Zhang, Anda Liang, Xiaohan Wang, Pamela J. Wisniewski et al.ICSE 2025 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines