Skip to content

Commit

Permalink
Merge pull request #1003 from Humanizr/gloves
Browse files Browse the repository at this point in the history
Fix singularization for "gloves"
  • Loading branch information
hazzik authored Nov 3, 2020
2 parents 34661ac + 5faeeb7 commit 40f49fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Humanizer.Tests.Shared/InflectorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public IEnumerator<object[]> GetEnumerator()
yield return new object[] { "safe", "saves" };
yield return new object[] { "half", "halves" };

yield return new object[] { "glove", "gloves" };
yield return new object[] { "move", "moves" };

yield return new object[] { "salesperson", "salespeople" };
Expand Down
3 changes: 2 additions & 1 deletion src/Humanizer/Inflections/Vocabularies.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading;

namespace Humanizer.Inflections
Expand Down Expand Up @@ -79,6 +79,7 @@ private static Vocabulary BuildDefault()
_default.AddIrregular("human", "humans");
_default.AddIrregular("child", "children");
_default.AddIrregular("sex", "sexes");
_default.AddIrregular("glove", "gloves");
_default.AddIrregular("move", "moves");
_default.AddIrregular("goose", "geese");
_default.AddIrregular("wave", "waves");
Expand Down

0 comments on commit 40f49fa

Please sign in to comment.