php str_word_count
<p>To all PHP experts out there:</p>

<p>I'm trying to count the words in paragraphs of texts. Right now I'm using the str_word_count, which is going great except the single quotation marks are messing things up. </p>

<p>The function is counting </p>

<p>'propter' and propter </p>

<p>as different words. It is also counting </p>

<p>et' and et </p>

<p>'non and non</p>

<p>as different words.</p>

<p>Basically I'm asking how, I can get the function to ignore the single quotations. The text is all in latin so there are no instances of single quotations within words (if that makes any difference).</p>

<p>Thanks for your help</p>
