It seems absolutely crazy to me to expect an LLM to code a solution to a problem while also not expecting it to be able to adhere to a grammar.
You might never have tried to program before, so I don't blame it on you.
But most programmers, even experienced ones, see grammar and type errors regularly.
I'm an expert in my field, read my comments, my gramma is shit.