Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yongruilin opened this issue Nov 7, 2024 · 0 comments
Open

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

yongruilin opened this issue Nov 7, 2024 · 0 comments

Comments

@yongruilin
Copy link

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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant