title: Stemming with R Text Analysis
body: <p>I am doing a lot of analysis with the <code>TM</code> package. One of my biggest problems are related to stemming and stemming-like transformations.</p>
  
  <p>Let's say I have several accounting related terms (I am aware of the spelling issues).<br>
  After stemming we have:</p>
  
  <pre><code>accounts   -&gt; account  
  account    -&gt; account  
  accounting -&gt; account  
  acounting  -&gt; acount  
  acount     -&gt; acount  
  acounts    -&gt; acount  
  accounnt   -&gt; accounnt  
  </code></pre>
  
  <p><b>Result</b>: 3 Terms (account, acount, account) where I would have liked 1 (account) as all these relate to the same term.</p>
  
  <p><b>1) </b>To correct spelling is a possibility, but I have never attempted that in R. Is that even possible?</p>
  
  <p><b>2) </b>The other option is to make a reference list i.e. account = (accounts, account, accounting, acounting, acount, acounts, accounnt) and then replace all occurrences with the master term. How would I do this in R?</p>
  
  <p>Once again, any help/suggestions would be greatly appreciated.</p>