/*
 * University of Utah
 * 2003 High School Programming Contest
 * Question Answering
 *
 * Filename: sentence.h
 * 
 * Description: Representation of a sentence.  This class extends the STL
 * vector.  After construction, each element in the vector is an individual
 * word in the sentence.  A word is defined to be any string of alphanumeric
 * characters separated by spaces or punctuation. This has the limitation of
 * abbreviations like "A.D." being interpreted as two words: "A" and "D"; or
 * special cases like "11:00 pm" being interpreted as: "11", "00", and "pm".
 *
 * In addition to the vector of words, a string of the original sentence
 * is kept for future use.  If this sentence is determined to be the answer
 * sentence it can easily be output in its original form.
 *
 * Modification History:
 * 2/18/2003 - Initial Release
 */

#include <vector>
#include <string>

using namespace std;

class sentence : public vector<string> {
  
public:
  
  // Constructor.  Parses a sentence into its individual
  // words and stores them in the vector.  Also stores the original
  // form of the sentence.
  //
  // Parameters:
  // s - string containing a sentence of the story.
  sentence(string s);
  
  // Returns the original form of the sentence.
  string originalSentence();
  
private:
  
  // Used to store the original form of the sentence.
  string origSentence;
  
};


