---
schema_version: "1"
id: 63fab0490a4999647e05b054693ba079a4fd5d7f558ece0cf0ac850e803f377e
title: pluralize
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-strings-functions-pluralize.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-strings-functions-pluralize
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 0df3c2b4b6f952ffa16426bb51298d1677f9069ba9cde9228d658a9f07a5581b
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# pluralize

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## pluralize(String): String

Pluralizes a singular string.

If the input is already plural (for example, "boxes"), the output will match the input.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>text</code></p></td><td><p>The string to pluralize.</p></td></tr></tbody></table>

### Example

This example pluralizes the input string "box" to return "boxes".

#### Source

```DataWeave
%dw 2.0
import * from dw::core::Strings
output application/json
---
 { "pluralize" : pluralize("box") }
```

#### Output

```JSON
{ "pluralize" : "boxes" }
```

## pluralize(Null): Null

Helper function that enables `pluralize` to work with a `null` value.
