Name: Anonymous 2011-12-11 12:09
Is this impressive?
http://www.youtube.com/watch?v=y71lli8MS8s
http://www.youtube.com/watch?v=y71lli8MS8s
//Stem word
string stemWord(string word)
{
const int word_len = word.length();
string stems[4] = {"ing","ed","er","s"};
string temp = "";
bool isStem;
if (word_len > 4)
{
for (int i = 0; i < 4 || isStem == false; i++)
{
if (word.compare(word_len - stems[i].length(), stems[i].length(), stems[i]) == 0)
{
for (int x = 0; x < diff; x++)
{
temp[x] += word[x];
}
word = temp;
}
}
}
return word;
}