What? Another ActiveSupport::Inflector port? Yeah, sorry.
The most important method is
constantize which is not even attempted in most ports. In fact, the only reason we really need to pluralize or singularize things is so that we can automatically determine the class to instantiate from the name of the data key. That is the whole point of
humanize is just a nice side effect.
In Ruby the scope resolution operator is
MyApp.Models.MyModel. For that reason inflecta uses
. rather than blindly copying the Ruby scope resolution operator.
humanize then it better work with our default conventions.
Real sorry about the name, but inflector was taken on npm.