How obaskly/aitextdetectionbypass works
Main Components
• GUI / Entry Point: Represented by gui.py – this is the main interface that users interact with to run the paraphrasing tasks.
• Paraphrasing Engine: Implemented in paraphraser.py which likely contains the core logic to interact with undetectable.ai to transform content.
• File Processing Module: Contained in the file_processing folder (reader.py and save_paraphrased_doc.py) – for reading input files (TXT, DOCX, PDF) and saving the paraphrased output.
• API and Email Management:
• api_grabber.py handles extraction of API keys from stored JSON data.
• utils/email_utils.py along with other utilities in the utils folder (automation_utils.py, text_splitter.py) manage email functions, Gmail registration/verification, and text chunking.
• AI Detection Module: Represented by ai_scanner.py which scans the text for AI detection percentage.
• External Integrations & Configuration:
• json_files folder holds the credentials (e.g., credentials.json required for Gmail API access).
• The external undetectable.ai platform and Google’s Gmail API services act as external dependencies.
Relationships and Interactions
• The GUI (gui.py) is the central orchestrator. When the user starts the process, the GUI:
• Invokes the File Processing Module to load and extract text from files.
• Uses utils/text_splitter.py to break the text into manageable chunks.
• Calls paraphraser.py to process each chunk via the undetectable.ai API.
• Leverages automation_utils.py and email_utils.py to manage Gmail-based registration/verification and API key storage/extraction (with api_grabber.py).
• Optionally routes the processed text through ai_scanner.py to check AI detection percentage.
• Finally, uses file_processing/save_paraphrased_doc.py to store the output.
• Each module interacts in a pipeline-like fashion, where data (text chunks and API keys) flows from one component to another.
Architectural Patterns and Design Principles
• Separation of Concerns: Each file or module has a distinct responsibility – UI (gui.py), paraphrasing (paraphraser.py), file I/O (file_processing), and utility functions (utils).
• Modularity & Reusability: The project splits key functionalities into separate modules that can be maintained or extended independently.
• External Service Integration: The design clearly abstracts external API interactions (both undetectable.ai and the Gmail API) from the business logic.