From 12a38d343308b0872a10256aa455863e4d126fd0 Mon Sep 17 00:00:00 2001 From: Rob Liebowitz Date: Wed, 5 Apr 2023 18:10:55 -0400 Subject: [PATCH] fix: correct singularization of "waves" We hit a table where "waves" was singularized to "wafe". Probably caught the rule attempting to set "knives" -> "knife" and "wives" -> "wife". --- internal/inflection/singular.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/inflection/singular.go b/internal/inflection/singular.go index 6718bf7ef1..caff453489 100644 --- a/internal/inflection/singular.go +++ b/internal/inflection/singular.go @@ -39,5 +39,9 @@ func Singular(s SingularParams) string { if strings.ToLower(s.Name) == "calories" { return "calorie" } + // Manual fix for incorrect handling of "-ves" suffix + if strings.ToLower(s.Name) == "waves" { + return "wave" + } return upstream.Singular(s.Name) }