Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word Counts with different answers
I have been trying to compare my own word count algrothm with Microsoft
Word's word count statistics, and have found at least three ways of retrieving a word count from word. 1. In the properties dialog under the File menu. 2. At the end of the Spelling and Grammar check. 3. Using the ReadabilityStatistics collection on the Document object in VBA. However an most documents I have check I get three different answers!!!!! For example one document I got word counts of 1,154, 1,144 and 645. Has any one else come across this or know why this might be happening? Gareth Edwards Database Manager Higher Education Funding Council for England |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word Counts with different answers
You missed Document.Words.Count, retrievable from VBA.
The issue is that 'word' is actually quite hard to define. Is a phone number a word? Or three words? Is "tab-delimited" one word or two? What do you do with meaningless strings, marked as "no language", within a table? In the file menu, the count is an indicator of the file length. In VBA, "word" is any sequence of letters delimited by a non-letter (so 'Bill's' counts as two. You might also restrict the count to string sequences that are in, or derivable from, the dictionary. You have to remember that Word doesn't understand English (or any other language); it's just manipulating characters. "Gareth Edwards" wrote in message ... I have been trying to compare my own word count algrothm with Microsoft Word's word count statistics, and have found at least three ways of retrieving a word count from word. 1. In the properties dialog under the File menu. 2. At the end of the Spelling and Grammar check. 3. Using the ReadabilityStatistics collection on the Document object in VBA. However an most documents I have check I get three different answers!!!!! For example one document I got word counts of 1,154, 1,144 and 645. Has any one else come across this or know why this might be happening? Gareth Edwards Database Manager Higher Education Funding Council for England |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word Counts with different answers
Gareth Edwards wrote:
I have been trying to compare my own word count algrothm with Microsoft Word's word count statistics, and have found at least three ways of retrieving a word count from word. 1. In the properties dialog under the File menu. 2. At the end of the Spelling and Grammar check. 3. Using the ReadabilityStatistics collection on the Document object in VBA. However an most documents I have check I get three different answers!!!!! For example one document I got word counts of 1,154, 1,144 and 645. Has any one else come across this or know why this might be happening? Gareth Edwards Database Manager Higher Education Funding Council for England Hi Gareth, Jezebel mentioned the VBA property Document.Words.Count. This suffers from the unfortunate habit of counting punctuation and paragraph marks as "words". However, there is the Tools Word Count dialog, which usually comes much closer to what humans think of as the number of words in a document or selection. It can also be used in a macro, as discussed in a thread in the microsoft.public.word.vba.general newsgroup: http://groups.google.com/group/micro...feaa105852f9a0 -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can Word display full path of a file in the title bar? | Microsoft Word Help | |||
Does Word have a QuickCorrect/Quick Word option like WordPerfect? | New Users | |||
In Word, how do I surpress headers and footers on page 2 | Microsoft Word Help | |||
Does Word have Keyboard Merges like Word Perfect does? | Mailmerge | |||
Boiletplates from Word Perfect | Microsoft Word Help |