How to Pluralize and Singularize a Word in Drupal 8

use Doctrine\Common\Inflector\Inflector;
 
$pluralized = Inflector::pluralize($bundle_singular);
$singularized = Inflector::singularize($bundle_singular);

Doctrine Inflector class here