human
How do I know when to use a comma versus a semicolon in a sentence?
assistant
When using a comma, the rule is that it should be used to separate clauses within a sentence. For example, "I like to eat ice cream, but not too much." If you are writing about multiple items or ideas, then you would use a semicolon instead of a comma.