An open API service indexing awesome lists of open source software.

https://github.com/nuxed/inflector

The Nuxed Inflector component converts words between their singular and plural forms (English only)
https://github.com/nuxed/inflector

hack hack-lang hhvm inflector nuxed pluralize singularize

Last synced: 5 months ago
JSON representation

The Nuxed Inflector component converts words between their singular and plural forms (English only)

Awesome Lists containing this project

README

          


Build Status
Total Downloads
Latest Stable Version
License

# Nuxed Inflector

The Nuxed Inflector component converts words between their singular and plural forms (English only)

### Installation

This package can be installed with [Composer](https://getcomposer.org).

```console
$ composer require nuxed/inflector
```

### Example

```hack
use namespace Nuxed\Inflector;

<<__EntryPoint>>
async function main(): Awaitable {
$singular = Inflector\Inflector::singularize('children');
// > vec['child']

$plural = Inflector\Inflector::pluralize('bacterium');
// > vec['bacteria']
}
```

---

### Security

For information on reporting security vulnerabilities in Nuxed, see [SECURITY.md](SECURITY.md).

---

### License

Nuxed is open-sourced software licensed under the MIT-licensed.