Showing posts with label Editing programs. Show all posts
Showing posts with label Editing programs. Show all posts

Tuesday, October 16

Check Your Writing For Adverbs And Other Problem Words: MS Word Macros

Check Your Writing For Adverbs And Other Problem Words: An MS Word Macro

Today I'm going to do something a bit different. I'm going to talk about how you can augment MS Word's ability to check grammar. Yes there are professional editing programs that do all this, and more, but sometimes you don't want to copy and paste your story into an online editor, especially if it's a 100,000 word novel!

Before I bought my new computer I had a macro for MS Word that highlighted "ly" adverbs, as well as other problem words, that clutter up your writing. For instance, "very", "that", "much".

I love the quotation, attributed to Mark Twain, "Substitute 'damn' every time you're inclined to write 'very'; your editor will delete it and the writing will be just as it should be."

Unfortunately, when I transfered my data over to my new computer I forgot my macros so they all went to the great macro heaven in the sky. Now keep them in Dropbox, lesson learnt.

This post has two parts. First, I'll show you the macros I use and then I'll go through how to use them in MS Word.

Let's get started!

The Macro: Finding "ly" Adverbs


The following macro will highlight all the "ly" words in your manuscript. I wanted to make it highlight the entire word, but at the moment it only highlights the "ly" part of it. Oh well, it works! The original macro, written by Subcortical over at Stackoverflow, can be found here: Microsoft Word Macro for highlighting multiple words.

Sub highlight_ly()
   Options.DefaultHighlightColorIndex = wdYellow
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    Selection.Find.Replacement.Highlight = True
    With Selection.Find
        .Text = "ly"
        .Forward = True
        .Wrap = wdFindContinue
        .Format = True
        .MatchCase = False
        .MatchSuffix = True
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
End Sub

Here's another macro that finds, and highlights, words that often serve only to clutter text. The original macro was written by Subcortical and can be found in the same article I linked to, above.
Sub highlight_targets()
  Dim range As range
  Dim i As Long
  Dim TargetList

  TargetList = Array("very", "that") ' put list of terms to find here

  For i = 0 To UBound(TargetList)

    Set range = ActiveDocument.range

    With range.Find
    .Text = TargetList(i)
    .Format = True
    .MatchCase = True
    .MatchWholeWord = True
    .MatchWildcards = False
    .MatchSoundsLike = False
    .MatchAllWordForms = False

    Do While .Execute(Forward:=True) = True
    range.HighlightColorIndex = wdTurquoise
    Loop
    End With
  Next
End Sub

Using the macros


I have MS Word 2007, so keep that in mind if you're using a different version.

1) Go into MS Word and click "View" on the ribbon.

2) On the far right of the ribbon you'll see MACROS. Click it.

3) A Macro dialog box pops up. Type in the macro name "highlight_ly" and click CREATE. This will bring you into the Microsoft Visual Basic editor.

4) Copy this text:

   Options.DefaultHighlightColorIndex = wdYellow
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    Selection.Find.Replacement.Highlight = True
    With Selection.Find
        .Text = "ly"
        .Forward = True
        .Wrap = wdFindContinue
        .Format = True
        .MatchCase = False
        .MatchSuffix = True
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll

Now paste it between "Sub highlight_ly" and "End Sub".

5) Save the file (Crtl + S) and exit the Microsoft Visual Basic editor.

6) In MS Word repeat steps (1) and (2). This time instead of typing in a name and pressing the create button, select "highlight_ly" and press RUN. All the words ending in "ly" should be highlighted in yellow.

If you would like to also highlight words such as "this" and "that" repeat steps (1) through (6) only this time for the macro "highlight_targets". Note that the "highlight_targets" macro can be modified to include whatever words you'd like to highlight. All you have to do is include the words in the TargetList array.

I hope that's clear! (I can hear folks grumbling, "Yea, clear as mud!") If you have questions, do ask, and if there are any macros you'd like to share, please do!

Other articles you might like:
- Penelope Trunk: Blogging And Branding
- How To Design A Great Looking Book Cover
- The Best Way To Build A Writer's Platform Is To Write
- Aftermath Of The Department of Justice Lawsuit: Amazon Customers Getting Refunds

Links:
- Here's a great article on the passive voice from The University of North Carolina.

Photo credit: Catherinette Rings Steampunk.

Monday, September 24

Want Help With Editing? Try Free Editing Programs


Are you sick of hearing about sock puppets? Do you want to shut the world out, march into your writing cave and scribble like a madperson? I do! But when you emerge, pale and blinded by the light, you will have to decide: How are you going to edit all the glorious content you've created?

If you're anything like me, you understand you must edit your manuscript before you publish but you'll look for ways to reduce the cost. Some editors change less if your manuscript is mostly error free, so eliminating as many errors as you can before you send it off makes financial sense.

Apart from the cost, it's always nice to get your manuscript into the best possible shape before you send it out to readers. Which brings to mind something acutely embarrassing that happened to me last week: I emailed a short story to my critique group and only later--much later--noticed I'd sent them a first draft as opposed to the nearly final draft I'd intended to send! Although they were gracious, I still feel like I'd walked to the grocery story naked. Yes, that's a little off-topic, but I guess part of the reason for this post is I've resolved to make everything I send out as good as I can make it.

What's the solution? Editing programs! Preferably free editing programs.

What follows comes from a blog post of Virginia Ripple: Paid and Free Editing Software For Manuscripts. Here are the three programs Virginia uses: EditMinion, Pro Writing Aid, ClicheCleaner. She writes:
I use EditMinion first because it highlights adverbs, weak words, said replacements, sentences ending prepositions and passive voice in different colors. It wasn’t until I ran my first couple scenes through this free editing software that I realized I was in love with adverbs and had a real problem with passive voice.

Next I use Pro Writing Aid. This free editing software catches things like sticky sentences (sentences with too many glue words), vague and abstract words, overused words, repeated words and phrases, complex words and pacing. Like passive voice, I have a real fondness for sticky sentences, and this program finds those with ease.

Last of all, I use ClicheCleaner. It’s great for finding cliches and redundancies. You can download a free demo version that lets you scan up to 20 documents before needing to pay $12.95 to do any more. I downloaded ClicheCleaner because I always thought I had issues with using too many cliches. After using this free editing software, I was surprised to find I don’t have a big problem after all. Of course, even one can be too many.
I put the first three paragraphs of this post through EditMinion and Pro Writing Aid [1] and feel it did help. But, for me, that's not the real test of an editing program. I want to see what the program has to say about the prose of a writer I admire. I want to see what the program says about those paragraphs I read and I think, "I wish I could write like that!" THOSE are the kind of paragraphs I use to test editing programs.

Stephen King, On Writing
From the time I read his first book I've loved Stephen King's writing, so it's natural--or at least predicable--that I came to regard On Writing as something of a bible. How better than to test the editing program with Stephen King's prose? As you can see, I've also included Jim Butcher's work. I did this because if any editing program tells me that man can't tell a good story, then the program has spaghetti for circuits and is getting the old heave ho.

This is from page 153 of Stephen King's, On Writing:
Once I start work on a project, I don’t stop and I don’t slow down unless I absolutely have to. If I don’t write every day, the characters begin to stale off in my mind—they begin to seem like characters instead of real people. The tale’s narrative cutting edge starts to rust and I begin to lose my hold on the story’s plot and pace. Worst of all, the excitement of spinning something new begins to fade. The work starts to feel like work, and for most writers that is the smooch of death. Writing is at its best—always, always, always—when it is a kind of inspired play for the writer. I can write in cold blood if I have to, but I like it best when it’s fresh and almost too hot to handle.

I used to tell interviewers that I wrote every day except for Christmas, the Fourth of July, and my birthday. That was a lie. I told them that because if you agree to an interview you have to say something, and it plays better if it’s something at least half-clever. Also, I didn’t want to sound like a workaholic dweeb (just a workaholic, I guess). The truth is that when I’m writing, I write every day, workaholic dweeb or not. That includes Christmas, the Fourth, and my birthday (at my age you try to ignore your goddam birthday anyway). And when I’m not working, I’m not working at all, although during those periods of full stop I usually feel at loose ends with myself and have trouble sleeping. For me, not working is the real work. When I’m writing, it’s all the playground, and the worst three hours I ever spent there were still pretty damned good.
I'm only going to focus on two reports: The Overused Words Report and the Adverbs/Passive Report. For the following I use Pro Writing Aid. (I'm only using one editing program because, for me, the question isn't whether one program is better than another, it is whether any editing program is very good, and I think Pro Writing Aid is one of the better ones.)

Overused Words, Stephen King, On Writing:
Overused WordsFoundSuggestion
could0Awesome
feel/feeling/felt2Remove about 1 occurence
generic descriptions0Well done
had0Nice work
have4Remove about 2 occurences
hear/heard0Perfect
initial -ing1Very good
it/there7Remove about 3 occurences
just/then1Just right
knew/know0Excellent
initial conjunction0Way To go
look0Great work
-ly adverb2Nice job
maybe0Awesome
see/saw0Well done
smell/taste0Nice work
that6Remove about 4 occurences
was/were2Perfect
watch/notice/observe0Very good

 Adverbs/Passive Report, Stephen King, On Writing:
 I can't copy and paste the text, but no passive constructions were found and two adverbs were listed:
- Absolutely
- Usually

Jim Butcher, Small Favor
Pick any of Jim Butcher's Dresden books and, if you like urban fantasy with witty characters, then you'll end up becoming a fan of the series. Really. Try it. (If you want to read the series, start with the first book, Storm Front.)

The following are the first few paragraphs from Small Favor:
Winter came early that year; it should have been a tip-off.

A snowball soared through the evening air and smacked into my apprentice’s mouth. Since she was muttering a mantra-style chant when it hit her, she wound up with a mouthful of frozen cheer—which may or may not have been more startling for her than for most people, given how many metallic piercings were suddenly in direct contact with the snow.

Molly Carpenter sputtered, spitting snow, and a round of hooting laughter went up from the children gathered around her. Tall, blond, and athletic, dressed in jeans and a heavy winter coat, she looked natural in the snowy setting, her cheeks and nose turning red with the cold.

“Concentration, Molly!” I called. I carefully kept any laughter I might have wanted to indulge in from my voice. “You’ve got to concentrate! Again!”

The children, her younger brothers and sisters, immediately began packing fresh ammunition to hurl at her. The backyard of the Carpenter house was already thoroughly chewed up from an evening of winter warfare, and two low “fortress” walls faced each other across ten yards of open lawn. Molly stood between them, shivering, and gave me an impatient look.

“This can’t possibly be real training,” she said, her voice quavering with cold. “You’re just doing this for your own sick amusement, Harry.”

I beamed at her and accepted a freshly made snowball from little Hope, who had apparently appointed herself my squire. I thanked the small girl gravely, and bounced the snowball on my palm a few times. “Nonsense,” I said. “This is wonderful practice. Did you think you were going to start off bouncing bullets?”

Molly gave me an exasperated look. Then she took a deep breath, bowed her head again, and lifted her left hand, her fingers spread wide. She began muttering again, and I felt the subtle shift of energies moving as she began drawing magic up around her in an almost solid barrier, a shield that rose between her and the incipient missile storm.

“Ready!” I called out. “Aim!”
Overused Words, Jim Butcher, Small Favor:
Overused WordsFoundSuggestion
could0Awesome
feel/feeling/felt1Well done
generic descriptions0Nice work
had1Perfect
have3Remove about 1 occurence
hear/heard0Very good
initial -ing0Just right
it/there2Excellent
just/then1Way To go
knew/know0Great work
initial conjunction0Nice job
look2Remove about 1 occurence
-ly adverb9Remove about 3 occurences
maybe0Awesome
see/saw0Well done
smell/taste0Nice work
that2Perfect
was/were3Very good
watch/notice/observe0Just right

Adverbs/Passive Report, Jim Butcher, Small Favor:
I can't copy and paste this, but there are 9 adverbs:
- early
- suddenly
- carefully
- immediately
- thoroughly
- possibly
- freshly
- apparently
- gravely

The program also mistakenly flagged the name "Molly" as an adverb.

Stephenie Meyer, Twilight
I was going to stop there. Both Stephen King and Jim Butcher are marvelous writers and if any editing program says otherwise, it's not an editing program I want to use. So far I like what I've seen.

But I couldn't leave it at that. I wanted to see how Pro Writing Aid did with a piece of writing that Stephen King thinks is horrible. Now, Mr. King isn't the kind of guy to read a piece of prose to the world and mock it, dissect it, criticize it, and I don't want to be that kind of person either. That's just being a jerk.

So, before I continue, I want to say that I read Meyer's Twilight series and liked it. Whatever flaws anyone sees in it, it works beautifully and is another brilliant caution against taking what anyone says about good or bad writing, grammar and all the rest of it, too seriously.

The following is from the beginning of Twilight:
Eventually we made it to Charlie's. He still lived in the small, two-bedroom house that he'd bought with my mother in the early days of their marriage. Those were the only kind of days their marriage had — the early ones. There, parked on the street in front of the house that never changed, was my new — well, new to me — truck. It was a faded red color, with big, rounded fenders and a bulbous cab. To my intense surprise, I loved it. I didn't know if it would run, but I could see myself in it. Plus, it was one of those solid iron affairs that never gets damaged — the kind you see at the scene of an accident, paint unscratched, surrounded by the pieces of the foreign car it had destroyed.

"Wow, Dad, I love it! Thanks!" Now my horrific day tomorrow would be just that much less dreadful. I wouldn't be faced with the choice of either walking two miles in the rain to school or accepting a ride in the Chief's cruiser.

"I'm glad you like it," Charlie said gruffly, embarrassed again.

It took only one trip to get all my stuff upstairs. I got the west bedroom that faced out over the front yard. The room was familiar; it had been belonged to me since I was born. The wooden floor, the light blue walls, the peaked ceiling, the yellowed lace curtains around the window — these were all a part of my childhood. The only changes Charlie had ever made were switching the crib for a bed and adding a desk as I grew. The desk now held a secondhand computer, with the phone line for the modem stapled along the floor to the nearest phone jack. This was a stipulation from my mother, so that we could stay in touch easily. The rocking chair from my baby days was still in the corner. There was only one small bathroom at the top of the stairs, which I would have to share with Charlie. I was trying not to dwell too much on that fact.

One of the best things about Charlie is he doesn't hover. He left me alone to unpack and get settled, a feat that would have been altogether impossible for my mother. It was nice to be alone, not to have to smile and look pleased; a relief to stare dejectedly out the window at the sheeting rain and let just a few tears escape. I wasn't in the mood to go on a real crying jag. I would save that for bedtime, when I would have to think about the coming morning.

Forks High School had a frightening total of only three hundred and fifty-seven — now fifty-eight — students; there were more than seven hundred people in my junior class alone back home. All of the kids here had grown up together — their grandparents had been toddlers together.

I would be the new girl from the big city, a curiosity, a freak.
Overused Words, Stephenie Meyer, Twilight
Overused WordsFoundSuggestion
could2Awesome
feel/feeling/felt0Well done
generic descriptions0Nice work
had7Perfect
have4Very good
hear/heard0Just right
initial -ing0Excellent
it/there15Remove about 8 occurences
just/then2Way To go
knew/know1Great work
initial conjunction0Nice job
look1Awesome
-ly adverb11Remove about 2 occurences
maybe0Well done
see/saw2Nice work
smell/taste0Perfect
that9Remove about 5 occurences
was/were15Remove about 7 occurences
watch/notice/observe0Very good

Adverbs/Passive Report, Stephenie Meyer, Twilight:
- Eventually
- Gruffly
- Only
- Easily
- Only
- Dejectedly
- Only 

Passive word phrases
- "was born"

Conclusion
I found it helpful comparing Meyer's work with King's and Butcher's. If I had more time, I would also analyze a passage from her newer book, The Host. My guess is that, like all people who write regularly, Meyer's prose has improved.

I haven't compared my own work to King's or Butcher's yet, but I will, and when I do I'm sure I'll cringe and blush. I do hope, though, that what I write today is better than what I wrote a couple of years ago. I think it is, and I believe reading Stephen King's book, On Writing, and taking it to heart, accounts for much of that improvement.

Other articles you might be interested in:
- Jim Butcher, Harry Dresden and the Dresden Files
- Stephen King's Joyland (June 4, 2013): Cover Art Just Released
- Writing Resources

Notes:
1. ClicheCleaner required me to download software, and cliches were covered by the first two programs, so I didn't use it.

Photo credit: Georges Méliès