It turns out that yesterday’s declaration of a win in this year’s NaNoWriMo was premature. OpenOffice had told me that my word count was 50,024, but when I submitted my world-class prose to the official NaNo validator, it decided there were only 48,800 words. Say what??? Of course there are lots of different defensible positions as to what constitutes a word, but could a 1200-word discrepancy really be down to differing interpretations? Nope. It turns out that OpenOffice’s word count algorithm is broken, and has been for some time. You heard right ladies and gentlemen – OpenOffice Writer wants to be a serious competitor for Word and yet it can’t even count words!
I don’t know exactly what the problem is, but it gets confused by custom quotes (= smart quotes in Word parlance):
“
counts as one word,
”
counts as one word, while
“Hello”
(with curly quotes) counts as two words and
"Hello"
(with straight quotes) counts as one word. Go figure.
Effectively, in a novel context, what this means is that every line of dialogue adds one extra word to the overall count which shouldn’t be there.
This is a known problem, and unfortunately the OpenOffice team show no interest in fixing it, as it’s been present for several versions.
So anyway I pounded out a few hundred more words today, and now I have 51,800 words according to OpenOffice and 50,700 according to the NaNo validator, so I have my win back again. But what a pain.