Skip to main content

A library to filter Vietnamese bad words

Project description

viet_badwords_filter

This library has been published in PyPI

Special thanks

Special thanks to everyone in this repository for badwords list. If you want to add some bad words, please create a Pull Request.

Features

This package is developed to filter Bad Words in Vietnamese 🇻🇳🇻🇳

Thư viện này dùng để lọc mấy từ bậy bạ chửi tục trong Tiếng Việt

Getting started

Install the package

pip install viet_badwords_filter

Usage

Support clean and check functio

from viet_badwords_filter.filter import VNBadwordsFilter

filter = VNBadwordsFilter()

print(filter.is_profane("hello"))  # False
print(filter.is_profane("vcl"))  # True
print(filter.clean("hello vcl"))  # hello ***

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

viet_badwords_filter-1.0.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

viet_badwords_filter-1.0.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page