// StopWord.h
// declares StopWord class
// reads list of and compares list of StopWords

#ifndef StopWord_H
#define StopWord_H

#include "cs240.h"
#include "stringlist.h"
#include <string>

class StopWord : public CS240 {
		public:
				StopWord( string = "stopword.txt" );	// Constructor, opens stopword file and reads it into words
				bool isStopWord( string );				// returns true if passed string is found in words
		private:
				string fileName;						// stopword file name
				StringList words;						// linked list of stop words
};

#endif
