Skip to content

Feature Request: Support CJK (Chinese/Japanese/Korean) word count statistics #319

@lisansas

Description

@lisansas

Describe the solution you'd like
Currently, the word count logic seems to rely on splitting by spaces (split(/\s+/)). This works perfectly for English but fails for CJK (Chinese, Japanese, Korean) languages because we don't use spaces between characters. As a result, a long paragraph of Chinese text is counted as only 1 word, making the "Session Word Count Goal" feature and the progress bar unusable for CJK users.

Describe alternatives you've considered
Could you please update the word counting logic to handle CJK characters? A common approach used in other Obsidian plugins (like novel-word-count)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions