@@ -49,7 +49,7 @@ filter.check('I have BoOb.');
49
49
// output: I have ****
50
50
filter .clean (' I have b00b' );
51
51
52
- // custom replaceKey
52
+ // custom replaceKey (one character only)
53
53
// output: I have ++++
54
54
filter .clean (' I have b00b' , ' +' );
55
55
@@ -122,7 +122,7 @@ Disadvantage:
122
122
### Filter
123
123
```
124
124
Attempt 1 (2.1): split into array (or using regex, somehow)
125
- using space to split it into array then check by bad- word list
125
+ using space to split it into array then check by profanity word list
126
126
Advantage:
127
127
- simple
128
128
Disadvantage:
@@ -131,18 +131,18 @@ Disadvantage:
131
131
e.g. Great tit (https://en.wikipedia.org/wiki/Great_tit)
132
132
133
133
Attempt 2 (2.2): filter word inside (with or without space)
134
- detect all alphabet that contain "bad word" (e.g. `thistextisfunnyboobsanda55`)
134
+ detect all alphabet that contain "profanity word" (e.g. `thistextisfunnyboobsanda55`)
135
135
Advantage:
136
136
- simple
137
- - can detect "un-spaced" bad word
137
+ - can detect "un-spaced" profanity word
138
138
Disadvantage:
139
139
- many "false positive"
140
140
e.g. http://www.morewords.com/contains/ass/
141
141
e.g. Clbuttic mistake (filter mistake)
142
142
```
143
143
144
144
Summary
145
- - We don't know all methods that can produce bad word
145
+ - We don't know all methods that can produce profanity word
146
146
(e.g. how many different ways can you enter a55 ?)
147
147
- There have a non-algorithm-based approach to achieve it (yet)
148
148
- People will always find a way to connect with each other
0 commit comments