From b4843da854e9c7f8bf0ed2b3ff0cffe1bfc3c196 Mon Sep 17 00:00:00 2001 From: Gillardo Date: Wed, 5 Dec 2018 13:36:12 +0000 Subject: [PATCH] Fixed training pluralization --- src/Humanizer.Tests.Shared/InflectorTests.cs | 1 + src/Humanizer/Inflections/Vocabularies.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Humanizer.Tests.Shared/InflectorTests.cs b/src/Humanizer.Tests.Shared/InflectorTests.cs index 9788eeb24..e050f4005 100644 --- a/src/Humanizer.Tests.Shared/InflectorTests.cs +++ b/src/Humanizer.Tests.Shared/InflectorTests.cs @@ -192,6 +192,7 @@ public IEnumerator GetEnumerator() yield return new object[] { "human", "humans" }; yield return new object[] { "personnel", "personnel" }; yield return new object[] { "staff", "staff" }; + yield return new object[] { "training", "training" }; yield return new object[] { "basis", "bases" }; yield return new object[] { "diagnosis", "diagnoses" }; diff --git a/src/Humanizer/Inflections/Vocabularies.cs b/src/Humanizer/Inflections/Vocabularies.cs index be577632f..b718e5a22 100644 --- a/src/Humanizer/Inflections/Vocabularies.cs +++ b/src/Humanizer/Inflections/Vocabularies.cs @@ -95,6 +95,7 @@ private static Vocabulary BuildDefault() _default.AddIrregular("this", "these", matchEnding: false); _default.AddIrregular("bus", "buses", matchEnding: false); _default.AddIrregular("staff", "staff", matchEnding: false); + _default.AddIrregular("training", "training", matchEnding: false); _default.AddUncountable("equipment"); _default.AddUncountable("information");