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)
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)