inflections.rb 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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 'StatsD'
  14. inflect.acronym 'OEmbed'
  15. inflect.acronym 'OStatus'
  16. inflect.acronym 'ActivityPub'
  17. inflect.acronym 'PubSubHubbub'
  18. inflect.acronym 'ActivityStreams'
  19. inflect.acronym 'JsonLd'
  20. inflect.acronym 'NodeInfo'
  21. inflect.acronym 'Ed25519'
  22. inflect.acronym 'TOC'
  23. inflect.acronym 'RSS'
  24. inflect.acronym 'REST'
  25. inflect.acronym 'URL'
  26. inflect.acronym 'ASCII'
  27. inflect.acronym 'DeepL'
  28. inflect.acronym 'DSL'
  29. inflect.singular 'data', 'data'
  30. end