How geshna-b/plagiarism-detection-system works
The repository implements a hybrid plagiarism detector with a Flask dashboard and a command-line workflow. In both, submitted text is compared with topic-related Wikipedia material using Aho–Corasick matching, then turned into a report; the dashboard also accepts uploads and supports report downloads. The README describes semantic comparison and evaluation metrics, but the sampled detector implements exact pattern matching, so those capabilities are not represented as verified runtime stages. Some dashboard and preprocessing details are unsampled; uncertain links are omitted.
Main entry points: app.py Flask dashboard · main.py CLI workflow · llm_integration.py Topic and Wikipedia integration · automata_detector.py Plagiarism detector
Components 12
User entry points
- Flask dashboard
code/app.py - Dashboard template
code/templates/index.html - CLI workflow
code/main.py
Topic and source collection
- Topic and Wikipedia integration
code/detectors/llm_integration.py - Groq LLM
- Wikipedia
- Runtime configuration
code/utils/config.py
Text detection
- Plagiarism detector
code/detectors/automata_detector.py - Text preprocessing
code/detectors/text_processor.py
Results and reports
- Report generation
code/utils/reporting.py - JSON report output
Other components
- User
Connections 15
- User → Flask dashboard: submits text
code/app.py - Dashboard template → Flask dashboard: sends requests
- User → CLI workflow: provides text
code/main.py - Flask dashboard → Topic and Wikipedia integration: collects sources
code/app.py - Flask dashboard → Plagiarism detector: checks text
code/app.py - Flask dashboard → Report generation: generates report
code/app.py - CLI workflow → Topic and Wikipedia integration: expands and fetches
code/main.py - CLI workflow → Plagiarism detector: checks text
code/main.py - CLI workflow → Report generation: generates report
code/main.py - Topic and Wikipedia integration → Runtime configuration: validates settings
code/detectors/llm_integration.py - Topic and Wikipedia integration → Groq LLM: invokes model
code/detectors/llm_integration.py - Topic and Wikipedia integration → Wikipedia: fetches content
code/detectors/llm_integration.py - Plagiarism detector → Text preprocessing: normalizes and tokenizes
code/detectors/automata_detector.py - Flask dashboard → JSON report output: downloads JSON
code/app.py - CLI workflow → JSON report output: saves JSON
code/main.py