def full_language_name(language_families, treebank_name, combine_treebanks):
	"""Adds the phylogenetic path to a language/treebank name.
	
	Args:
		language_families (dict of str:str): Mappings from language names to their phylogenetic path.
		treebank_name (str): Name of the treebank file.
		combine_treebanks (boolean): False: the name of the treebank is used; True: the name of the language is used.
	
	Returns:
		str: The extended language/treebank name.

	"""
	language = treebank_name[3:].split("-")[0]
	family = language_families[language]
	if not combine_treebanks:
		language = treebank_name[3:]
	language = (family + ", " + language).replace("_", " ")
	return language