ViToxReduce: A Python library for Toxic Comment Detection and Reduction

Read full text
Authors: Thanh Le, Thien Khai Tran
Cited by: 1
References: 10

Abstract

ViToxReduce is a Python library designed for controlled, span-level reduction of toxic expressions in user-generated comment text. The library provides a modular processing pipeline that combines toxic span identification with localized text rewriting, enabling minimal intervention while preserving the original semantic context of a comment. Instead of modifying entire sentences, ViToxReduce targets only harmful lexical spans embedded within otherwise neutral text. The software supports offline execution and batch processing, making it suitable for comment sanitization, dataset preprocessing, and post-processing in text moderation workflows. Its functionality is demonstrated through an applied Vietnamese social media case study.

Fields of Study & Subjects

Hate Speech and Cyberbullying Detection Topic Modeling Sentiment Analysis and Opinion Mining

Publication details

Journal / source
SoftwareX
Publisher
Elsevier BV
Volume
34
Pages
102620–102620
Publication date
20 March 2026
Language
EN