Fun with String Permutations
Programming, Theory, Tips & Tricks | (6)
So, I've been kicking around some new concepts for Datapresser's Content Generation, based on something called String Permutations.
For example, lets say I had four word groups:
- pronouns (my, your, his, her, our)
- subjects (goat, sailboat, cabin)
- conjunctions (is, is usually, is always)
- adjectives (stinky, leaking, clean)
By analyzing all the possible permutations of these 4 word groups, we can see exactly how much content we can spin from it, and what all the possible permutations are.
In this case, there are 135 possible permutations:
my goat is stinky
my goat is leaking
my goat is clean
my goat is usually stinky
my goat is usually leaking
my ...