How do you use the word sentence in a sentence?

Sentence can mean the words in a written construction, or a court-ordered punishment for a crime.

Example : "You can usually tell if a sentence is poorly written when it cannot be spoken aloud in a natural way."

Example : "The robber was given a lengthy sentence by the judge."

The sentence that the girl wrote was filled with misspelled words and improper grammar.