Skip to content

Commit 550a386

Browse files
authored
fix: correct singularization of "waves" (#2194)
We hit a table where "waves" was singularized to "wafe". Probably caught the rule attempting to set "knives" -> "knife" and "wives" -> "wife".
1 parent a02702d commit 550a386

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/inflection/singular.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,9 @@ func Singular(s SingularParams) string {
3939
if strings.ToLower(s.Name) == "calories" {
4040
return "calorie"
4141
}
42+
// Manual fix for incorrect handling of "-ves" suffix
43+
if strings.ToLower(s.Name) == "waves" {
44+
return "wave"
45+
}
4246
return upstream.Singular(s.Name)
4347
}

0 commit comments

Comments
 (0)