

'''simple docstring'''


def     SCREAMING_SNAKE_CASE(	UpperCamelCase	)     ->     Optional[Any]:
	UpperCAmelCase_		:   List[Any]													=       word.upper()
	UpperCAmelCase_		:   List[str]													=       0
	UpperCAmelCase_		:   Any													=       {}
	UpperCAmelCase_		:   Union[str, Any]													=       []

	for letter in word:
		if letter not in letter_nums:
			UpperCAmelCase_		:   List[str]													=       str(__a	)
			next_num += 1
		word_pattern.append(letter_nums[letter]	)
	return ".".join(__a	)


if __name__ == "__main__":
						import pprint
						import time

						lowerCAmelCase__      				=			time.time()
						with open("dictionary.txt") as in_file:
												lowerCAmelCase__      				=			in_file.read().splitlines()

						lowerCAmelCase__      				=			{}
						for word in word_list:
												lowerCAmelCase__      				=			get_word_pattern(word)
												if pattern in all_patterns:
																		all_patterns[pattern].append(word)
												else:
																		lowerCAmelCase__      				=			[word]

						with open("word_patterns.txt", "w") as out_file:
												out_file.write(pprint.pformat(all_patterns))

						lowerCAmelCase__      				=			round(time.time() - start_time, 2)
						print(F'Done!  {len(all_patterns):,} word patterns found in {total_time} seconds.')
						# Done!  9,581 word patterns found in 0.58 seconds.











from collections import defaultdict

def       A_   (						__a  :					str		):

				"""simple docstring"""
				a__					   =		defaultdict(__a		)
				# Creating a dictionary containing count of each word
				for word in sentence.split():
								occurrence[word] += 1
				return occurrence


if __name__ == "__main__":
	for word, count in word_occurrence("""INPUT STRING""").items():
		print(f"""{word}: {count}""")

