I'm running a site that allows users to make comments, and most of them are highly uneducated and cannot use proper punctuation, capitalization, and etc.
I'm looking for some sort of function that will take their garbage text, and make it look nice.
For example:
- before: this is a test. i LIKE PIE
- after: This is a test. I like pie.
- before: CAPS LOCK IS CRUISE CONTROL FOR COOL.
- after: Caps lock is cruise control for cool.
sentenceNormalizer is the only thing I found, but it's too simplistic. It makes everything that doesn't follow a . ! ? be lowercase, regardless whether it's "I", a person's name that was actually capitalized on purpose, or anything else.