1
0

inflections.rb 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # frozen_string_literal: true
  2. # Be sure to restart your server when you modify this file.
  3. # Add new inflection rules using the following format. Inflections
  4. # are locale specific, and you may define rules for as many different
  5. # locales as you wish. All of these examples are active by default:
  6. # ActiveSupport::Inflector.inflections(:en) do |inflect|
  7. # inflect.plural /^(ox)$/i, "\\1en"
  8. # inflect.singular /^(ox)en/i, "\\1"
  9. # inflect.irregular "person", "people"
  10. # inflect.uncountable %w( fish sheep )
  11. # end
  12. ActiveSupport::Inflector.inflections(:en) do |inflect|
  13. inflect.acronym 'ActivityPub'
  14. inflect.acronym 'ActivityStreams'
  15. inflect.acronym 'ASCII'
  16. inflect.acronym 'CLI'
  17. inflect.acronym 'DeepL'
  18. inflect.acronym 'DSL'
  19. inflect.acronym 'JsonLd'
  20. inflect.acronym 'OEmbed'
  21. inflect.acronym 'OStatus'
  22. inflect.acronym 'PubSubHubbub'
  23. inflect.acronym 'REST'
  24. inflect.acronym 'RSS'
  25. inflect.acronym 'StatsD'
  26. inflect.acronym 'TOC'
  27. inflect.acronym 'URL'
  28. inflect.singular 'data', 'data'
  29. end
  30. # These inflection rules are supported but not enabled by default:
  31. # ActiveSupport::Inflector.inflections(:en) do |inflect|
  32. # inflect.acronym "RESTful"
  33. # end