title: R dividing texts in tm package - recognizing speakers
body: <p>I am trying to identify the most frequently used words in the congress speeches, and have to separate them by the congressperson. I am just starting to learn about R and the tm package. I have a code that can find the most frequent words, but what kind of a code can I use to automatically identify and store the speaker of the speech?</p>
  
  <p>Text looks like this:</p>
  
  <pre><code>OPENING STATEMENT OF SENATOR HERB KOHL, CHAIRMAN
  
      The Chairman. Good afternoon to everybody, and thank you 
  very much for coming to this hearing this afternoon.
      In today's tough economic climate, millions of seniors have 
  lost a big part of their retirement and investments in only a 
  matter of months. Unlike younger Americans, they do not have 
  time to wait for the markets to rebound in order to recoup a 
  lifetime of savings.
  [....]
  
     STATEMENT OF SENATOR MEL MARTINEZ, RANKING MEMBER
  [....]
  </code></pre>
  
  <p>I would like to be able to get these names, or separate text by the people. Hope you can help me. Thanks a lot. </p>