Hi All
I need a Vb.NET function perfered (or compiled .NET class library of the language of your choice)
need it the function to take a string input and return a string array of the spun content.
Function Spin(string2spin as string) as string()
? ? ? ? 'Your function code....
End Function
**string2spin:** this will be one of these formats
{I like to {watch|play|coach} {soccer|football|baseball} with my friends. |? I {enjoy|like} watching? movies? with my? {friends|buddies}}
the nested levels can be:
{Sentence1|Sentence2}
{Sentence1{word1|word2}|Sentence2{word1|word2|word3}
the number of sentences and words nested together should be flexible 10,20...etc but usually that will not exceed 4-5 but incase it was given a higher number than that it should not crash and handle that well.
**output:** array of the spun content,
I like to play football with my friends.
I like to play baseball with my friends
I enjoy watching movies with my buddies
and etc.......
in short it should return EVERY posible combination by i guess randomizing the sentences and words between the {}
No duplicates should be returned.
Thank you