To do a really good job I think you need an LLM. So the relevant Python code would be an API call to chatGPT. I just tested it.
Me: Tell me if the following sentence contains any typos or grammar errors:
"This is my CV.I am a experianced developer. I have 5 years of experiance."
ChatGPT:
Yes, there are typos and grammar errors in the sentence. Here is the corrected sentence:
"This is my CV. I am an experienced developer. I have 5 years of experience."
The corrections made are as follows:
1. "experianced" should be "experienced".
2. "experiance" should be "experience".
3. The first sentence is incomplete and should be separated from the second sentence with a period
Point #3 correctly calls out the error (missing space) but describes it incorrectly. Also it corrected "a" to "an" (good for a grammar checker) but didn't list it as a mistake.
Me: Tell me if the following sentence contains any typos or grammar errors:
"This is my CV.I am a experianced developer. I have 5 years of experiance."
ChatGPT:
Yes, there are typos and grammar errors in the sentence. Here is the corrected sentence:
"This is my CV. I am an experienced developer. I have 5 years of experience."
The corrections made are as follows:
1. "experianced" should be "experienced".
2. "experiance" should be "experience".
3. The first sentence is incomplete and should be separated from the second sentence with a period
Point #3 correctly calls out the error (missing space) but describes it incorrectly. Also it corrected "a" to "an" (good for a grammar checker) but didn't list it as a mistake.