Share via

sentences length indicators

Anonymous
2012-07-09T20:19:54+00:00

Hello

I have a trend to write very very long sentences, thats maybe from my mother language, nevertheless they do not look so apropiate in english.

I will like if there is a way in Ms Word to mark the begining and the end of a sentence, i.e. a orange triangle that float over each dot-for-end-of-sentence

or any other visual clue that would help me to check where the long sentences are.

thanks in advance,

best regards,

Pedro

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Jay Freedman 207.5K Reputation points Volunteer Moderator
    2012-07-09T23:38:06+00:00

    Word's grammar checker can be set to show you sentences that are longer than 60 words, although that limit is not changeable.

    To use this, go to Office button > Word Options > Proofing. Under "When correcting spelling and grammar in Word", click the Settings button. In the dialog that opens, scroll down to the Style section and check the box for "Sentence length (more than sixty words)". Click OK. Back in the Options dialog, check the boxes for "Mark grammar errors as you type" and "Check grammar with spelling". You'll be warned by a wavy underline under any long sentences, and if you press F7 to do a spelling check.

    If you want to stay with your original request for a visual cue, and/or if you want to choose your own maximum sentence length, you'll need a macro like the following one. Use the steps in http://www.gmayor.com/installing_macro.htm if you need to know how to install it.

    Sub MarkLongSentences()

        Dim sntc As Range

        Dim rg As Range

        Dim maxWords As Long

        Dim triangle As String

        maxWords = 50   ' <==== change this number if needed

        triangle = ChrW(9660)

        For Each sntc In ActiveDocument.Sentences

            With sntc

                If .Words.Count > maxWords Then

                    If .Characters.Last = " " Then

                        .Characters(.Characters.Count - 1).InsertBefore triangle

                    Else

                        .Characters(.Characters.Count).InsertBefore triangle

                    End If

                End If

            End With

        Next

        Set rg = ActiveDocument.Range

        With rg.Find

            .Text = triangle

            .Replacement.Text = triangle

            .Replacement.Font.Color = wdColorOrange

            .Replacement.Font.Superscript = True

            .MatchWildcards = False

            .Wrap = wdFindStop

            .Execute Replace:=wdReplaceAll

        End With

    End Sub

    After you've edited the document to shorten some or all of the sentences, if there may still be some triangles in the text, you can run this macro to remove all of them (if there are no triangles, the macro will do nothing).

    Sub UnmarkSentences()

        Dim triangle As String

        Dim rg As Range

        triangle = ChrW(9660)

        Set rg = ActiveDocument.Range

        With rg.Find

            .Text = triangle

            .Replacement.Text = ""

            .Wrap = wdFindStop

            .Execute Replace:=wdReplaceAll

        End With

    End Sub

    10+ people found this answer helpful.
    0 comments No comments

Answer accepted by question author

  1. Anonymous
    2012-07-09T23:22:21+00:00

    Word can't do you are asking, but the grammar checking feature can check sentence length, sorta.

    Office button > Word Options button > Proofing option > "When correcting Spelling and Grammar in Word" section.

    Turn on:

    • "Check Grammar with Spelling" option.
    • Show Readability statistics

    Click on the "Settings..." button. Turn on "Sentence Length (more than 60 words)".

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Jay Freedman 207.5K Reputation points Volunteer Moderator
    2012-07-10T00:11:08+00:00

    Thanks for pointing to that book. Somehow I had missed finding it -- it looks like a couple of days of happy reading. :-)

    0 comments No comments
  2. Anonymous
    2012-07-10T00:03:17+00:00

    Good point Jay. I also found these macros in the following downloadable book:

    Macros for Writers, Editors and Proofreaders

    by Paul Beverley, LCGI

    http://www.archivepub.co.uk/book.html

    Measure Average Sentence Length

    Someone asked me for a macro that would not only measure the average length of sentences in terms of words, but also give the standard deviation.

    Writing it was an interesting job because it revealed that Word’s own ‘readability statistics’ which purport to give a figure of average sentence length are a little questionable. In case you are interested, this macro has an option at the beginning which allows you to decide if you want to see what Word thinks. It currently does not show the stats. I’m sure you can work out what to do to make it show the stats.

    More interestingly, it also does two versions of the average sentence length. The first takes the text as a whole. The second version first deletes all paragraphs that don’t have a full stop at the end. The idea is that this will delete headings and items in lists. Both sets of figures are given by the macro, so you can pay attention to whichever is the more meaningful in a given situation.

    This latest version also does a frequency distribution showing the numbers of sentences in each of a range of lengths, e.g.:

     1 to  3 = 7

     4 to  6 = 9

     7 to  9 = 4

     10 to  12 = 11

     13 to  15 = 8

     16 to  18 = 5

     19 to  21 = 7

     22 to  24 = 4

     25 to  27 = 1

     28 to  30 = 6

     31 to  33 = 2

     34 to  36 = 4

     37 to  39 = 0

     40 to  42 = 0

     43 to  45 = 2

    You can choose your range of lengths using the myStep value at the start of the macro. The list above is , so I’m sure you can work out how to change it to other values.

    (Watch out for a version which also does the same sort of thing with word length.)

    Sub SentenceAlyse()

    Mark Long Sentences

    If I am asked to shorten over-long sentences, I find it helpful to be alerted to the fact that any given sentence might be on the long side – it’s one thing less to think about as I’m reading through the text. This macro therefore finds any sentences longer than a certain number of words and changes the font colour to one of two colours, so that they are drawn to my attention.

    I decided to use two different colour in case two consecutive sentences are over long – it makes it obvious that it’s two long sentences, not one really, really long sentence.

    The choice of colours and the critical number of words are set in the first three lines of the macro.

    Sub LongSentenceCheck()

    0 comments No comments