I know this is a very simple question but I seem to be having some problems.
I am trying to stem a list of words using porter_stem but I am getting an error:
Out of local stack
This is my code:
stemming([],[]).
stemming([H|T], A) :-
    stemming(T,Answer),
    porter_stem(H,S),
    append(Answer,S,A).
Basically the pseudocode for this is as follows:
for all items in list
    stem item
    add item to list2
    return list2
Can anyone please point me in the right direction please?
 
    