#include #include #include #include using namespace std; #include "stem.h" int main() { char term[50]; char copy[50]; set stoplist; stoplist.insert("to"); stoplist.insert("from"); stoplist.insert("a"); stoplist.insert("the"); stoplist.insert("an"); stoplist.insert("for"); // cout << "Please enter a single English word: "; while (cin >> term) { strcpy(copy, term); if (stoplist.count(term) != 0) cout << "It should be stopped" << endl; Stem(term); cout << "original: " << copy << " :stemmed as: " << term << endl; } return 0; }