Hi
Im trying to figure out a good PHP way of cleaning up poorly formatted sentences. A regexp that:
Adds a space after punctuation and ()!?
Adds a space before capital letters, if that capital letter is followed by a lowercase letter (eg "aaaLOTSCAPS" becomes "aaa LOTSCAPS" and "aaaLotsCaps" becomes "aaa Lots Caps")
Any suggestions on available powerful sentence format cleaners out there much welcome!..
Thanks
Clean sentences
Moderator: General Moderators
Re: Clean sentences
You could try adapting this: http://www.languagetool.org/