The ActiveSupport::Inflector handles a lot of the semantic rules in Rails, including acronyms.
ActiveSupport::Inflector