Welcome to Using English, lolliswan.
I'm afraid the terms you're using (group, content words, and grammatical words) are not familiar to me in this context.
Can you explain what you're looking for when you want to identify the "groups," for example? Or what a "content word" is supposed to be?
- For Teachers