fork download
  1. #!perl -paF\.\s*
  2. map{s/\s*$/. /;$\.=ucfirst lc}@F}{chop$\
Success #stdin #stdout 0s 6000KB
tHIS SenteNce HAS veRy bAd GrammAr.
PuncTuation must-be PReserved.
full StOps ShoulD Be inserted
MultiPLe sEntEnceS Are possible. thEY Are, yoU KNOW.
spaces. are.inserted.
This sentence has very bad grammar. Punctuation must-be preserved. Full stops should be inserted. Multiple sentences are possible. They are, you know. Spaces. Are. Inserted.