hexo-theme-aurora
hexo-theme-aurora copied to clipboard
English Article Word Count Incorrect
Right now the word count for english counts the characters. I think we can define what language in the front matter and have a different way to count words for Chinese and English.
Currently there are no filtering for language, it just count the string length. If you think it's wrong, just because the counter filter out all the HTML or special characters. That's why it might seem different from your local word count, but I do think filtering out all the article unrelated character makes more sense.
I think you should for english split the array up into different chunks with a " " for English and just count number of characters for Chinese.
I think you should for english split the array up into different chunks with a " " for English and just count number of characters for Chinese.
I might consider improving the character count later on versions.
sure!