I think the dialogue that is in lower case is a style choice, representing the main character's inner voice.
I understand that it was lowercase to represent that, but bad grammar isn't stylistic. Inner thoughts can be represented through bracketing, italics, different text color, things like that.
Undertale tho.