I want to be able to classify if an input text is a complete sentence or not.

The closest accurate definition of ‘being complete’ is if the sentence is a grammatical sentence.
Also ‘being complete’ sentence, can depend on the context of the sentence but I want to focus on a sentence-like text as input for now.

Example of a complete sentence:

“You can write using one of the following styles”
“You can write”
“He writes code”

Example of an incomplete sentence:

“You can write using”
“You can write using one”
“He writes code for”

I found this package for grammar checking which I am going to try:
  
      
      PyPI
  
  
    

language-tool-python 15

Checks grammar using LanguageTool.


  
  
    
    
  
  


I am wondering if there is an ML/DL solution for this problem. Is there a dataset or available model for this that you know?