 			}
 		}
 
-		// capitalize first letter of first word
-		// lowercase all other letters
+		/**
+		*	capitalize()
+		*	Converts the first character to uppercase and the remainder to lowercase.
+		*
+		*	Example:
+		*		Inflector.capitalize('washington') #=> "Washington"
+		**/
 		public static function capitalize (word:String) :String
 		{
 			if (word.length > 0)

			return word.replace(/(.+)ries$/i, '$1ry').replace(/(.+)s$/i, '$1');
		}

		public static function titleize (word:String) :String
		{
			var f:Function = function (...args) :String

			return qualifiedClassName.replace(/^.*::/, '');
		}

		/**
		*	Inflector.humanize(lower_case_and_underscored_word)
		*	Capitalizes the first word and turns underscores into spaces and strips a trailing "_id", if any.
		*	Like titleize, this is meant for creating pretty output.
		*
		*	Examples:
		* 		Inflector.humanize("employee_salary") # => "Employee salary"
 		*		Inflector.humanize("author_id")       # => "Author"
 		**/
		public static function humanize (word:String) :String
		{
			return capitalize(word.replace(/_id$/, '').replace(/_/g, ' '));
