Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8409845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:01:37+00:00 2026-06-10T00:01:37+00:00

I am building a web tool to check whether the submitted content is taken

  • 0

I am building a web tool to check whether the submitted content is taken from web or is it submitter own work. A plagiarism detector.

I have some idea that I can generated check sum and use that as a key to compare with other entries. However, if someone has made some small changes like including/removing comments, changing variables/function name and so on then the checksum will be different, so this approach won’t work.

Any suggestions for a better way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T00:01:39+00:00Added an answer on June 10, 2026 at 12:01 am

    Plagiarism detection is a special case of similarity detection. This is a big field of study that’s almost as old as computer science its self. There is a lot of published research, and there just isn’t a single simple answer.

    See, eg, a Google Scholar search for “code similarity plagiarism” or “plagiarism detection”. Regular Google searches for things like “source code similarity detection algorithm” can also be useful.

    There are plenty of existing tools in the space, too, so I’m surprised you’re trying to write your own.

    As you’ve noted, a check-sum won’t do the job unless the code is perfectly identical. Techniques that can help include:

    • Building word-frequency histograms and comparing them

    • Extracting comment text and looking for copied comments using text-substring matching

    • Extracting variable, class and method names and looking for other code that uses the same names. You have to do a lot of correction for “obvious” names that everyone will choose, and for names that’re dictated by the problem, like implementing a particular interface or API. Private class member variables and the local variables inside a function or method are the most useful to compare. You will need the help of a compiler or at least syntax parser for the language to extract these.

    • Looking for differences in indenting style. Did the user use all-spaces indenting, except for this one function that’s indented with tabs?

    • Comparing parse trees or token streams to strip out the effects of formatting. You’d usually have to compare individual functions, etc, not just the code as a whole.

    • … and lots more

    What you’ll have to do is produce a report that weighs all these factors and others and presents them to a human so the human can make a decision. Your tool should explain why it thinks two results are similar, not just that they are similar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been investigating building web parts for sharepoint 2010 and currently have a
What all possible support is there from open source world for building web based
I'm going to start a new project that's building web apps from scratch. I
I am building mobile web sites with Jquery Mobile. I also have a javascript-based
I am building a web-based tool for internal purposes for my company that runs
I am building a web-application which uses Piwik. Piwik is open-source analytics tool, similar
I am building a setup package using the WIX tool. I have a requirement
I want to bounce an idea around. I have been building web services and
I'm building a web tool which allows users to upload PDFs to a server
I have started building a web site and have used Require.js for selectively loading

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.