def get_language_families(lang_file="files/language_families.txt"):
	"""Returns a dictionary with a phylogenetic path for every language.
		For example: "English" -> "IE, Germanic"
	
	Args:
		lang_file (str): The text file listing the UD languages.

	Returns:
		dict of str:str: Mappings from language names to their phylogenetic path.
	"""
	language_families = {}
	with open(lang_file, "r") as infile:
		for line in infile:
			line = line.strip()
			language = []
			for part in line.split():
				if part.isnumeric():
					break
				language.append(part)
			language = "_".join(language)
			family = line.split("K ")[1]
			language_families[language] = family
	return language_families