Skip to content

Commit 1d1d18c

Browse files
authored
Updated Version.
Fixed some bugs regarding copy-pasting issues and also improved the experience by allowing for the tweaking of the scramble aggressiveness.
1 parent 01b8fb0 commit 1d1d18c

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

aint.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## (C) IDoUseLinux, MIT License, 2023
44

5-
def spoof_text(ai_text, scramble_aggresiveness = 30) :
5+
def spoof_text(ai_text, scramble_aggresiveness) :
66
spoofed_text = ''
77
for letter in ai_text :
88
## We take the original string and start scrambling it with look-alikes
@@ -28,4 +28,21 @@ def spoof_text(ai_text, scramble_aggresiveness = 30) :
2828
spoofed_text += letter
2929
return spoofed_text
3030

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))

0 commit comments

Comments
 (0)