Questions tagged [spintax]

Spintax is a simple markup format that allows marketers to craft documents composed of randomly replaceable words, phrases or sentences.

24 questions
0
votes
1 answer

C# Spintax Coloring

Spintax is used for getting multiple pieces of content from one piece ex: Spintax: The {dog|cat} {ran|jumped} very {quietly|far {ahead|away}}. That would return sentences like these: The dog ran very quietly. The cat jumped very quietly. The dog…
rdweedw
  • 3
  • 1
0
votes
1 answer

PHP: Warning: file_get_contents(): Filename cannot be empty in

I'm trying this new script on my server and I can't seem to figure out why it keeps giving me the error of: Warning: file_get_contents(): Filename cannot be empty in /includes/classes/spin_article.php on line 51 This line is giving the error -->…
Matt
  • 163
  • 1
  • 3
  • 15
0
votes
1 answer

C# Multi Spintax - Spin Text

I got this class that I'm using for spin text. public class Spinner { private static Random rnd = new Random(); public static string Spin(string str) { string regex = @"\{(.*?)\}"; return…
plexcell
  • 1,647
  • 2
  • 15
  • 29
0
votes
0 answers

Importing Text Files To Python And Spintax Then Outputting Text

I'm stuck on how to accomplish this. What I have is a folder of say 10 text files and in each text file is a article done in spintax, example: {This is|Here is} {My|Your|Their} {Articles|Post} Each text file contains a full article with paragraphs…
0
votes
2 answers

Python 3 - Spinning text

I'm stucked on doing something like this.. from this {Hi|Hello} I am - {Me|You|Us} to this #Possible results 'Hi I am - You' 'Hello I am - Me' 'Hi I am - Us' 'Hello I am - You' So basically, the code will search for words which are enclosed in…
Arthur Codova
  • 49
  • 2
  • 6
0
votes
2 answers

PHP Spintax return array with all possibilities

I have a string: {Hello|Howdy|Hola} to you, {Mr.|Mrs.|Ms.} {Smith|Williams|Austin}! I wonder if someone can help me out with a function that will return an array with all the possibilities ? Or at least provide the logic on how to get them and what…
raul
  • 11
  • 1
  • 6
0
votes
2 answers

Why does this PHP spintax code repeat identical iterations?

http://ronaldarichardson.com/2011/09/23/recursive-php-spintax-class-3-0/ I like this script, but it isn't perfect. If you use this test input case: {This is my {spintax|spuntext} formatted string, my {spintax|spuntext} formatted string, my…
Kane
  • 899
  • 2
  • 15
  • 35
-1
votes
1 answer

VB.Net / C# Spintax help?

Can anyone give me an example of spintax snippet for C# / VB.NET programming language. If you don't know what that is (the spintax), well basically it is a way of putting different values of strings and then randomly choosing one. For…
-1
votes
2 answers

How Can I Extract and Split These Values?

Here is an example of a string that I am working with {Hi|Hello|Holla} {James{ey|o|ing}|Bob{bie|bey}} I need a regular expression to extract the values between the {}'s example: Hi|Hello|Holla James{ey|o|ing} Bob{bie|bey} The original string is…
Sian Jakey Ellis
  • 435
  • 1
  • 4
  • 13
1
2