# File lib/glue/inflector.rb, line 59 def plural_rules #:doc: [ [/(x|ch|ss)$/, '\1es'], # search, switch, fix, box, process, address [/([^aeiouy]|qu)y$/, '\1ies'], # query, ability, agency [/(?:([^f])fe|([lr])f)$/, '\1\2ves'], # half, safe, wife [/sis$/, 'ses'], # basis, diagnosis [/([ti])um$/, '\1a'], # datum, medium [/person$/, 'people'], # person, salesperson [/man$/, 'men'], # man, woman, spokesman [/child$/, 'children'], # child [/s$/, 's'], # no change (compatibility) [/$/, 's'] ] end