def get_rank(target, ranks):
	"""
	Get rank of a target entity within all ranked entities.

	Args:
		target (str): Target entity which rank should be determined.
		ranks (list): List of tuples of an entity and its rank.

	Returns:
		int: Rank of entity or -1 if entity is not present in ranks.
	"""
	for i in range(len(ranks)):
		word, rank = ranks[i]
		if word == target:
			return i
	return -1