diff --git a/src/Pluraliser.php b/src/Pluraliser.php index 35ba94f..9f3dcd0 100644 --- a/src/Pluraliser.php +++ b/src/Pluraliser.php @@ -2,8 +2,14 @@ namespace Drupal\opencase; + class Pluraliser { + const NO_CHANGE = ['Staff']; public static function pluralise($text) { - return $text . "s"; + if (in_array($text, self::NO_CHANGE)) { + return $text; + } else { + return $text . "s"; + } } } \ No newline at end of file