对以下句子进行句法分析，包括短语结构和依存结构。


原始句子：John gave Mary a book on her birthday.
短语结构分析：
(S (NP (Noun John)) (VP (Verb gave) (NP (Noun Mary)) (NP (Det a) (Noun book)) (PP (Prep on) (NP (Det her) (Noun birthday)))))


依存结构分析：
(root 
  (give
     John
     (book
        (Mary) 
        (on 
           (birthday) 
           (her)))))