File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## (C) IDoUseLinux, MIT License, 2023
4
4
5
- def spoof_text (ai_text , scramble_aggresiveness = 30 ) :
5
+ def spoof_text (ai_text , scramble_aggresiveness ) :
6
6
spoofed_text = ''
7
7
for letter in ai_text :
8
8
## We take the original string and start scrambling it with look-alikes
@@ -28,4 +28,21 @@ def spoof_text(ai_text, scramble_aggresiveness = 30) :
28
28
spoofed_text += letter
29
29
return spoofed_text
30
30
31
- print (spoof_text (input ("Enter the AI generated text:\n " ), scramble_aggresiveness = 5 ))
31
+ ai_text = ''
32
+ while True :
33
+ ## We ask them to input the ai-generated text 1 paragraph at a time because any enters would mess with the input option.
34
+ ai_paragraph = input ("Please enter the AI-generated text 1 paragraph at a time. Leave blank if finished copying.\n " )
35
+ if ai_paragraph != '' :
36
+ ai_text += ai_paragraph
37
+ else : break
38
+
39
+ scramble_aggresiveness = input ("Please input the amount of scramble aggressiveness, leave blank for default\n " )
40
+ print (scramble_aggresiveness )
41
+ while scramble_aggresiveness .isdigit () == False and scramble_aggresiveness != '' :
42
+ scramble_aggresiveness = input ("Please input the amount of scramble aggressiveness, leave blank for default\n " )
43
+
44
+ if scramble_aggresiveness == '' :
45
+ scramble_aggresiveness = 30
46
+ else : scramble_aggresiveness = int (scramble_aggresiveness )
47
+
48
+ print (spoof_text (ai_text = ai_text , scramble_aggresiveness = scramble_aggresiveness ))
You can’t perform that action at this time.
0 commit comments