Rueful has 2 different meanings across 1 category:
Adjective
feeling or expressing pain or sorrow for sins or offenses
Causing, feeling, or expressing regret or sorrow, especially in a wry or humorous way.