Revert "Clean up the pluralize function, add some docs"

This reverts commit f9931cb62d8c19a484891af21148be75a0ca022e.
Accidentally committed much more than intended.

Conflicts:
	template.go
Retry commit: "Clean up pluralize function, add some docs"