Grouping the words by stress pattern​