View Single Post
Old 01-31-2013, 09:20 PM   PM User | #12
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,248
Thanks: 59
Thanked 3,998 Times in 3,967 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Quote:
Originally Posted by xelawho View Post
in that case I would want happy dogs bark

but sentences will always begin with a capital, and end with . or ! or ?
If that is true, why did you include this example:
Quote:
If it's
"was happy to see me. I left in a hurry"
"was happy to see me." does not start with a capital letter.

My answer includes code to handle that case. It could be less code if you were *SURE* that a sentence always starts with a capital letter.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote