def normalize(name):
	"""
	Normalizes text from a Wikipedia title/segment by capitalizing the
	first letter, replacing underscores with spaces, and collapsing all
	spaces to one space.
	
	:Parameters:
		name : string
			Namespace or title portion of a Wikipedia page name.
		
	:Return:
		string Normalized text
	"""
	
	return name.capitalize().replace("_", " ").strip()