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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 167k
  • Answers 167k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer consider this: an integer can be conceptualized as either an… May 12, 2026 at 1:36 pm
  • Editorial Team
    Editorial Team added an answer I would guess that the top image was rendered with… May 12, 2026 at 1:36 pm
  • Editorial Team
    Editorial Team added an answer It wasn't SVN related at all, at least not directly.… May 12, 2026 at 1:36 pm

Related Questions

I have a project where I need to compare 2 executeable files and see
I'm known around the office as the backup guy. As a developer, I often
Ok, I have a question that I know is very opinionated (based on all
Ok now I am confused. I have been getting advice from SO users on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.