This suggests a shortcut in the form of a predicate
split_suffix(Ending,Root,Suffix)
which would implement the relation described by the suffix table just shown. We would expect to behave in the following way:
split_suffix([a,b,b,i,n,g],[a,b],[i,n,g]).
In order to exploit split_suffix we need