def bucket_by_length(words):
	"""Bucket a list of words based on their lengths"""
	num_buckets = list(set([len(x) for x in words]))
	buckets = dict()
	for x in num_buckets:
		buckets[x] = list()
	for word in words:
		buckets[len(word)].append(word)
	return buckets