If you’re an object-oriented programmer, then you could probably do some cool things with this, but if you’re a scripting person, you will probably need to use a list. A list is just a plain ol’ array with an array in it. So you can’t just make a list of all the words in a sentence.
So here is where you would use a list to define all the words in a sentence. You would then use a for loop to iterate through this list and create each word in your list. Since you would not have access to your words list in your code, you would have to create them in your function.
Another cool thing about a list is that you can add items to it. So you would have to create a new list with an array in it and then add each word from your string to the new list. You would then use a for loop to iterate through your list and create each word in that new list. This would in turn generate another list where each word is on its own list.
I don’t know exactly what you are asking, but I will tell you what I would do. I will create my list in a loop, and I will add each word in the new list to the end of the other list, and then I would add each word in the new list to the end of the first list. This would then create a new list where I would loop through my list and add each word to the end of that list.