nisus.com
https://www.nisus.com/forum/

Find Duplicate Passages
https://www.nisus.com/forum/viewtopic.php?f=17&t=4415
Page 1 of 1

Author:  wolane [ 2011-07-24 11:58:50 ]
Post subject:  Find Duplicate Passages

Hi all--

Does anyone have, or know, a Macro which can find duplicate passages? I'm working with a 200-page document in which I've been doing a lot of cutting and pasting, and I'm afraid some paragraphs or sentences might have been pasted more than once, or copy/pasted rather than cut/pasted. I've been finding that Compare Documents macro very useful for merging different versions of chapters, so I wonder if there might also be a way to automate the search for duplications. Any thoughts?

Thanks.

BILL.

Author:  martin [ 2011-07-24 17:59:16 ]
Post subject:  Re: Find Duplicate Passages

Hi Bill- certainly a macro could do such a thing. The question is, what constitutes a duplicate? A sentence that's exactly the same? What about if a few words are arranged differently, or you use a slightly different word choice (eg: "in" instead of "within")? Getting all those details right would take some work.

Author:  wolane [ 2011-07-24 18:34:35 ]
Post subject:  Re: Find Duplicate Passages

Well, Martin, I was imagining it would work the same as the document comparison macro... in other words, at the paragraph level or at the sentence level, the structure would have to be identical.

BILL.

Author:  martin [ 2011-07-25 15:30:03 ]
Post subject:  Re: Find Duplicate Passages

This macro might serve your needs. It creates a copy of the frontmost/active document, and marks all duplicates in that copy with special bookmarks. These bookmarks will be listed at the end of the duplicated document.

Attachments:
Mark Duplicate Text.nwm [22.77 KiB]
Downloaded 367 times

Author:  wolane [ 2011-07-25 18:13:42 ]
Post subject:  Re: Find Duplicate Passages

Wow that’s amazing, Martin, and it totally works. I’m slightly embarrassed to admit, it found two duplicated passages in my 227 page document.
Nisus is a truly great program, especially with those macros!

BILL.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/