Drops.Inflector.Inflections (drops_inflector v0.1.0)
View SourceInflection rules container.
This module manages all the inflection rules including plurals, singulars, uncountables, humans, and acronyms.
Summary
Functions
Adds acronym rules.
Adds a human rule.
Adds an irregular inflection (both plural and singular).
Creates a new Inflections struct with default rules.
Adds a pluralization rule.
Adds a singularization rule.
Adds uncountable words.
Types
@type t() :: %Drops.Inflector.Inflections{ acronyms: Drops.Inflector.Acronyms.t(), humans: Drops.Inflector.Rules.t(), plurals: Drops.Inflector.Rules.t(), singulars: Drops.Inflector.Rules.t(), uncountables: MapSet.t() }
Functions
Adds acronym rules.
Adds a human rule.
Adds an irregular inflection (both plural and singular).
@spec new() :: t()
Creates a new Inflections struct with default rules.
Adds a pluralization rule.
Adds a singularization rule.
Adds uncountable words.