She didn't listen.
( She ( ( ( did n't ) listen ) . ) )
(ROOT (S (NP (PRP She)) (VP (VBD did) (RB n't) (VP (VB listen))) (. .)))
She didn't listen when he was speaking.
( She ( ( ( did n't ) ( listen ( when ( he ( was speaking ) ) ) ) ) . ) )
(ROOT (S (NP (PRP She)) (VP (VBD did) (RB n't) (VP (VB listen) (SBAR (WHADVP (WRB when)) (S (NP (PRP he)) (VP (VBD was) (VP (VBG speaking))))))) (. .)))