Skip to content

dry out this code somehow #11

@github-actions

Description

@github-actions

return "{$singular}ES"; // TODO dry out this code somehow

            case "S":
            case "X":
            case "Z":
                return "{$singular}ES"; // TODO dry out this code somehow
            case "y":
                if (self::isVowel(substr($singular, -2, 1))) {
                    return "{$singular}s";
                }
                return substr($singular, 0, strlen($singular) - 1) . "ies";
            case "Y":
                if (self::isVowel(substr($singular, -2, 1))) {
                    return "{$singular}S";
                }
                return substr($singular, 0, strlen($singular) - 1) . "IES";
            default:
                switch (substr($singular, -2)) {

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions