You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for opening this. I'm more than happy to add this feature, however, due to the nature of how Go templates work, the "format" to use it would be something like this, taking your own example:
hello {{spintax"world""Мир""mundo"}}
Where it would choose one of the 3 provided words. It's quite more verbose, but I would love to know what you think. Another alternative that might be worth it would be something like:
hello {{spintax"world|Мир|mundo"}}
The challenge, to me, is that the | symbol could be part of the text you're trying to spin, and as such, you would have to integrate something like spintaxCustomSplitting or similar:
In the example above, # would be the custom one... I don't know you, but I don't really like the 2nd option and if I were to implement something like that here, it would be like the first example.
Also, some spintax tools have support for singular and plural handling and stuff like that. I will probably limit this feature just to spin across different strings, and not through a full spintax behaviour you can find elsewhere, mostly because you can work around these with the template engine as well.
What did you do?
tried to use
tgen
to create free form texts but no support for something like spintaxWhat did you expect to see?
N/A
What did you see instead?
N/A
i would love if this tool would have a spintax capability like
hello {world|Мир|mundo}
but fitted for tgenspasiba!
The text was updated successfully, but these errors were encountered: