in reply to combinations between words!
dear great monks, a new guy needs assistance,
You welcome! Did you use to be a gal previously? ;-)
i have been required to create a script
Required by whom? Your teacher? Your instructor? What did you try thus far?
to generate all possible cmombinations between words.
Combinations or Permutations? Or...
and by combinations i mean that if i have 5 words i need all possible sentences between those 5 words.
A sentence is a linguistics concept, and not all the of the permutations of a given list of words will give you a well formed sentence according to some grammar. Don't you think so?
the words are read from a file, i read them and place them in a 2d array
In a 2d array? And according to which criteria?
|
|---|