In an academic context, plagiarism is a serious threat to the integrity of exercises given to students, especially in introductory programming courses. For various reasons, students may, intentionally or unintentionally, attempt to plagiarize solutions for given exercises. Since introductory programming courses often have a large number of students and the complexity of solutions is not negligible, instructors often employ plagiarism detection
systems to be able to spot possible cases of plagiarism.
Current state-of-the-art systems often disregard textual content in the source code during the detection of plagiarism. However, recent developments have shown that possible cases of plagiarism often do contain similar or identical textual constructs, such as inline or documentation comments. These comments could be used to find cases of plagiarism more easily, or further aid instructors during the manual review of suspicious submissions. Therefore, in this thesis, we enhance plagiarism detection engines by introducing the matching of textual components in the form of source code comments into the plagiarism detection.
To process comments during the plagiarism detection, we introduce a three-step comment processing pipeline, which extracts comments from the source-code, compares them among the submissions, and merges the results into the result of the plagiarism detection. Furthermore, we compare three different matching algorithms for matching comments and explore the impact of natural language preprocessing of the comments inside this pipeline.
The pipeline with all matching algorithms was evaluated and compared on both datasets containing real student submissions from a first-year programming course and datasets containing submissions fully generated by artificial intelligence. These results demonstrate the effectiveness of the comment processing pipeline in real applications.
| Related KIT institution | Institute of Information Security and Dependability (KASTEL) |
|---|---|
| Language | English |
| KITopen ID | 1000184919 |
| Keywords | Software Plagiarism Detection, Source Code Plagiarism Detection, Tokenization, Computer Science Education |
| Publisher | Karlsruher Institut für Technologie (KIT) |
| Size | VI, 46 p. |
| Exam data | 12.09.2025 |
| Supervisors | Ralf Reussner Anne Koziolek Robin Maisch Timur Sağlam |
| External relations | Research data/Software |