Project ID:
552997
Project Type:
Fixed
Budget:
$30-$250 USD
Project Description:
I need algorithm in .Net C# to write a function that can spin content. No UI is required just the function.
Input string will look like this:
[Dave likes to {watch|play|coach} {soccer|football|baseball} in his free time. | He also {enjoys|likes} watching tv in his {spare|extra} time]
Or It can also look like this:
{Dave likes to {watch|play|coach} {soccer|football|baseball} in his free time. | He also {enjoys|likes} watching tv in his {spare|extra} time.}
The output will look like this and should be random:
Dave likes to watch football in his free time.
Second occurance will look like this:
He likes watching tv in his spare time.
The algorithm will choose the first or second sentence then continue inside that sentence and then parse the content inside that sentence. I have tried using randomizer but after a while it just spits out duplicates. So algorithm should be recursive that can handle as many nest levels as possible.
It should be able to handle {{{a|b|c}|z}1|2|{Z|X}}.
Thank you
Skills required:
.NET,
C# Programming