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 277699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T01:07:11+00:00 2026-05-12T01:07:11+00:00

I have a project where I need to compare multi-chapter documents to a second

  • 0

I have a project where I need to compare multi-chapter documents to a second document to determine their similarity. The issue is I have no idea how to go about doing this, what approaches exist or if their are any libraries available.

My first question is… what is similar? The numbers of words that match, the number of consecutive words that match?

I could see writing a parser that puts each document into an array with the word and location and then comparing them.

I saw the earlier question at
Algorithms or libraries for textual analysis, specifically: dominant words, phrases across text, and collection of text

however, it seems somewhat different than what I am attempting to do.

Any options or pointers people may have would be great!

  • 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-05-12T01:07:11+00:00Added an answer on May 12, 2026 at 1:07 am

    “what is similar” we can’t tell you that, this is a statement of a fundamental requirement of your project. If you don’t know this, its a bit soon to think about how to do it.

    It may be helpful to ask the question “why”. What will the measure of similarity be used for?

    If, for example, the purpose is to detect plagiarism then detecting that two essays are similar because they talk about the same subjects and make similar references is not likely to be helpful – the entire class would submit similar essays! So there you might be looking for matching exact sentences and phrases.

    If instead you are trying build a catalogue for some documents then perhaps you would search out key words. Two documents are similar if they use the same vocabulary of words over a certian length, or similar proper nouns.

    Those two examples are intended to demonstrate that until we understand what is meant by similar it is hard to give much advice.

    However, here’s a possible approach. You’ve could write two main things: an Extractor and a Comparator.

    The extractor’s job is to munge through the document and produce the set (or list, does it need to be ordered ?) of chunks that are the essence of the document: these might be individual words or sentences and phrases.

    The comparator’s job is to evaluate similarity of two documents “essence”.

    Simple example: extract the unique list of words of 8 letters or more from the document.
    Comparison could then be two documents are similar if one’s set contains more than 75% of the others.

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

Sidebar

Related Questions

I have a project requirement where I need to authenticate against ActiveDirectory in a
I have a project that I'm working on and I need to be able
I am fairly new to MySQL and have a project in which I need
I have this large C++ project that I need to build on a platform
We have need for a rating system in a project we are working on,
I'm working on a project where I have 2 web services that need the
In the project I am currently working on, we have the need to develop
I host a project on CodePlex, but a bunch (200+) files need to have
In order to improve my open source project, I need testers. I have created
Hey all, I have something of an interesting requirement for my project. I need

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.