title: Sentence formation: Punctuation checks in java
body: <p>I want to check the quality of sentence formation. Specifically, I am looking to see if the end-user types a space after a punctuation.
  I am okay with a NLP library, or a simple java regex solution too.</p>
  
  <p>For example:</p>
  
  <ol>
  <li>"Hi, my name is Tom Cruise. I like movies"</li>
  <li>"Hi,my name is Tom Cruise. I like movies"</li>
  <li>"Hi,my name is Tom Cruise.I like movies"</li>
  </ol>
  
  <p>Sentence 1 is perfect, sentence 2 is bad since it has 1 punctuation without a space after it, and sentence 3 is the worst since none of the punctuations are succeeded with a space.</p>
  
  <p>Can you please suggest a java approach to this?
  I tried the languagetool API but didn't work.</p>