petrovich_elixir v1.0.0 Petrovich.Applier View Source

Applies rules on value.

This module applies inflection rules on raw values. It is tightly coupled with Parser, which supplies the rules.

This function should not be used directly. Use Petrovich module instead.

Link to this section Summary

Functions

This function applies one of the rule based on case to the name, making the inflection itself.

Link to this section Functions

Link to this function

apply(data, case_, map) View Source
apply(String.t(), atom(), map()) :: {atom(), String.t()}

This function applies one of the rule based on case to the name, making the inflection itself.

These rules should be in format: %{"mods" => list(5)}.