parameters: (value)
docstring: Returns a Hebrew ref for the english ref passed in.
docstring_summary: Returns a Hebrew ref for the english ref passed in.
docstring_tokens: Returns a Hebrew ref for the english ref passed in .
function: def hebrew_parasha_name(value):
  	"""
  	Returns a Hebrew ref for the english ref passed in.
  	"""
  	from sefaria.model import Term, library
  	if not value:
  		return ""
  	if "-" in value:
  		if value == "Lech-Lecha":
  			return hebrew_parasha_name(value.replace("-", " "))
  		else:
  			names = value.split("-")
  			return ("-").join(map(hebrew_parasha_name, names))
  	else:
  		try:
  			parasha = library.get_simple_term_mapping().get(value)["he"]
  		except Exception as e:
  			logger.error(str(e))
  			parasha = value
  		return parasha
function_tokens: def hebrew_parasha_name ( value ) : from sefaria . model import Term , library if not value : return "" if "-" in value : if value == "Lech-Lecha" : return hebrew_parasha_name ( value . replace ( "-" , " " ) ) else : names = value . split ( "-" ) return ( "-" ) . join ( map ( hebrew_parasha_name , names ) ) else : try : parasha = library . get_simple_term_mapping ( ) . get ( value ) [ "he" ] except Exception as e : logger . error ( str ( e ) ) parasha = value return parasha