homosexuality vs sodomy

homosexuality

noun
  • Sexual activity with a person of the same sex, sometimes (potentially offensive) restricted to same-sex sex between males. 

  • The state of being sexually attracted primarily or exclusively to persons of the same sex, sometimes (potentially offensive) restricted to same-sex attraction between males. 

sodomy

noun
  • Any of several forms of sexual intercourse held to be unnatural, particularly bestiality or historically homosexuality, but also (sometimes) anal or oral sex. 

  • Anal sex. 

How often have the words homosexuality and sodomy occurred in a corpus of books? (source: Google Ngram Viewer )