appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

[Bug] WordCountService wordCount statistics problems in Chinese

Open q200892907 opened this issue 1 year ago • 1 comments

Bug Description

When entering Chinese, if no spaces are entered, it will be counted as one word.

How to Reproduce

Enter chinese

Expected Behavior

Correct word count

Operating System

all

AppFlowy Editor Version(s)

main

Screenshots

image

Additional Context

@Xazin

q200892907 avatar Apr 18 '24 06:04 q200892907

Interesting, I will see if I can find a simple solution.

Otherwise the next best thing would have to be some form of segmenter, with support for ch, jp, and ko.

Xazin avatar Apr 18 '24 07:04 Xazin