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
6
votes
2 answers

PHP Spintax Processor

I've been using the recurisve SpinTax processor as seen here, and it works just fine for smaller strings. However, it begins to run out of memory when the string goes beyond 20KB, and it's becoming a problem. If I have a string like this:…
David
  • 3,831
  • 2
  • 28
  • 38
4
votes
2 answers

Spintax C# ... How can I handle this?

Spintax allows you to spin various words and sentences such as: {Hello|Hi} {World|People}! {C{#|++|}|Java} is an {awesome|amazing} language. The text between the braces would be selected at random to form different sentences. I am able to possibly…
Sian Jakey Ellis
  • 435
  • 1
  • 4
  • 13
4
votes
3 answers

Regex Match Performance Issue For Spintax Parser

I'm writing an application that is intended to process thousands of articles/entries with large number of spintax in the following format: {Hello|Hi} {World|There!}, how are you? However when I run the application with profiler I noticed the part…
user1928346
  • 513
  • 6
  • 21
3
votes
2 answers

How to add a line break in a string inside a DataFrame?

I am trying out this text spinner but I find it troubling when I try to add a line break in the string that gets created. As you can see in the code below, I add "\n" but the output generated by the print(and also the content of the DataFrame) does…
Questieme
  • 913
  • 2
  • 15
  • 34
2
votes
1 answer

Generating articles automatically

This question is to learn and understand whether a particular technology exists or not. Following is the scenario. We are going to provide 200 english words. Software can add additional 40 words, which is 20% of 200. Now, using these, the software…
Dongle
  • 602
  • 1
  • 8
  • 18
1
vote
2 answers

No Last Spintax Repeat

I've successfully converted this php spintax code into javascript, source from http://www.edcharkow.com/blog/spintax-easy-php-code/ But some times the repeated the results are way too often, and I'm thinking to check the last spun spintax with the…
Randize
  • 121
  • 1
  • 10
1
vote
1 answer

Java - Spintax , what should i do?

I just wrote my program in C# but I want rewrite it in Java. I want create spintax text. My C# code: static string spintax(Random rnd, string str) { // Loop over string until all patterns exhausted. string…
0
votes
0 answers

Need Help for Spintax Help - Wordpress

I want to use spintax to my custom taxonomy term page. I found a code from google that spin text. here is the code below function spinText($text){ $test = preg_match_all("#\{(.*?)\}#", $text, $out); if (!$test) return $text; $toFind =…
jack
  • 1
0
votes
0 answers

PHP Spintax : How to exclude CSS code with REGEX

I have to do a regex to spin the content. I already have a REGEX that works very well on nested spin : {([^{}]+?)} Unfortunately in my source code, I also have CSS code that matches because of the braces. Like this (there can be several style…
0
votes
1 answer

Choosing strings that are most different from each other in Python

Alright so this question might be a little weird so first let me give you a short background. I am using spintax in order to generate large blocks of text given a set of optional phrases. I insert the spin inside a loop with the range from 0 to 10,…
Questieme
  • 913
  • 2
  • 15
  • 34
0
votes
1 answer

How do I include the non-spintax content in my string length count?

I need to extract the longest possible result from my spintax. But I can not find a way to add in the non-spun text. My code is extracting the longest option when there is a choice available but it is ignoring the content outside of the spintax…
Steve Hall
  • 113
  • 1
  • 7
0
votes
1 answer

TypeError: expected string or buffer

Found the code below on Black Hat World Forum, but when i execute it i got this error: print spin(text) File "C:\Users\test.py", line 30, in spin text, n = r.subn(_select, text) TypeError: expected string or buffer Code: text1 =…
Doni
  • 47
  • 1
  • 5
0
votes
1 answer

Advanced Replacement Freeze

Basically I'm creating a tool which while is looking through lines of "file.txt" to replace a word from a textbox's content with that line if the line is containing that word. Basically if the line is: pizza-cheese-potatoes, all the words containing…
Nana
  • 13
  • 5
0
votes
1 answer

PHP Why are $ signs being removed

Hi I am using this function in PHP to create some spun content (using spintax). However, if the spintax contains $ (dollar signs) they are removed in the output. function spintext($s){ preg_match('#\{(.+?)\}#is',$s,$m); …
Tao Schencks
  • 57
  • 1
  • 7
0
votes
1 answer

Random Article from directory displayed on my HTML or PHP pages. I already know how to do this on an HTML Static page but not randomly

I'm trying to extract articles from a directory at random and then spin and display. This is for Spintax articles Example: {Cat|Dog|Monkey|Fish|Lizard} {went to the lake|ate a mouse|jumped in the water} The directory will have multiple text files.…
1
2