Trying to spin text and get output of all possible variations

Jameel

New member
Feb 14, 2007
1,292
17
0
How do I do this?

Example

The {cat|dog|fish|turtle} is {red|blue|green|yellow}.

I can only find tools online that spit out one variation at a time but not all of the variations that I can export to a text file.
 


Man. I haven't seen one that will do that. That would be a shit load of spun versions if each of your spun words has say 6 alternatives. And you've got 100+ spun words in your article.
 
I'm not doing it for articles, I just want to get all the outcomes and plug them into another piece of software. I'm mainly doing sentences that are limited to 50-70 chars.
 
Gotcha. Yeah, I know TBS and WordAI won't give you every possible spin combination. Maybe someone else has an idea.
 
Like this?

merge.PNG
 
  • Like
Reactions: -Matt-
How do I do this?

Example

The {cat|dog|fish|turtle} is {red|blue|green|yellow}.

I can only find tools online that spit out one variation at a time but not all of the variations that I can export to a text file.

Needed something like this a couple months ago to input all possible outcomes in another tool as well, after searching the deepest parts of Google (read: about 2 pages deep), I finally gave up.

This also sounds like something that could be coded in less than 10 minutes, but then again I don't know shit about programming so maybe not.
 
The number of possible combinations are :

n!/r!(n-r)! - k

where r is the number of bracketed sets, and n is the total number of terms across all bracketed sets. K is the number of sets which include 2 or more elements from the same bracketed set.

Yes, the general case is a very common algorithm, here is an example implementation:
Analysis of Algorithms: Lecture 24

Scroll down to "Generating combinations of a set of elements"

There is a difference in your problem, though; you will need to make sure every set of r elements is made of exactly 1 element from each bracketed set. One way to do this is to group all the elements together in a particular order, so that the sets you want will be listed first, then you can kill the algorithm at that point.
 
TBS can do this and output in a txt file with the #BREAK limiter, but you need to specify the number, enter a large value and give it a try.
 
Use the best spinner...export to the max number it allows.

Open the text file it exports with excel.

Filter, remove #BREAK# so that you only have your data left.

Then Data > Remove Duplicates and you'll be left with all the unique variations you generated and no dupes.