Nevermind, I figured it out. My solution was creating the following method, after I realized I didn’t need the feminine article for the equip_options
:
public function get_player_equip_context($player_name, $equip_option) {
$context = sprintf(_x('%1$s\'s %2$s:', 'default', $this->plugin_name ), $player_name, $equip_option);
$has_vowel = $this->is_vowel($player_name);
$is_plural = $this->is_plural($equip_option);
if($has_vowel == true) {
if($is_plural == true) {
$context = sprintf(_x('%1$s\'s %2$s:', 'plural article & vowel name', $this->plugin_name ), $player_name, $equip_option);
} else {
$context = sprintf(_x('%1$s\'s %2$s:', 'single article & vowel name', $this->plugin_name ), $player_name, $equip_option);
}
} else {
if($is_plural == true) {
$context = sprintf(_x('%1$s\'s %2$s:', 'plural article & non-vowel name', $this->plugin_name ), $player_name, $equip_option);
} else {
$context = sprintf(_x('%1$s\'s %2$s:', 'single article & non-vowel name', $this->plugin_name ), $player_name, $equip_option);
}
}
return $context;
}