1. When "such as" introduces a list:
* Use a comma: If "such as" introduces a list of items, a comma is typically used after it.
* Example: "We offer a variety of fruits, such as apples, oranges, and bananas."
* No comma: If the list is very short and closely connected to the main clause, a comma may be omitted.
* Example: "We offer fruits such as apples and oranges."
2. When "such as" introduces an example:
* Use a comma: If "such as" introduces a single example or a brief explanation, a comma is usually needed.
* Example: "He enjoys outdoor activities, such as hiking and camping."
* No comma: If the example is very short and integrated into the sentence, a comma might be omitted.
* Example: "He enjoys outdoor activities such as hiking."
In general, it's safer to use a comma after "such as" to avoid ambiguity and ensure clear communication.