          return name
      raise IOError("Can't find model '%s'" % name)
  
  
  def is_package(origin):
      """
      Check if string maps to a package installed via pip.
      """
      packages = pip.get_installed_distributions()
      for package in packages:
          if package.project_name.replace('-', '_') == origin:
              return True
 
</s> remove         if package.project_name.replace('-', '_') == origin:
 </s> add         if package.project_name.replace('-', '_') == name: </s> remove     """
    Check if a meta.json exists in a package and return its contents as a
    dictionary. If require is set to True, raise an error if no meta.json found.
 </s> add     """Check if a meta.json exists in a package and return its contents.

    Args:
        package_path (Path): Path to model package directory.
        require (bool): If True, raise error if no meta.json is found.
    Returns:
        dict or None: Model meta.json data or None. </s> remove     """
    Get user input via raw_input / input and return input value. Takes a
    description, and an optional default value to display with the prompt.
 </s> add     """Get user input from the command line via raw_input / input.

    Args:
        description (unicode): Text to display before prompt.
        default (unicode or False/None): Default value to display with prompt.
    Returns:
        unicode: User input.
def is_package(name):
    """Check if string maps to a package installed via pip.

    Args:
        name (unicode): Name of package.
    Returns:
        bool: True if installed package, False if not.

          return name
      raise IOError("Can't find model '%s'" % name)
  
  
def is_package(name):
    """Check if string maps to a package installed via pip.

    Args:
        name (unicode): Name of package.
    Returns:
        bool: True if installed package, False if not.

def is_package(name):
    """Check if string maps to a package installed via pip.

    Args:
        name (unicode): Name of package.
    Returns:
        bool: True if installed package, False if not.

def is_package(name):
    """Check if string maps to a package installed via pip.

    Args:
        name (unicode): Name of package.
    Returns:
        bool: True if installed package, False if not.

      """
      packages = pip.get_installed_distributions()
      for package in packages:
          if package.project_name.replace('-', '_') == origin:
              return True
keep keep keep keep replace replace replace keep keep keep keep keep
 Add docstrings, error messages and fix consistency 
spacy/util.py