13493: Merge branch 'master' into 13493-federation-proxy
[arvados.git] / apps / workbench / config / initializers / inflections.rb
index 15be67b59c5a58babd548db2e0b486534e38f25b..01e71585e382fe38e66d833446a90bba2a7e758c 100644 (file)
@@ -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