X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a59152e34814f453a7380e68a55534e2f8922d57..16b445f3d52952d284dbaac603e70a7196d9a3e9:/apps/workbench/config/initializers/inflections.rb diff --git a/apps/workbench/config/initializers/inflections.rb b/apps/workbench/config/initializers/inflections.rb index 15be67b59c..55399f0f39 100644 --- a/apps/workbench/config/initializers/inflections.rb +++ b/apps/workbench/config/initializers/inflections.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format @@ -15,6 +19,8 @@ # end ActiveSupport::Inflector.inflections do |inflect| - inflect.plural /^(specimen)$/i, '\1s' - inflect.singular /^(specimen)s/i, '\1' + inflect.plural(/^([Ss]pecimen)$/i, '\1s') + inflect.singular(/^([Ss]pecimen)s?/i, '\1') + inflect.plural(/^([Hh]uman)$/i, '\1s') + inflect.singular(/^([Hh]uman)s?/i, '\1') end