bylaw vs legislation

bylaw

noun
  • A law or rule governing the internal affairs of an organization (e.g., corporation or business). 

  • A rule made by a local authority to regulate its own affairs. 

  • A local custom or law of a settlement or district. 

legislation

noun
  • Law which has been enacted by legislature or other governing body 

  • The act of legislating; preparation and enactment of laws. 

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