<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def number(digit):
 	""" 	Gets a spoken-word representation for a number. 	Arguments: 		digit (int):
 An integer to convert into spoken-word. 	Returns: 		A spoken-word representation for a digit, 		including an article ('a' or 'an') and a suffix, 		e.g. 1 -> 'a 1st', 11 -> "an 11th". Adittionally 		delimits characters in pairs of three for values > 999. 	"""


	spoken = str(digit)

	if spoken.startswith("8") or spoken[:len(spoken) % 3] == "11":
		article = "an "
	else:
		article = "a "

	if spoken.endswith("1") and spoken != "11":
		suffix = "st"
	elif spoken.endswith("2") and spoken != "12":
		suffix = "nd"
	elif spoken.endswith("3") and spoken != "13":
		suffix = "rd"
	else:
		suffix = "th"

	if digit > 999:
		prefix = len(spoken) % 3
		separated = spoken[:prefix]
		for n in range(prefix, len(spoken), 3):
			separated += "," + spoken[n : n + 3]
		spoken = separated

	return article + spoken + suffix