Forum Moderators: coopster
For a website I have been working on I created a filter that would examine some text inputted by a user and fix any structural problems with it.
This task included,
* Trying to fix spacing issues, e.g. double spaces, no space after full stop, etc
* Trying to correct false capitalisation.
* etc
After some final testing with the client I have discovered that my solution is no where near as robust as it should be. Basically it is doing a lot of formatting where it is not required, e.g. URLs, abbreviations, etc.
Sadly, I knew this scenario may arise as there are so many grammatical exceptions to consider.
My question is, does anyone know of a pre-existing solution that does what I am trying to do and is robust enough so there is a very small margin of error? If not, then I will write my own exceptions, but I am hoping someone knows of one.
I've tried Google, but most results show PHP code or output formatting, not actual English formatting.
Thank you.
[edited by: Sekka at 4:36 pm (utc) on Oct. 21, 2008]