human
How do I know when to use a semicolon vs. a comma?
assistant
When you are writing an English sentence, the key is to make sure that each clause in your sentence has a subject and verb. To help with this, it can be helpful to remember the basic rules of grammar: 1) Use a comma to separate independent clauses within a sentence; 2) Use a semicolon to separate two closely related independent clauses; 3) Use a period at the end of a sentence.