An open API service indexing awesome lists of open source software.

https://github.com/mmdbalkhi/Sansorchi

Remove Persian (Farsi) Swear Words
https://github.com/mmdbalkhi/Sansorchi

farsi python3 swear-filter

Last synced: 3 months ago
JSON representation

Remove Persian (Farsi) Swear Words

Awesome Lists containing this project

README

          


CodeFactor
pre-commit
pylint
test

# Sansorchi

## Remove Persian (Farsi) Swear Words

Sansorchi is a program to remove bad and inappropriate words (currently for the Persian language)

### یاداشت

> برخی از کلمات در ظاهر کلمات بد به حساب نمیان ولی برای کاربردهای خاص ممکنه نیاز به فیلتر شدن داشته باشن که هر کس با توجه به نیاز باید شخصی سازی انجام بده و از این دیتاست استفاده کنه

در صورت علاقه، به تکمیل شدن این دیتاست کمک کنید

از این کتابخونه در فیلتر کردن متن ها در پروژه های خود استفاده کنید و متون پاک و سالمی را داشته باشید

منبع دیتا بیس اصلی [اینجا](https://github.com/amirshnll/Persian-Swear-Words) است .

### Installation

```bash

pip3 install Sansorchi

```

### usage

- remove badwords

```python
from sansorchi import Sansorchi

sansorchi = Sansorchi()

sansorchi.remove_bad_words("YOUR_TEXT")
```

- check badwords

```python
sansorchi.is_bad_word("YOUR_TEXT")
```

if yourtext has badword return True else return False

### Contributing

See this [file](https://github.com/mmdbalkhi/Sansorchi/blob/main/CONTRIBUTING.md) to contribute