title: Postgresql fulltext search for words with apostrophes
body: <p>I'm working on building a customized ispell dictionary configuration for Postgresql 8.4 and am having some problems getting words with apostrophes in them to parse correctly.  The ispell dictionaries included with Postgresql include an .affix files which contains a "M" SFX rule which specifies an expanded form of its word.</p>
  
  <p>Here is an example, assuming that I have <code>dictionary/SM</code> in my dictionary file:</p>
  
  <p><code>SELECT to_tsvector('english_ispell', 'dictionary''s dictionaries');</code></p>
  
  <p>Expected output:</p>
  
  <p><code>'dictionary':1,2</code></p>
  
  <p>Actual ouput:</p>
  
  <p><code>s':2, 'dictionary':1,3</code></p>
  
  <p>Am I doing something incorrectly?  Here is the output from ts_debug to show how its being parsed.</p>
  
  <p><code>SELECT * FROM ts_debug('english_ispell', 'dictionary''s dictionaries');</code></p>
  
  <pre><code>   alias   |   description   |    token     |         dictionaries          |   dictionary   |   lexemes    
  -----------+-----------------+--------------+-------------------------------+----------------+--------------
   asciiword | Word, all ASCII | dictionary   | {english_ispell,english_stem} | english_ispell | {dictionary}
   blank     | Space symbols   | '            | {}                            |                | 
   asciiword | Word, all ASCII | s            | {english_ispell,english_stem} | english_ispell | {s}
   blank     | Space symbols   |              | {}                            |                | 
   asciiword | Word, all ASCII | dictionaries | {english_ispell,english_stem} | english_ispell | {dictionary}
  </code></pre>
  
  <p>How do I get Postgresql to parse the <code>'</code> as part of a single word and not have it broken up as a "space symbol"?</p>