Building a Basic Grammar Checker

Review the steps to create a basic grammar checker.

We'll cover the following

Creating the full corrector

Now that we have written both parts to our grammar corrector, let’s create a master function that incorporates all of our pieces together. The goal will be to input a paragraph and receive a list of which sentence contained the error, along with the specifics of the error. The solution to the previous problems is given below, but you are welcome to copy over your own solutions as well.

Your task is to implement the function grammar_check(). Within it, simply split the paragraph into sentences, and for each of those sentences, run it through our grammar objects, recording any errors with the sentence’s grammatical structure.

When this is complete, we will have a simple grammar checker that can detect article issues, comma issues, and incomplete sentences with a good degree of accuracy!

Get hands-on with 1400+ tech skills courses.