lukeleppan / better-word-count

Counts the words of selected text in the editor.
MIT License
256 stars 40 forks source link

Punctuations are counted in Chinese word count #77

Open fiammanda opened 1 year ago

fiammanda commented 1 year ago

\u00B7\u2014\u2018\u2019\u201C\u201D\u2026\u3002\u3008-\u301C\uFF08-\uFF0D\uFF1A-\uFF1F\uFF61-\uFF65

Above charaters are counted in Chinese word count (and there may be more). However, \u2018\u2019\u201C\u201D are also used in Latin languages and should not be counted at such time.

Immanuel-Q commented 1 year ago

Well, the number of words reflects it accurately, but it does not include punctuation. Emmmm, it may be enough?

fiammanda commented 3 months ago

Well, the number of words reflects it accurately, but it does not include punctuation. Emmmm, it may be enough?

Word count in Chinese is fundamentally different and does include punctuation. If a user is writing e.g. a novel in Chinese, and the word count would be like 90% of that in Office Word, thus causing significant inconvenience.

I actually made a pull request #108 and if @lukeleppan would like to take a look of it?