The Nuxed Inflector component converts words between their singular and plural forms (English only)
This package can be installed with Composer.
$ composer require nuxed/inflector
use namespace Nuxed\Inflector;
<<__EntryPoint>>
async function main(): Awaitable<void> {
$singular = Inflector\Inflector::singularize('children');
// > vec['child']
$plural = Inflector\Inflector::pluralize('bacterium');
// > vec['bacteria']
}
For information on reporting security vulnerabilities in Nuxed, see SECURITY.md.
Nuxed is open-sourced software licensed under the MIT-licensed.