import plur from 'plur'

/**
 * Pluralizes an area type
 * @private
 * @param {string} type - the type to pluralize
 * @returns {string} - the pluralized type
 */
export default function pluralizeArea(type) {
	type = type.toLowerCase()
	if (type === 'emphasis') {
		return plur(type, 'emphases', 2)
	}
	return plur(type, 2)
}

@@ -207,101 +207,8 @@
  %7B%0A%09
-type = type.toLowerCase()%0A%09if (type === 'emphasis') %7B%0A%09%09return plur(type, 'emphases', 2)%0A%09%7D%0A%09
 retu
@@ -219,15 +219,29 @@
 lur(type
+.toLowerCase()
 , 2)%0A%7D%0A

simplify pluralizeArea