Actually - that was pretty much everything I put in the other thread

Sorry, I'll try to explain a bit more....
I have content in my database... I'd like to 'spin' that content out by replacing words with similar words inside the content. Sort of like Madlibs, in a way. Example (lyrics by Journey):
When the lights go down in the City
And the sun shines on the bay
I want to be there in my City
When the candles go down in the village
and the orb lights on the bay
I want to be there in my village
You know... something like that. I would build the synonym database myself since it would be niche content. Each word would have 10's of replacements and the spun content would be randomly chosen from synonyms, so effectively the content would be different each time.
I have other plans as well, such as <strong>, <hx>, <p></p> tags to make the content structurally different as well.
Any thoughts.... Any starting code for at least the synonym replacement piece?