I'm new to Prolog and I can't really think of any ways of dealing with this problem, basically i have a sentence for example:
phrase(det(a),np2(adj(large))).
From the sentence above I want to be able to extract in this case determiner (a) and adjective (large) and put them into a list so it looks like:
newList[a,large].
Thank you for your help :)