dry-inflector is a string inflection library from the dry-rb ecosystem that provides methods for transforming strings between different naming conventions. It handles pluralization, singularization, camelization, and other common string transformations with support for custom inflection rules and acronyms. Unlike ActiveSupport's inflector, dry-inflector has zero dependencies and focuses solely on string transformations, making it a lightweight choice for projects that need inflection without pulling in a larger framework.
gem install dry-inflector Run this gem instantly in your browser without any installation:
Open in RunRuby.dev →