分析开源软件通信中的毒性:基于心理语言学和道德基础理论
Analyzing Toxicity in Open Source Software Communications Using Psycholinguistics and Moral Foundations Theory
AI总结:
本研究利用心理语言学词典和道德基础理论,提出机器学习方法自动检测开源软件通信中的毒性,相比现有检测器F1分数提升7%,验证了道德特征的有效性。
摘要:
研究表明,毒性行为可能导致贡献者离开,并阻碍新手(尤其是来自代表性不足社区的成员)参与开源软件(OSS)项目。因此,检测毒性语言在OSS协作和包容性中起着至关重要的作用。现成的毒性检测器在应用于OSS通信时效果不佳,因为这些渠道中观察到的毒性具有独特的性质(例如,在GitHub上,权利感和傲慢比在Reddit或Twitter上更常见)。在本文中,我们研究了一种基于机器学习的方法,用于自动检测OSS中的毒性通信。我们利用心理语言学词典和道德基础理论来分析两种OSS通信渠道中的毒性:问题评论和代码审查。我们的评估表明,与现有的领域特定毒性检测器相比,我们的方法可以实现显著的性能提升(F1分数最多提高7%)。我们发现,使用道德价值观作为特征比语言线索更有效,在代码审查数据中识别毒性实例的F1分数达到67.50%,在问题评论中达到64.83%。虽然检测准确性远非完美,但这一改进展示了在毒性检测模型中整合道德和心理语言学特征的潜力。这些发现强调了考虑OSS内部独特沟通风格的上下文特定模型的重要性,其中人际和价值观驱动的语言动态与一般社交媒体平台显著不同。未来的工作可以侧重于改进这些模型以进一步提高检测准确性,可能通过纳入社区特定规范和对话上下文,以更好地捕捉OSS环境中毒性的细微表达。
英文摘要:
Studies have shown that toxic behavior can cause contributors to leave, and hinder newcomers' (especially from underrepresented communities) participation in Open Source Software (OSS) projects. Thus, detection of toxic language plays a crucial role in OSS collaboration and inclusivity. Off-the-shelf toxicity detectors are ineffective when applied to OSS communications, due to the distinct nature of toxicity observed in these channels (e.g., entitlement and arrogance are more frequently observed on GitHub than on Reddit or Twitter). In this paper, we investigate a machine learning-based approach for the automatic detection of toxic communications in OSS. We leverage psycholinguistic lexicons, and Moral Foundations Theory to analyze toxicity in two types of OSS communication channels; issue comments and code reviews. Our evaluation indicates that our approach can achieve a significant performance improvement (up to 7% increase in F1 score) over the existing domain-specific toxicity detector. We found that using moral values as features is more effective than linguistic cues, resulting in 67.50% F1-measure in identifying toxic instances in code review data and 64.83% in issue comments. While the detection accuracy is far from accurate, this improvement demonstrates the potential of integrating moral and psycholinguistic features in toxicity detection models. These findings highlight the importance of context-specific models that consider the unique communication styles within OSS, where interpersonal and value-driven language dynamics differ markedly from general social media platforms. Future work could focus on refining these models to further enhance detection accuracy, possibly by incorporating community-specific norms and conversational context to better capture the nuanced expressions of toxicity in OSS environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。