When you can use a comma:
* When "nevertheless" introduces a contrasting idea within the same sentence:
* "The weather was terrible, nevertheless, we had a great time."
When you should use a semicolon:
* When "nevertheless" introduces a complete thought that is independent of the previous clause:
* "The weather was terrible; nevertheless, we had a great time."
Why semicolons are preferred:
* Clarity: Semicolons help distinguish between independent clauses, making the sentence easier to understand.
* Formal writing: Semicolons are more common in formal writing.
In short, using a comma with "nevertheless" is acceptable in informal writing or when the contrast is within the same sentence. However, using a semicolon is generally preferred for clarity and formality.