This will require a suffix table of the following kind which must allow both for ambiguous entries and allomorphs of the same morpheme.
suffix([e,d],ed). suffix([e,d],en). suffix([s],plur). suffix([es],plur). etc.