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
- Host: GitHub
- URL: https://github.com/mmdbalkhi/Sansorchi
- Owner: mmdbalkhi
- License: gpl-3.0
- Created: 2021-05-14T15:14:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-20T20:40:12.000Z (almost 2 years ago)
- Last Synced: 2024-11-17T16:44:21.358Z (11 months ago)
- Topics: farsi, python3, swear-filter
- Language: Python
- Homepage: https://pypi.org/project/Sansorchi/
- Size: 284 KB
- Stars: 17
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 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 Sansorchisansorchi = 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