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

# pluralize

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

## pluralize(text: 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(text: Null): Null

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