def getNpsCategory(npsNum):
	"""
	Return: {string} The user category (detractor/passive/promoter) of the given NPS rating.
	"""
	if npsNum < 7:
		return 'detractor'
	elif npsNum < 9:
		return 'passive'
	else:
		return 'promoter'