Drops.Inflector.Acronyms (drops_inflector v0.1.0)
View SourceA set of acronyms for proper camelization and underscoring.
This module manages acronym rules that affect how words are transformed during camelization and underscoring operations.
Summary
Functions
Adds a new acronym rule.
Applies acronym rules to a word.
Creates a new empty Acronyms struct.
Returns the regex pattern for matching acronyms.
Types
Functions
Adds a new acronym rule.
Applies acronym rules to a word.
If the word (lowercased) matches an acronym rule, returns the proper acronym form. Otherwise, capitalizes the word if capitalize is true.
@spec new() :: t()
Creates a new empty Acronyms struct.
Returns the regex pattern for matching acronyms.