# `Plurality.Ash.Changes.Singularize`
[🔗](https://github.com/jeffhuen/plurality/blob/main/lib/plurality/ash/changes/singularize.ex#L2)

An `Ash.Resource.Change` that sets an attribute to the singular form of
another attribute.

## Options

  * `:attribute` (atom, required) — the attribute to write the singular form to
  * `:from` (atom, required) — the source attribute to read and singularize

## Usage

    change {Plurality.Ash.Changes.Singularize, attribute: :resource_name, from: :label}

If the source attribute is `nil`, the changeset is returned unchanged.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
