# mt dicts

`mt dicts` lists every dictionary the project can read: the `[dicts.<name>]` sections it declares and the built-ins `mt` provides. Each line gives the name, the entry count it resolved to, whether a lookup folds case, and where the entries come from. `inline` covers `values`, a `path` file and a built-in. `include:` names the dictionaries it unions in, so a dictionary built from both built-in word lists shows their count together.

`mt dicts <name>` prints one dictionary’s entries, one per line, after `mt` merges `include`, `values` and `path`. That’s the list a rule reading the dictionary accepts, and a `fold` dictionary prints it lowercase. To declare a dictionary, or to see how its entries merge, read [Views & dictionaries](https://mlavrinenko.github.io/mindtape/named-sets/index.md#dictionaries).

List the project's dictionaries, or one dictionary's entries

A dictionary shows how many entries it resolved to, whether lookups fold case, and where its entries come from: written inline, or the dictionaries it includes, named after `include:`.

`mt dicts` lists every dictionary the project can read: its `[dicts.<name>]` sections and the built-ins `mt` provides. Each line gives the name, the entry count it resolved to, whether a lookup folds case, and where the entries come from. `inline` covers `values`, a `path` file and a built-in. `include:` names the dictionaries it unions in, so a dictionary built from both built-in word lists shows their count together. `mt dicts <name>` prints one dictionary’s entries, one per line, after `mt` merges `include`, `values` and `path`. That’s the list a rule reading the dictionary accepts, and a `fold` dictionary prints it lowercase.

Runs on one project and refuses a [set](https://mlavrinenko.github.io/mindtape/read-many-projects/index.md).

- `[NAME]`: List this dictionary's entries instead of the dictionaries
- `--json`: Print JSON

```
$ mt dicts
mindtape-dev-verbs  318  case fold   inline
mindtape-verbs      500  case fold   inline
services            4    case fold   inline
source              1    case exact  inline
verbs               820  case fold   include: mindtape-verbs, mindtape-dev-verbs
```

Every command also takes the [global flags](https://mlavrinenko.github.io/mindtape/cli/index.md#global-flags).
