/** * Locale constructor. * * @param Data|array|null $options Options to locale. */ public function __construct($options = null) { parent::__construct($options); if ($this->options->gender === static::GENDER_FEMALE) { // Apply the female gender to simple spells. $this->options->simpleSpells = array_replace($this->options->simpleSpells, $this->options->simpleSpellsFemale); } }