Dialog and grammar

<p>Should dialog between people be grammatically correct, or can they be colloquial? For example:</p>

<p>wanna instead of want to
why'd ya instead of you why would you</p>

<p>I want to include a dialog in one of my essays and I was just wondering</p>