attempted to reconstruct pluralize script with unit tests and all