Skip to content
Back to skills

Pluralize

ASecurity

Pluralizes text based on count. Wraps the `pluralize` library. Also exports a `pluralize` utility function.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-ai

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add reaviz/skills --skill pluralize --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pluralize?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pluralize
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reaviz-pluralize/badge)](https://www.skillsdirectory.com/skills/reaviz-pluralize)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Pluralize

Pluralizes text based on count. Wraps the `pluralize` library. Also exports a `pluralize` utility function.

## Import

```tsx
import { Pluralize } from 'reablocks';
// or utility only
import { pluralize } from 'reablocks';
```

## Pluralize Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `count` | `number` | `0` | Number of items |
| `singular` | `string` | — | Singular form of the word |
| `plural` | `string` | — | Custom plural form (auto-pluralized if omitted) |
| `zero` | `string` | — | Custom text when count is 0 |
| `showCount` | `boolean` | `true` | Whether to show the count number |
| `className` | `string` | — | CSS class for the wrapper span |

## Basic Usage

```tsx
<Pluralize count={1} singular="item" />    {/* "1 item" */}
<Pluralize count={5} singular="item" />    {/* "5 items" */}
<Pluralize count={0} singular="item" />    {/* "0 items" */}
```

## Custom Plural

```tsx
<Pluralize count={3} singular="person" plural="people" />  {/* "3 people" */}
```

## Zero State

```tsx
<Pluralize count={0} singular="item" zero="No items" />  {/* "No items" */}
```

## Without Count

```tsx
<Pluralize count={5} singular="item" showCount={false} />  {/* "items" */}
```

## pluralize Utility

```tsx
import { pluralize } from 'reablocks';

pluralize({ count: 5, singular: 'item', showCount: true });    // "5 items"
pluralize({ count: 1, singular: 'person', plural: 'people' }); // "1 person"
pluralize({ count: 0, singular: 'item', zero: 'None' });       // "None"
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.