Re:Boring Problems Need Attention Too
by thehappypm on Thursday June 17, 2021 @11:00AM
(#27540297)
I mean.. are numbers words? Is a floating ! or - a word? Are hyphenated words 2 or 1? How about when a word is broken over two lines with a hyphen? Is ... a word? Is an unrecognized string a word? Does a figure caption count towards a word count? How about chapter titles? Or page numbers?
[ Parent
| on HN ]
Re:Boring Problems Need Attention Too
by Rioghasarig on Thursday June 17, 2021 @11:51AM
(#27540960)
Yeah the issue seems to be the concept of a "word" not being precisely defined. But I don't think that's a problem. I'd be concerned if the numbers were dramatically different but they're pretty close so there isn't an issue.
If exact precision is necessary you probably shouldn't rely on imprecise terms like "word".
Agreed. If you are going to base a salary on imprecise concepts, then the pay will be imprecise. Concepts from the real world don't always fit nicely with the strict rules that we attempt to program them in. Trying to solve this problem by changing the constraints may prove to be easier than programming a precise solution around an imprecise concept.
Re:Boring Problems Need Attention Too
by munchbunny on Thursday June 17, 2021 @01:43PM
(#27542290)
It's also not just edge cases in English or any specific language. The concept of a "word" doesn't exist in some languages. Chinese, for example, only has something comparable that is contextual and not syntactic. So how do you define "word count" in a document that mixes Chinese and English? Ignoring the Chinese characters altogether seems incorrect in the spirit of the metric, and trying to count using English syntax rules will still give you something incorrect in the spirit of the metric.