kapi voice expand
kapi expandAsk a model for the other shapes each vocabulary term takes (inflections,
declensions, conjugations) and write them into the profile as forms:.
The check matches those forms exactly, so this is authoring-time work whose result you review in a diff. Run it again after adding terms; rules that already carry forms are left alone unless --overwrite is given.
kapi voice expand --profile-file voice.yaml --language nb kapi voice expand --profile-file voice.yaml --dry-run
Try it (demo)
Demo mode — illustrative output from a built-in stub, not a real model. Install the CLI to run with your own API key.
kapi voice expandFlags
| Flag | Type | Default | Description |
|---|---|---|---|
| --api-key | string | API key for the AI provider | |
| --channel | string | apply channel-specific overrides | |
| --credential | string | saved credential name (see 'kapi credentials list') | |
| --dry-run | bool | false | print what would be added and write nothing |
| --file | string | explicit path to resource file | |
| --language | string | language the terms are in (defaults to the project's source language) | |
| --local | bool | false | use resource in current directory |
| --locale | string | apply locale-specific overrides | |
| --model | string | AI model name | |
| --name | string | named resource in KAPI_HOME (e.g. --name project-terms) | |
| --overwrite | bool | false | redo rules that already carry forms |
| --pack | string | built-in starter pack name | |
| --persona | string | apply an author persona's overrides (within the profile guardrails) | |
| --profile | string | voice profile name in the local store | |
| --profile-file | string | path to a standalone profile YAML | |
| --project, -p | string | path to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted) | |
| --provider | string | AI provider (default: anthropic) |
← Back to the Command Reference