Skip to content

Commit 00a11f5

Browse files
author
Tushar
committed
First commit
1 parent 707b911 commit 00a11f5

31 files changed

+233
-0
lines changed
Loading
Loading
Loading
24.5 KB
Loading
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Censor Word Detection
2+
3+
## Aim
4+
5+
In this project I have created a python script that will alert user if he/she has written any censor/abusive/curse word and save that in text file
6+
7+
## Purpose
8+
9+
Sometimes we aren't aware of what we are writing and it is possible that in flow we write some abusive words. Such words not only affect our personal image and career but also hurts the person with whom we are having conversation with and it may lead to unnecessary disputes. Therefore using this script the users can keep monitoring themselves so that they won't write any censor words in their text.
10+
11+
## Short description of package/script
12+
13+
- For GUI Tkinter is used.
14+
- To work with Images I have used PIL library
15+
- I am using shortuuid to get unique name for files and also using date time module with that
16+
- Also using Multiprocessing so that text can be analyzed in real time and data can be saved appropriately
17+
18+
19+
## Workflow of the Project
20+
21+
1. As soon as script starts running a GUI is seen in which user has to input the text
22+
2. I am using a dataset "full list of bad words" to detect censor words
23+
3. Now this user input is checked with this list and if match is found the text is displayed in screen.
24+
4. At the same time text matter is saved in text folder which is in Utils\CurseWordsDetected\ folder
25+
5. Unique name is selected so that we can be assured that files are not overwritten
26+
6. User can correct mistakes (if any) and then can simply click save button to save text matter
27+
7. This file is then saved in Utils\InputFile, Naming conventions are same as above
28+
29+
30+
31+
## Setup instructions
32+
33+
1. Install necessary libraries from requirements.py file
34+
2. Run censor.py file
35+
3. Enter text in textbox and correct mistakes if any.
36+
4. Mistakes can be seen in terminal and all the mistakes are saved in text file also
37+
5. After satisfactory results click save button to save text and this file can be found in InputFile Folder
38+
39+
## Compilation Steps
40+
41+
This program using multiprocessing and it runs 2 functions i.e. "sensor" and "guiForCensor" simultaneously.
42+
As soon as user types in data the text is saved in temp file which is hidden and no use to the user.
43+
The changes are made there in realtime and same text data is then retrieved to evaluate whether censor words exists or not
44+
45+
\
46+
## Output
47+
48+
Display images/gifs/videos of output/result of your script so that users can visualize it
49+
50+
51+
## Author(s)
52+
53+
Tushar Amdoskar
54+
55+
[Tushar's Website](https://tusharamd.github.io/)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bum
2+
bum boy
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bum
2+
bum boy
3+
ho
4+
ass
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
damn
2+
godamn
3+
ugly
4+
shit
5+
ho
6+
ass
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cum
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
darkie
2+
nigger

0 commit comments

Comments
 (0)