https://bugzilla.wikimedia.org/show_bug.cgi?id=47733

--- Comment #2 from TMg <[email protected]> ---
Splitting on whitespace is not good because some users write like this,without
spaces.The count will be wrong.

I don't think the word count is an essential information. Pretty much every
solution will be wrong depending on the language. Don't put time in this. I
suggest to choose one of these very simple solutions:

a) Remove the word count. Stick with the characters (but switch to mb_strlen,
of course).

b) Don't change the code but change the message to "Approx. 42 words". Maybe
add a max(min($count, 10), round($count / 10) * 10) function and make it
"Approx. 40 words".

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to