The improvement of the flawed character (which is shown by his or her becoming more and more an approximation of the ideal character of his or her sex) marks the story as a comedy; otherwise, if the flawed character fails to measure up to the genre's ideal by the end of the story, his or her narrative is a tragedy.