Python substitution of words : <p>Let's say that I have a text with me and I assigned it a variable. </p>

<p>text = "Don't you want to play"</p>

<p>I want to add a question at the end of the sentence, in order to do that, I need some code which helps me recognize and analyse the first word of the sentence and place a question mark at the end if the sentence starts off with a don't. </p>

<p>The text which is getting back to me has to say: </p>

<p>"Don't you want to play?"</p>

<p>What libraries or what natural language processing software could I use to achieve this?</p>
