from typing import Dict
import string
def word_frequency(text: str) -> Dict[str, int]:
"""Analyze text and return a dictionary of word frequencies."""
cleaned_text = text.lower().translate(str.maketrans('', '', string.punctuation))
words = cleaned_text.split()
frequency_dict = {}
for word in words:
frequency_dict[word] = frequency_dict.get(word, 0) + 1
return frequency_dict