UNPKG

inflected

Version:

A port of ActiveSupport's inflector to Node.js

7 lines (5 loc) 214 B
import applyInflections from "./applyInflections"; import inflections from "./inflections"; export default function pluralize(word, locale = "en") { return applyInflections(word, inflections(locale).plurals); }