Skip to content

bug: Plural for words end with "ea" is incorrect #76

@yongruilin

Description

@yongruilin

Description

Description

The words ending with "ea" are not pluralized correctly.

func main() {
	fmt.Println(strings.ToLower(flect.Pluralize("area")))
	fmt.Println(strings.ToLower(flect.Pluralize("idea")))
}

return

area
idea

Expected Behavior

return

areas
ideas

Actual Behavior

returned

area
idea

To Reproduce

Code snippet

package main

import (
	"fmt"

	"github.com/gobuffalo/flect"
)

func main() {
	fmt.Println(strings.ToLower(flect.Pluralize("area")))
	fmt.Println(strings.ToLower(flect.Pluralize("idea")))
}

saved on ./main.go
and run go run ./main.go

Additional Context

Details

Paste the output of `buffalo info` here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions