environment vs habitat

environment

noun
  • The natural world or ecosystem. 

  • The set of variables and their values in a namespace that an operating system associates with a process. 

  • The surroundings of, and influences on, a particular item of interest. 

  • All the elements that affect a system or its inputs and outputs. 

  • A particular political or social setting, arena or condition. 

  • The environment of a function at a point during the execution of a program is the set of identifiers in the function's scope and their bindings at that point. 

  • The software and/or hardware existing on any particular computer system. 

habitat

noun
  • A terrestrial or aquatic area distinguished by geographic, abiotic and biotic features, whether entirely natural or semi-natural. 

  • Conditions suitable for an organism or population of organisms to live. 

  • A place in which a person lives. 

  • A place or type of site where an organism or population naturally occurs. 

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