Choosing whoever or whomever can be easy. Whoever is an object pronoun and works like the pronouns him, her, and them (Give the document to whomever in the department). Whoever is a subject pronoun and works like the pronouns he, she, and they (Whoever wrote this poem should win a prize).