Skip to content

Commit

Permalink
docs(README.md): Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoee committed Mar 8, 2017
1 parent f69fd04 commit a1b0568
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ filter.check('I have BoOb.');
// output: I have ****
filter.clean('I have b00b');

// custom replaceKey
// custom replaceKey (one character only)
// output: I have ++++
filter.clean('I have b00b', '+');

Expand Down Expand Up @@ -122,7 +122,7 @@ Disadvantage:
### Filter
```
Attempt 1 (2.1): split into array (or using regex, somehow)
using space to split it into array then check by bad-word list
using space to split it into array then check by profanity word list
Advantage:
- simple
Disadvantage:
Expand All @@ -131,18 +131,18 @@ Disadvantage:
e.g. Great tit (https://en.wikipedia.org/wiki/Great_tit)
Attempt 2 (2.2): filter word inside (with or without space)
detect all alphabet that contain "bad word" (e.g. `thistextisfunnyboobsanda55`)
detect all alphabet that contain "profanity word" (e.g. `thistextisfunnyboobsanda55`)
Advantage:
- simple
- can detect "un-spaced" bad word
- can detect "un-spaced" profanity word
Disadvantage:
- many "false positive"
e.g. http://www.morewords.com/contains/ass/
e.g. Clbuttic mistake (filter mistake)
```

Summary
- We don't know all methods that can produce bad word
- We don't know all methods that can produce profanity word
(e.g. how many different ways can you enter a55 ?)
- There have a non-algorithm-based approach to achieve it (yet)
- People will always find a way to connect with each other
Expand Down

0 comments on commit a1b0568

Please sign in to comment.