---
schema_version: "1"
id: 4e078887e095518d013a4817bd702d1eef42805f0ad7704eb18a7ccff83eeb64
title: pluralize
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-strings-functions-pluralize.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-strings-functions-pluralize
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a62488332b83b2986703e3845d72fa4594f6b3267baf5262089ab66e9d9f45c8
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# 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.
