which
The word that starts a nonrestrictive clause, one that adds information about something already identified. It follows a comma, and removing the clause leaves the meaning intact.
Write “, which” for a nonrestrictive clause and “that” for a restrictive one. If the clause only adds information, it takes a comma and “which.”
The check finds one pattern only: “which” with no comma before it. Whether such a clause is restrictive is the writer’s call.
Source: Watership style guide, Terminology

