This function is very unintelligent when it comes to identifying where Japanese words begin and end. Even the presence of a particle(almost always true) can render most of the result useless if that particle is identified as being part of the next word.
Possible solutions:
Use some assumptions about the sentence structure, and try to find particles as to use as starting and ending points. (This requires a better understanding of Japanese then I currently have.)
Use a third party source to identify separate words. (What third party source?This may introduce the need for an extra browser instance and would be slower in general.)
This function is very unintelligent when it comes to identifying where Japanese words begin and end. Even the presence of a particle(almost always true) can render most of the result useless if that particle is identified as being part of the next word.
Possible solutions: