Here’s how they actually go about writing the episodes. They have one list of stereotypical plotlines for sitcom episodes and one list of controversial issues. They choose one plot line and one issue at random and write the script based on those two ideas.