# `Macaw.Frame.Document.Words`
[🔗](https://github.com/dcoai/macaw_frame/blob/v0.1.0/lib/macaw/frame/document/words.ex#L1)

The closed vocabularies a reader of a frame document looks words up in (spec/02 §9.3,
§11.1).

`keys/0` is every key of the schema, the singular wrappers of a typed fragment (§16.1)
and the composite's keys: the map form reads a key as an atom only when this table has
it, and keeps any other as its string for the validator to name. `atoms/0` is every word
a `$atom` may spell: the schema's enumerations, the fact keys, the data model's words,
the units, the theme's slots, anchors and frame points. Nothing here is made from a
document: a layer kind's, a model's, an operation's and a generator's names stay strings,
and a category value is the library's atom only when one of these tables has it.

    iex> Macaw.Frame.Document.Words.keys()["frames"]
    :frames
    iex> Macaw.Frame.Document.Words.atoms()["cubic_in_out"]
    :cubic_in_out
    iex> Macaw.Frame.Document.Words.keys()["line"]
    nil

# `anchors`

```elixir
@spec anchors() :: [atom(), ...]
```

The text anchors of a label (§6.3): `:title`, `:subtitle`, `:caption`.

# `atoms`

```elixir
@spec atoms() :: Macaw.Base.Vocabulary.table()
```

The atoms a document's `$atom` may spell (§9.3).

# `frame_points`

```elixir
@spec frame_points() :: [atom(), ...]
```

The corners and center a `{:frame, c}` anchor names (§6.3).

# `keys`

```elixir
@spec keys() :: Macaw.Base.Vocabulary.table()
```

The keys a document's map form reads as atoms (§11.1).

# `slots`

```elixir
@spec slots() :: [atom(), ...]
```

The theme slots a `:size`, `:font` or `:slot` position may name (§1.4).

# `units`

```elixir
@spec units() :: [atom(), ...]
```

The length units a unit value `{n, unit}` names (§3.9).

# `word`

```elixir
@spec word(term(), term()) :: term()
```

The member of `table` a string spells, or the string itself, never a new atom; any other
term as it is.

    iex> Macaw.Frame.Document.Words.word(Macaw.Frame.Document.Words.atoms(), "linear")
    :linear
    iex> Macaw.Frame.Document.Words.word(Macaw.Frame.Document.Words.atoms(), "candlestick")
    "candlestick"

# `wrappers`

```elixir
@spec wrappers() :: [atom(), ...]
```

The singular wrapper keys of a typed fragment (§16.1).

---

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