We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44baae0 commit 73cf3c4Copy full SHA for 73cf3c4
Censor word detection/censor_word_detection.py
@@ -0,0 +1,14 @@
1
+from better_profanity import profanity
2
+
3
+def detect(data):
4
+ try:
5
+ '''profanity.censor(data) will print **** '''
6
+ '''profanity.censor(data,'#') will print #### if censor word it detected; else it will print data you have entered '''
7
+ output=profanity.censor(data,'#')
8
+ print(output)
9
+ except Exception as e:
10
+ print(e)
11
12
+profanity.load_censor_words()
13
+data = input("enter your msg:")
14
+detect(data)
0 commit comments