I want to count the number of words in a passage that contains both English and Chinese. For English, it's simple. Each word is a word. For Chinese, we count each character as a word. Therefore, 香港人 is three words here.
So for example, "I am a 香港人" should have a word count of 6.
Any idea how can I count it in Javascript/jQuery?
Thanks!