Merge branch '19095-singularity-bugfix'
[arvados.git] / apps / workbench / config / initializers / inflections.rb
index 15be67b59c5a58babd548db2e0b486534e38f25b..55399f0f39eda0bd1367112c9538779222175f54 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