diff --git a/inflect.go b/inflect.go index 556135c..eacf247 100644 --- a/inflect.go +++ b/inflect.go @@ -183,6 +183,7 @@ func newBoilRuleset() *inflect.Ruleset { rs.AddSingularExact("quizzes", "quiz", true) rs.AddSingular("databases", "database") rs.AddSingular("menus", "menu") + rs.AddSingular("personas", "persona") rs.AddIrregular("person", "people") rs.AddIrregular("man", "men") rs.AddIrregular("child", "children") diff --git a/strmangle_test.go b/strmangle_test.go index b575b23..94c45f8 100644 --- a/strmangle_test.go +++ b/strmangle_test.go @@ -145,6 +145,7 @@ func TestSingular(t *testing.T) { {"areas", "area"}, {"hello_there_people", "hello_there_person"}, {"schemas", "schema"}, + {"personas", "persona"}, } for i, test := range tests { @@ -167,6 +168,7 @@ func TestPlural(t *testing.T) { {"area", "areas"}, {"hello_there_person", "hello_there_people"}, {"schema", "schemas"}, + {"persona", "personas"}, } for i, test := range tests {