How vanshikadekate/ai-plagiarism-detection-system works
This C++ console application accepts submitted text, preprocesses it, estimates AI-like writing patterns, compares it with a local reference corpus, and presents a combined report. Users may also choose to rephrase text and analyze it again; the sampled main.cpp excerpt shows that option and later analysis, while the exact paraphraser invocation is not visible. The map distinguishes orchestration, text analysis, reference-document handling, and reporting. Some connections are omitted where the available excerpts do not establish the call.
Main entry points: main.cpp Workflow coordinator · DocumentManager.cpp Reference loader · Document.cpp Document indexing · TextProcessor.cpp Text preprocessing
Components 10
Console workflow
- Workflow coordinator
main.cpp
Text analysis
- Text preprocessing
TextProcessor.cpp - AI pattern scoring
AIDetector.cpp - Text paraphrasing
Paraphraser.cpp
Reference comparison
- Reference loader
DocumentManager.cpp - Local text corpus
data/reference - Document indexing
Document.cpp - Similarity ranking
SimilarityAnalyzer.cpp
Output
- Combined report
ReportGenerator.cpp
Other components
- Console user
Connections 12
- Console user → Workflow coordinator: submits text
main.cpp - Workflow coordinator → Text preprocessing: preprocesses text
main.cpp - AI pattern scoring → Text preprocessing: tokenizes text
AIDetector.cpp - Workflow coordinator → AI pattern scoring: scores patterns
main.cpp - Workflow coordinator → Reference loader: loads references
main.cpp - Reference loader → Local text corpus: reads files
DocumentManager.cpp - Reference loader → Document indexing: creates documents
DocumentManager.cpp - Document indexing → Text preprocessing: builds text index
Document.cpp - Workflow coordinator → Similarity ranking: ranks similarities
main.cpp - Similarity ranking → Document indexing: compares documents
SimilarityAnalyzer.cpp - Workflow coordinator → Combined report: presents results
main.cpp - Workflow coordinator → Text paraphrasing: may rephrase