Skip to content

Word Count in content structures does not count Chinese words properly #13796

@sandymcfadden

Description

@sandymcfadden

Describe the bug
When writing a post in Chinese the word count shown in the content structure does not show an accurate word count.

To Reproduce
Steps to reproduce the behavior:

  1. Use http://generator.lorem-ipsum.info/_chinese to generate some sample Chinese text
  2. Create new page in Gutenberg
  3. Paste in content
  4. Click the info icon at the top
  5. See an incorrect word count

Expected behavior
When using the same content in word processor like Pages the word count is significantly larger than the one shown in Gutenberg. The expected behavior would be to have an accurate word count independent of the language used.

Screenshots
You can see a large amount of content but it is showing only 10 words
screen shot 2019-02-09 at 7 41 03 am

Desktop (please complete the following information):

  • OS: MacOS 10.14.2
  • Browser: Firefox
  • Version> 64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Internationalization (i18n)Issues or PRs related to internationalization efforts[Package] Word count/packages/wordcount[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions