public static function makeSingular($plural)
    {
        $plurals = ["ies" => "y", "es" => "", "s" => ""];

        foreach ($plurals as $pluralEnding => $singularEnding) {
            $plural = preg_replace("/" . $pluralEnding . "$/i", $singularEnding, $plural);
        }

        return $plural;
    }