method

apply_inflections

apply_inflections(word, rules)
private

Applies inflection rules for singularize and pluralize.

Examples:

apply_inflections("post", inflections.plurals) # => "posts"
apply_inflections("posts", inflections.singulars) # => "post"