From 0057b3d3485badba9ccd416adaa79442644685b0 Mon Sep 17 00:00:00 2001 From: jermdavis Date: Fri, 19 Dec 2014 15:12:19 +0000 Subject: [PATCH 1/2] Adding "campuses" as plural of "campus" --- src/Humanizer.Tests/InflectorTests.cs | 2 ++ src/Humanizer/InflectorExtensions.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Humanizer.Tests/InflectorTests.cs b/src/Humanizer.Tests/InflectorTests.cs index cfbfbaf03..723d95767 100644 --- a/src/Humanizer.Tests/InflectorTests.cs +++ b/src/Humanizer.Tests/InflectorTests.cs @@ -248,6 +248,8 @@ public IEnumerator GetEnumerator() yield return new object[] {"fungus", "fungi"}; yield return new object[] {"wave","waves"}; + + yield return new object[] {"campus", "campuses"}; } IEnumerator IEnumerable.GetEnumerator() diff --git a/src/Humanizer/InflectorExtensions.cs b/src/Humanizer/InflectorExtensions.cs index c15dbc16d..e0ea8bde6 100644 --- a/src/Humanizer/InflectorExtensions.cs +++ b/src/Humanizer/InflectorExtensions.cs @@ -70,6 +70,7 @@ static InflectorExtensions() AddPlural("([m|l])ouse$", "$1ice"); AddPlural("^(ox)$", "$1en"); AddPlural("(quiz)$", "$1zes"); + AddPlural("(campus)$", "$1es"); AddSingular("s$", ""); AddSingular("(n)ews$", "$1ews"); @@ -95,6 +96,7 @@ static InflectorExtensions() AddSingular("(vert|ind)ices$", "$1ex"); AddSingular("(matr)ices$", "$1ix"); AddSingular("(quiz)zes$", "$1"); + AddSingular("(campus)es$", "$1"); AddIrregular("person", "people"); AddIrregular("man", "men"); From c9a3bab2d741cccdbd76d7477cf193cb8bd47235 Mon Sep 17 00:00:00 2001 From: jermdavis Date: Sat, 20 Dec 2014 12:05:05 +0000 Subject: [PATCH 2/2] Adding PR364 to release notes document --- release_notes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/release_notes.md b/release_notes.md index 8ecfc7543..bd3b4af56 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,5 +1,6 @@ ###In Development + - [#364](https://github.com/MehdiK/Humanizer/pull/364): Adding "campuses" as plural of "campus" [Commits](https://github.com/MehdiK/Humanizer/compare/v1.32.0...master)