Skip to content

bug: Singular form of "invoices" is "invoice" #61

@travisnewhouse

Description

@travisnewhouse

Description

Description

The singular form of "invoices" is "invoice". Similar words are "voices" -> "voice" and "choices" -> "choice". Flect.Singularize() does not return the correct singular form of these words. As a side note, flect.Pluralize() does return the proper plural form of the singular form of these words.

Expected Behavior

flect.Singularize("invoices") == "invoice"
flect.Singularize("voices") == "voice"
flect.Singularize("choices") == "choice"

Actual Behavior

flect.Singularize("invoices") == "invoex"
flect.Singularize("voices") == "voex"
flect.Singularize("choices") == "choex"

To Reproduce

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions