使用Spintax生成所有可能的组合

I want to create a spintax generator that will return an array with all possible combinations. Currently I'm using this gist: https://gist.github.com/Ariflaw/2d54780ebc9e8bde736bb3087187f191.

The generator is working but it's only generating 1 sentence. I want to be able to have all combinations. How can I get this?

When using https://github.com/viamarvin/spintax and this text:

{The|The actual|The particular|Your|This} breakthrough treatment {works by|functions|functions by|operates by|sticks to} oxygenating {the|the actual|the particular|your|this} blood {through an|with an|via an|using an|with the} injection {that can|that may|that will|which could|that could} hold {someone|somebody|an individual|a person|another person} alive {for up to|for approximately|for|for about|for as much as} 30 minutes {even if|even though|even when|regardless of whether|whether or not} they {are unable to|cannot|can't|can't seem to|are not able to} breath {at|from|with|in|on} everything {and could|and may|and might|and can|and may even} save {thousands of|a large number of|1000s of|a huge number of|many} lives.

My server is running out of memory...