title: How to properly capitalize a sentence?
body: <p>This code below makes it capitalize the first letter in each sentence of the string, although it won't capitalize the letter &quot;i&quot;:</p>
  <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt; a = &quot;This is text i wrote. I want i to be capitalized.&quot;
  &gt;&gt;&gt; '. '.join(i.capitalize() for i in a.split('. '))
  'This is text i wrote. I want i to be capitalized.'
  </code></pre>
  <p>How to properly capitalize all sentences in a string, i.e. the first letter of each sentence and all standalone &quot;i&quot;s?</p>