ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.acronym 'API'
end
now You can write as below
class API::PeopleController < ApplicationController
end
Overriding the Singular Form
ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'tooth', 'teeth'
end