Skip to content

Commit

Permalink
Merge pull request #1226 from rmuch/master
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp authored Mar 3, 2021
2 parents e3aa914 + a846a89 commit 097ac7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CommonRuntime/Pluralizer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ let private tables = lazy(
"child", "children", ""
"chassis", "", ""
"chinese", "", ""
"choice", "choices", ""
"clippers", "", ""
"cod", "", ""
"codex", "codices", ""
Expand Down Expand Up @@ -154,6 +155,7 @@ let private tables = lazy(
"pro", "pros", ""
"rabies", "", ""
"radius", "radiuses", "radii"
"release", "releases", ""
"rhino", "rhinos", ""
"salmon", "", ""
"scissors", "", ""
Expand Down
4 changes: 4 additions & 0 deletions tests/FSharp.Data.Tests/NameUtils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ let ``Can pluralize names``() =
check "woman" "women"
check "index" "indices"
check "status" "statuses"
check "release" "releases"
check "choice" "choices"

[<Test>]
let ``Can singularize names``() =
Expand All @@ -146,3 +148,5 @@ let ``Can singularize names``() =
check "indices" "index"
check "indexes" "index"
check "statuses" "status"
check "releases" "release"
check "choices" "choice"

0 comments on commit 097ac7f

Please sign in to comment.