code: def load_options():
      
      possible_defaults = (
          '/etc/proselintrc',
          os.path.join(proselint_path, '.proselintrc'),
      )
      options = {}
      has_overrides = False
  
      for filename in possible_defaults:
          try:
              options = json.load(open(filename))
              break
          except IOError:
              pass
  
      try:
          user_options = json.load(
              open(os.path.join(_get_xdg_config_home(), 'proselint', 'config')))
          has_overrides = True
      except IOError:
          pass
  
      # Read user configuration from the legacy path.
      if not has_overrides:
          try:
              user_options = json.load(
                  open(os.path.join(os.path.expanduser('~'), '.proselintrc')))
              has_overrides = True
          except IOError:
              pass
  
      if has_overrides:
          if 'max_errors' in user_options:
              options['max_errors'] = user_options['max_errors']
          if 'checks' in user_options:
              for (key, value) in user_options['checks'].items():
                  try:
                      options['checks'][key] = value
                  except KeyError:
                      pass
  
      return options
docs: Read various proselintrc files, allowing user overrides.