luralizing and singularizing words got very easy with the inclusion of the Doctrine Inflector class in Drupal 8 core.
$pluralized = Inflector::pluralize($bundle_singular);
$singularized = Inflector::singularize($bundle_singular);
You can read more about the Doctrine Inflector class here.


