https://github.com/kapilyadav-dev/censory
Censored word library, Ban abusive words
https://github.com/kapilyadav-dev/censory
abuse-detection androd censored-words java
Last synced: about 1 month ago
JSON representation
Censored word library, Ban abusive words
- Host: GitHub
- URL: https://github.com/kapilyadav-dev/censory
- Owner: KapilYadav-dev
- Created: 2020-11-14T16:14:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-30T12:06:07.000Z (over 3 years ago)
- Last Synced: 2025-03-26T00:41:26.460Z (about 2 months ago)
- Topics: abuse-detection, androd, censored-words, java
- Language: Java
- Homepage:
- Size: 140 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Censory
A small library which will convert censored words to * so that we can process string on frontend side : )
# ImplementationAdd jitpack to your maven sources
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}Add Censory as a dependency to your
build.gradle
dependencies {
implementation 'com.github.KapilYadav-dev:Censory:1.0.4'
}# Usage
1) Use with default list
2) Use with custom list# Use with default list
String string ="Your string";
Censory censory = new Censory();
String output=censory.defaultCensor(string,context);# Use with custom list
String string ="Your string";
List words =Arrays.asList("head", "now");
Censory censory = new Censory();
String output=censory.customCensor(string,words);