How to find accidental repeated words
-
- Posts: 140
- Joined: 2013-03-19 16:22:50
How to find accidental repeated words
Hi,
Is there a macro or other way to find accidental repeated words?
I find after heavy editing sometimes I fail to notice small repeated words like 'to to' or 'the the', even on copy-edit.
Spell check doesn't flag them.
I looked through the macros and the manual and can't find anything that appears to do the job.
?
wF
Is there a macro or other way to find accidental repeated words?
I find after heavy editing sometimes I fail to notice small repeated words like 'to to' or 'the the', even on copy-edit.
Spell check doesn't flag them.
I looked through the macros and the manual and can't find anything that appears to do the job.
?
wF
- martin
- Official Nisus Person
- Posts: 5230
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: How to find accidental repeated words
There is a way to find accidentally duplicated words using PowerFind (aka: regular expressions). In this case you'd want to use an expression like:
If you want to learn more about this particular PowerFind expression, you might see this related post in another thread. That post, and the following discussion, goes into some of the PowerFind features employed here.
You can insert those PowerFind "bubbles" using the little gear icon menu next to the "Find what" field.If you want to learn more about this particular PowerFind expression, you might see this related post in another thread. That post, and the following discussion, goes into some of the PowerFind features employed here.
- martin
- Official Nisus Person
- Posts: 5230
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: How to find accidental repeated words
Oh, and some more tips:
1. You can save a PowerFind expression you've created using that same gear icon menu, and then later reload it.
2. You can also turn any Find/Replace expressions you've created into a macro using that gear icon menu. I'll attach such a macro for this duplicate word search here.
1. You can save a PowerFind expression you've created using that same gear icon menu, and then later reload it.
2. You can also turn any Find/Replace expressions you've created into a macro using that gear icon menu. I'll attach such a macro for this duplicate word search here.
- Attachments
-
- Find Next Duplicate Word.nwm.zip
- (3.1 KiB) Downloaded 538 times
-
- Posts: 140
- Joined: 2013-03-19 16:22:50
Re: How to find accidental repeated words
Great Martin, thanks, works nicely. Using this, with a keyboard command assigned to it, I found five accidentally repeated words in a 200,000 word manuscript in under two minutes!martin wrote: I'll attach such a macro for this duplicate word search here.

wF
-
- Posts: 140
- Joined: 2013-03-19 16:22:50
Re: How to find accidental repeated words
Great Martin, thanks, works nicely. Using this, with a keyboard command assigned to it, I found five accidentally repeated words in a 200,000 word manuscript in under two minutes!martin wrote: I'll attach such a macro for this duplicate word search here.

wF
P.S. Considering how often I see this nowadays in professionally published books ('and and' or 'the the' being the likeliest offenders), I'd suggest you include this macro as part of the shipping package of Nisus, and draw attention to it in the manual. Either that, or put an option into the Spellchecker to flag doubled words (with a checkbox). However I think the macro is a better option, because I did find many legitimate words doubled, and it wouldn't be good to have those underlined in red all the time.
- martin
- Official Nisus Person
- Posts: 5230
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: How to find accidental repeated words
Excellent, I'm glad this macro did the trick!
I think that's a good suggestion (on both counts). I'll see about getting this macro added to the default set, and I'll up-vote the enhancement request to add this feature to the spellchecking process.withoutFeathers wrote:I'd suggest you include this macro as part of the shipping package of Nisus, and draw attention to it in the manual. Either that, or put an option into the Spellchecker to flag doubled words (with a checkbox). However I think the macro is a better option, because I did find many legitimate words doubled, and it wouldn't be good to have those underlined in red all the time.
- greenmorpher
- Posts: 767
- Joined: 2007-04-12 04:01:46
- Location: Melbourne, Australia
- Contact:
Re: How to find accidental repeated words
This macro flags repeates for individual correction, I hope?
Cheers, geoff
Cheers, geoff
- martin
- Official Nisus Person
- Posts: 5230
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: How to find accidental repeated words
You could have it do that as well. I'm attaching a macro here that scans the whole document and asks the user about each duplicate it finds, offering to fix it or move to the next one.greenmorpher wrote:This macro flags repeates for individual correction, I hope?
- Attachments
-
- Find Next Duplicate Word.nwm.zip
- (3.54 KiB) Downloaded 557 times
- greenmorpher
- Posts: 767
- Joined: 2007-04-12 04:01:46
- Location: Melbourne, Australia
- Contact:
Re: How to find accidental repeated words
Many thanks, Martin. I've loaded it and am ready to go! I was thinking mainly of some instances of "that that" -- a rather clumsy but sometimes useful construction. Actually, I was thinking there must be others, but then the more I thought about it, the more I came to think "that that" was the only one!
Cheers, geoff

Cheers, geoff
Re: How to find accidental repeated words
Repeating words is such a no nogreenmorpher wrote:Many thanks, Martin. I've loaded it and am ready to go! I was thinking mainly of some instances of "that that" -- a rather clumsy but sometimes useful construction. Actually, I was thinking there must be others, but then the more I thought about it, the more I came to think "that that" was the only one!![]()
Cheers, geoff

Patrick
- greenmorpher
- Posts: 767
- Joined: 2007-04-12 04:01:46
- Location: Melbourne, Australia
- Contact:
Re: How to find accidental repeated words
Excellent, patrick! 
Cheers, geoff

Cheers, geoff