From 940ab10c84d33313519e6588d152523fa77ec0d7 Mon Sep 17 00:00:00 2001 From: atomiks Date: Thu, 4 Jan 2018 03:08:08 +1100 Subject: [PATCH] Update pluralize.md --- snippets/pluralize.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/pluralize.md b/snippets/pluralize.md index bc72f4dd9..6ee5b41df 100644 --- a/snippets/pluralize.md +++ b/snippets/pluralize.md @@ -1,6 +1,6 @@ ### pluralize -Returns the singular or plural form of the word based on the input number. If the first argument is an `object`, it will use a closure by returning a function that can auto-pluralize plurals that don't simply end in `s` if the supplied dictionary contains the word. +Returns the singular or plural form of the word based on the input number. If the first argument is an `object`, it will use a closure by returning a function that can auto-pluralize words that don't simply end in `s` if the supplied dictionary contains the word. If `num` is either `-1` or `1`, return the singular form of the word. If `num` is any other number, return the plural form. Omit the third argument to use the default of the singular word + `s`, or supply a custom pluralized word when necessary. If the first argument is an `object`, utilize a closure by returning a function which can use the supplied dictionary to resolve the correct plural form of the word.