Loading...
Implement a text normalizer that performs the following steps in order:
Input: A single line of text Output: The normalized text
I can't believe it's already 2024!
i cannot believe it is already 2024
Step 1: Lowercase "i can't believe it's already 2024!"
Step 2: Expand contractions "can't" -> "cannot", "it's" -> "it is" "i cannot believe it is already 2024!"
Step 3: Remove punctuation Remove "!" -> "i cannot believe it is already 2024"
Step 4: Collapse spaces Already single-spaced, result: "i cannot believe it is already 2024"