I am beginner and I cannot find any source to see how to JavaScript count phrases in text. I know how to count charters, words and sentence.
Top comments(4)
Subscribe

I'm not sure you can without complex algorithms, as there's really no punctuation to mark them. Why do you need to count phrases?

Let me make sure I understand what you mean by phrase. Are you trying to achieve something like this:
The house at the end of the street is red. | |- NP: The house at the end of the street | |- PP: at the end of the street | |- PP: of the street |- VP: is red
Or are you using phrase in any other way? Perhaps you could provide an example of what exactly you want to achieve?
For further actions, you may consider blocking this person and/orreporting abuse