Turnitin’s AI writing report and source-code similarity checking address different questions, so a result from one should not be mistaken for the other.

Here’s what students and instructors should know about Turnitin, code comparison, and the limits of automated detection.

Does Turnitin check code plagiarism?

Turnitin says its AI writing detection model does not reliably detect code.

Its AI writing report is designed to classify writing, not to establish whether a program was copied or whether two code files share an origin.

A writing-focused AI score should not be treated as a code plagiarism score.

Whether code is checked depends on the tools and procedures an institution uses.

Some courses rely on instructor review or dedicated source-code similarity systems.

Others may have no automated code comparison at all.

Turnitin’s availability for written assignments does not, by itself, reveal how a particular programming assignment is reviewed.

AI writing detection and code similarity are different

AI authorship classification estimates whether submitted prose may have been generated by an AI system.

Source-code similarity analysis compares programs for overlap or structural resemblance.

These methods examine different kinds of material and produce results that answer different questions.

  • AI writing report: concerns patterns in prose and offers an indicator about possible AI-generated writing.
  • Code similarity report: identifies similarities between source-code submissions or other comparison material, depending on the tool and its data.
  • Academic review: considers the assignment, course rules, permitted collaboration, citations, drafts, and other relevant context.

Neither kind of automated result proves authorship or misconduct on its own.

Similarity can have legitimate explanations, including starter code, required libraries, standard algorithms, shared specifications, or permitted collaboration.

An AI writing indicator also cannot establish who wrote a program.

How do source-code similarity tools work?

Code comparison systems can look for matching text, token sequences, or broader structural patterns in submitted programs.

Depending on the system, comparisons may account for changes to formatting or identifiers.

A report may flag portions that resemble another submission or a reference source, but its findings still need interpretation.

For example, two students following the same assignment requirements may independently use the same basic loop or function structure.

Conversely, copied code can be altered enough to reduce obvious text overlap.

A similarity result is therefore a lead for review, not a definitive judgment about intent, authorship, or policy violations.

Instructors may consider the highlighted passages alongside assignment instructions, the student’s explanation of the solution, version history, cited sources, and course collaboration rules.

The relevant evidence and review process vary by institution and assignment.

What should students do if they are concerned?

Start with the course policy.

Check what kinds of collaboration, starter code, libraries, AI assistance, and outside references are allowed, and how borrowed code must be acknowledged.

If a rule is unclear, ask the instructor before submitting rather than relying on assumptions about what software can detect.

Keep ordinary records of your work, such as drafts, commits, notes, and cited references.

These can help explain how you developed a solution if questions arise.

Follow your institution’s procedures and respond to any concern with specific information about your process and sources.

Do not treat a low similarity result as proof that code is original or a high result as proof of plagiarism.

Automated systems can miss overlap or flag similarities that have legitimate explanations.

The assignment’s rules and a careful human review matter.

Where does Codespy fit?

Codespy is an external source-code detection option for people seeking a tool focused on code similarity.

It is distinct from Turnitin’s AI writing report.

This distinction does not make any detector a final authority: results should be read as indicators and checked against source material and relevant academic rules.

Before using an external service, review its current documentation, data-handling terms, supported languages, and intended use.

Do not assume a tool has been tested in your institution’s workflow or that its results will be accepted as evidence.

This article does not report firsthand testing or endorse a particular product.

What a detection result can and cannot tell you

A code similarity report may show that portions of two programs resemble each other under the system’s comparison method.

It generally cannot determine, by itself, whether the resemblance came from copying, permitted collaboration, common instructions, or independently reaching a conventional solution.

Likewise, an AI writing classification is not a reliable method for deciding whether code was AI-generated.

Use automated reports as one input in a broader review.

Consider what the tool actually analyzed, what material it compared against, and whether the flagged similarities are meaningful in context.

No single score should substitute for the applicable policy or a fair review of the work.