Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Elixir
  3. inflex

inflex

Apache-2.0Elixir

An Elixir library for handling word inflections like pluralization, singularization, and string transformations.

GitHubGitHub
384 stars81 forks0 contributors

What is inflex?

Inflex is an Elixir library for handling word inflections, providing functions for pluralization, singularization, and string transformations. It simplifies tasks like converting between singular and plural forms, camelizing strings, and parameterizing text, making it essential for applications dealing with dynamic text generation or data formatting. The library is lightweight, dependency-free, and compatible with Erlang/OTP 20+.

Target Audience

Elixir developers building applications that require dynamic text generation, data formatting, or naming convention conversions, such as web frameworks, content management systems, or API tooling.

Value Proposition

Developers choose Inflex for its simplicity, lack of dependencies, and comprehensive support for inflection tasks including irregular nouns and multiple string transformation formats. It offers a focused, reliable solution specifically tailored for Elixir's ecosystem.

Overview

An Inflector library for Elixir

Use Cases

Best For

  • Converting words between singular and plural forms in Elixir applications, including handling irregular nouns like 'person' to 'people'.
  • Generating URL-friendly slugs from strings with custom separators for web routing or SEO purposes.
  • Transforming strings or atoms into camelCase or PascalCase formats for consistent naming in APIs or code generation.
  • Creating underscored, lowercase versions from strings or atoms to convert between naming conventions like UpperCamelCase to snake_case.
  • Returning the correct singular or plural form based on a count for dynamic text, such as '1 child' vs. '2 children'.
  • Building lightweight, dependency-free Elixir libraries or tools that require text inflection without external dependencies.

Not Ideal For

  • Applications requiring inflection for languages other than English, as it likely focuses on English word rules.
  • Projects needing advanced string manipulation beyond basic inflections, such as lemmatization or regex-based transformations.
  • Systems where high-performance, real-time inflection on large datasets is critical, as it's not optimized for speed.
  • Teams using Elixir versions incompatible with Erlang/OTP 20+, due to its specific runtime requirement.

Pros & Cons

Pros

Dependency-Free Design

Inflex has no external dependencies, making it lightweight and easy to integrate without bloating your Elixir project's dependency tree.

Handles Irregular Nouns

It correctly inflects irregular nouns like 'person' to 'people', as shown in the README examples, ensuring accurate pluralization and singularization.

Versatile String Transformations

Provides functions for camelizing, pascalizing, parameterizing, and underscoring strings, useful for various naming conventions and URL generation tasks.

Simple API Integration

The library offers straightforward functions like `singularize` and `pluralize`, with clear examples that allow for quick adoption in modules via import.

Cons

English-Centric Inflections

The library appears focused solely on English word rules, with no mention of support for other languages, limiting its utility in multilingual applications.

Erlang/OTP 20+ Requirement

Inflex requires Erlang/OTP 20+, which can be a barrier for projects stuck on older Erlang versions, as explicitly noted in the README.

Limited Customization

It lacks built-in support for custom inflection rules or extensibility, forcing developers to work around its predefined patterns for edge cases.

Frequently Asked Questions

Quick Stats

Stars384
Forks81
Contributors0
Open Issues4
Last commit2 years ago
CreatedSince 2013

Tags

#elixir#text-processing#pluralization#utility-library#erlang-otp#hex-package#string-manipulation

Built With

E
Elixir
E
Erlang/OTP

Included in

Elixir13.1k
Auto-fetched 1 hour ago

Related Projects

moneymoney

Elixir library for working with Money safer, easier, and fun... Is an interpretation of the Fowler's Money pattern in fun.prog.

Stars847
Forks144
Last commit6 days ago
decimaldecimal

Arbitrary precision decimal arithmetic

Stars477
Forks107
Last commit16 days ago
uuiduuid

UUID generator and utilities for Elixir

Stars367
Forks83
Last commit1 year ago
hashidshashids

Stringify your ids

Stars282
Forks16
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub