Download the PHP package amirshnll/persian-swear-words without Composer
On this page you can find all versions of the php package amirshnll/persian-swear-words. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amirshnll/persian-swear-words
More information about amirshnll/persian-swear-words
Files in amirshnll/persian-swear-words
Package persian-swear-words
Short Description This is a to-be-complete list of Persian Swears you can use in your production to filter unwanted content. Wordlist is available in JSON format and there is also a helper class written in PHP to assist you how to use this datas.
License Apache-2.0
Informations about the package persian-swear-words
Persian-Swear-Words
Persian (Farsi) Swear Words + .json
Datasets
- Functions Availabe:
- Java
- Go
- PHP
- Python
- JavaScript
- TypeScript
- C#
- Swift
- Contribute: Fork and Push Requests :)
- DOI :
10.34740/kaggle/dsv/2094967
CONTRIBUTING.md
: Guidelines for contributing to the repository.CODE_OF_CONDUCT.md
: The code of conduct for participants in the repository.
Note: This is a to-be-complete list of Persian Swears you can use in your production to filter unwanted content. Wordlist is available in JSON format.
- Java
- Go
- PHP
- Python
- JavaScript
- TypeScript
- C#
- Swift
موارد بیشتر:
CONTRIBUTING.md
: دستورالعملهایی برای مشارکت در مخزن این پروژهCODE_OF_CONDUCT.md
: کد اخلاقی برای مشارکتکنندگان در مخزن این پروژه
Installation | دستورالعملهای نصب
نصب با composer
نصب با npm
Usage | روشهای استفاده
java
Code link: 🔗 Class
go
Code link: 🔗 Function
php
Code link: 🔗 Class
python
Code link: 🔗 Class
javaScript
Code link: 🔗 Function
typeScript
Code link: 🔗 Function
csharp
Code link: 🔗 Helper
Create Filter
First of All You Need To Create Instance of FilterPersianWords
var filter = new FilterPersianWords();
if you have any optional json file path you can pass it down to constructor.
Use Functions
-
Is a single word bad?
var isBadWord = filter.IsBadWord("yourWord");
-
Is a multi line string bad?
var isBadSentence = filter.IsBadSentence("your long sentence");
-
Get all bad words inside of string
var badList = filter.GetBadWords("your long sentence");
- Remove All Bad words From String
var clearedString = filter.RemoveBadWords("your bad sentence");
This Method Will not change any data from string except the bad words.
wwift
Code link: 🔗 Classes and Protocol
PersianSwear
هست، که متدها داخل آن پیادهسازی شده است:
یک پروتکل با اسم
PersianSwearDataLoader
که کارایی آن لود کردن کلمات هست وجود دارد:
برای نمونه، تایپ لود کننده کلمات از روی گیتهاب پیادهسازی شده. نمونه استفاده هم بصورت زیر هست:
Related Link | لینکهای مرتبط با پروژه
- https://jadi.net/2020/11/mondays-99-08/
- https://awesomeopensource.com/projects/persian
- https://twitter.com/SamadiPour/status/1362702419252178945?s=20
- https://packagist.org/packages/amirshnll/persian-swear-words
- https://www.npmjs.com/package/persian-swear-words
- https://github.com/mmdbalkhi/Sansorchi
- https://matnbaz.net/github/amirshnll/Persian-Swear-Words