Original sentence: She served as commissioner for the New York City Sanitation Department from 2014 to 2020 and was a candidate in the 2021 New York City Democratic mayoral primary, losing by 0.8 percentage points to Eric Adams
Edited sentence: She served as commissioner for the New York City Sanitation Department from 2014 to 2020 and was an unsuccessful candidate in the 2021 New York City Democratic mayoral primary, losing by 0.8 percentage points to Eric Adams