Skip to content

Commit

Permalink
Merge pull request #36 from gobuffalo/task-child-as-irregular
Browse files Browse the repository at this point in the history
Task child as irregular
  • Loading branch information
paganotoni authored Feb 13, 2020
2 parents 42c7425 + 15127be commit 7a04ff1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions flect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ var singlePluralAssertions = []tt{
{"plus", "pluses"},
{"fuse", "fuses"},
{"prometheus", "prometheuses"},
{"field", "fields"},
{"custom_field", "custom_fields"},
}

var pluralSingularAssertions = []tt{}
Expand Down
4 changes: 3 additions & 1 deletion plural_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ var singleToPlural = map[string]string{
"bus": "buses",
"campus": "campuses",
"caucus": "caucuses",
"child": "children",
"château": "châteaux",
"circus": "circuses",
"codex": "codices",
Expand Down Expand Up @@ -110,6 +111,7 @@ var singleToPlural = map[string]string{
"ress": "resses",
"rice": "rice",
"salmon": "salmon",
"sex": "sexes",
"series": "series",
"sheep": "sheep",
"shoe": "shoes",
Expand All @@ -134,6 +136,7 @@ var singleToPlural = map[string]string{
"vortex": "vortices",
"wharf": "wharves",
"wife": "wives",
"woman": "women",
"wolf": "wolves",
"you": "you",
}
Expand Down Expand Up @@ -251,7 +254,6 @@ var singularToPluralSuffixList = []singularToPluralSuffix{
{"io", "ios"},
{"jy", "jies"},
{"ky", "kies"},
{"ld", "ldren"},
{"lf", "lves"},
{"ly", "lies"},
{"my", "mies"},
Expand Down

0 comments on commit 7a04ff1

Please sign in to comment.