- May 10, 2011
- 6,104
- 534
This one is nice
Article directory scraper, definitely. This spinner, definitely. Posting (at least to wordpress through xmlrpc), definitely. I'm thinking 60 seconds from searching for an article, having it spun and posted to a blog.
There are lots of tools I want to make public. A keyword rank checker, a double or triple article merge-to-spin autospinner, a high quality manual spin creator, a tool to help stick a long list of backlinks into AMR spins for better indexing, a record-keeping system/checklist for manual seo, and tons more.
function text_to_spintext( $text )
{
// SET
$thesaurus = file_get_contents( 'thesaurus.txt' );
$library = preg_split( '/\r?\n/', $thesaurus );
// PROC
for( $a = 0; $a < count( $library ); ++$a):
$searchlib = explode( '|', $library[$a] );
for( $b = 0; $b < count( $searchlib ); ++$b ):
if( stripos( $text, $searchlib[$b] . ' ' ) !== false ):
$capitalized = ( $text{stripos( $text, $searchlib[$b] . ' ' )} === strtoupper( $text{stripos( $text, $searchlib[$b] . ' ' )} ) )? true : false;
$spinstr = '{';
for( $c = 0; $c < count( $searchlib ) - 1; ++$c):
if( $capitalized ):
$spinstr .= ucfirst( $searchlib[$c] ) . '|';
else:
$spinstr .= strtolower( $searchlib[$c] ) . '|';
endif;
endfor;
if( $capitalized ):
$spinstr .= ucfirst( $searchlib[count( $searchlib ) - 1] ) . '}';
else:
$spinstr .= strtolower( $searchlib[count( $searchlib ) - 1] ) . '}';
endif;
$text = str_ireplace( ' ' . $searchlib[$b] . ' ',' ' . $spinstr . ' ', $text );
endif;
endfor;
endfor;
// OUT
return $text;
}
It's|It is
become|turn out to be|grow to be|turn into
don't|do not|really don't|tend not to
first|initial|very first