title: convert from plural to singular using R
body: <p>How to convert plural text into singular from corpus using R
  i am tring with "tm" package but i am not able to find any function.
  i have try with this function but this i can not apply to the corpus.</p>
  
  <pre><code>aggregate.plurals &lt;- function (v) {
    aggro_fen &lt;- function(v, singular, plural) {
  
      if (! is.na(v[plural])) {
        v[singular] &lt;- v[singular] + v[plural]
        v &lt;- v[-which(names(v) == plural)]
      }
      return(v)
    }
    for (n in names(v)) {
      n_pl &lt;- paste(n, 's', Sep='')
      v &lt;- aggro_fen(v, n, n_pl)
      n_pl &lt;- paste(n, 'es', Sep='')
      v &lt;- aggro_fen(v, n, n_pl)
    }
    return(v)
  }
  </code></pre>