Rewrote dictionary function to include normalizing by lowercasing and stripping punctuation