Coder Social home page Coder Social logo

lamhotsimamora / filter-kata-kotor Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 4.0 46 KB

Javascript Function For Filter String Of Bad Words ( Indonesia Language & English Language )

Home Page: https://lamhotsimamora.github.io/Filter-Kata-Kotor/

License: Apache License 2.0

HTML 100.00%
javascript bad word bad-word filter filtering-bad-word

filter-kata-kotor's Introduction

Filter-Kata-Kotor

This repository is just an example for filtering of bad words with JAVASCRIPT and also you can use this library for your website. Enjoy ! Please share this page if you like it ! (Sorry ! if the bad words is too HARD to say ! ) (Source bad words from Google). I was used this library for my website (http://x.lamhotsimamora.com/)


Clone

git clone https://github.com/lamhotsimamora/Filter-Kata-Kotor.git

DEMO

https://lamhotsimamora.github.io/Filter-Kata-Kotor/

https://jsfiddle.net/LamhotSimamora/d3qsvLum/4/

CDN

https://cdn.rawgit.com/lamhotsimamora/Filter-Kata-Kotor/master/filter-bad-word.js

HTML

<script type="text/javascript" src="https://cdn.rawgit.com/lamhotsimamora/Filter-Kata-Kotor/master/filter-bad-word.js"></script>

How to use ?


First

Function with default dictionary (Indonesia language) of bad word and default filter string "***"

var my_string = "Awas kau ya BABI !";

var result = _filterBadWord(my_string);

Second

Function with default dictionary (Indonesia language) of bad word and with custom filter string "####" (any character that you want)

var my_string = "Awas kau ya BABI !";

var result = _filterBadWord(my_string,"###");

Third

Function with custom dictionary of bad word and with custom filter string "..." (any character that you want)

var my_string = "Hi bro ! You are fucking bitch ! Asshole !";

const my_bad_word = [
	'Asshole','Fuck You','Damn','Bitch','Fucking'
];

var result = _filterBadWord(my_string,"...",my_bad_word);

filter-kata-kotor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.