Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / config / initializers / inflections.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 # Be sure to restart your server when you modify this file.
6
7 # Add new inflection rules using the following format
8 # (all these examples are active by default):
9 # ActiveSupport::Inflector.inflections do |inflect|
10 #   inflect.plural /^(ox)$/i, '\1en'
11 #   inflect.singular /^(ox)en/i, '\1'
12 #   inflect.irregular 'person', 'people'
13 #   inflect.uncountable %w( fish sheep )
14 # end
15 #
16 # These inflection rules are supported but not enabled by default:
17 # ActiveSupport::Inflector.inflections do |inflect|
18 #   inflect.acronym 'RESTful'
19 # end
20
21 ActiveSupport::Inflector.inflections do |inflect|
22   inflect.plural(/^([Ss]pecimen)$/i, '\1s')
23   inflect.singular(/^([Ss]pecimen)s?/i, '\1')
24   inflect.plural(/^([Hh]uman)$/i, '\1s')
25   inflect.singular(/^([Hh]uman)s?/i, '\1')
26 end