Skip to main content

kapi voice expand

kapi expand

Ask 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

Commandvoice expand
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 expand
Flags
FlagTypeDefaultDescription
--api-keystringAPI key for the AI provider
--channelstringapply channel-specific overrides
--credentialstringsaved credential name (see 'kapi credentials list')
--dry-runboolfalseprint what would be added and write nothing
--filestringexplicit path to resource file
--languagestringlanguage the terms are in (defaults to the project's source language)
--localboolfalseuse resource in current directory
--localestringapply locale-specific overrides
--modelstringAI model name
--namestringnamed resource in KAPI_HOME (e.g. --name project-terms)
--overwriteboolfalseredo rules that already carry forms
--packstringbuilt-in starter pack name
--personastringapply an author persona's overrides (within the profile guardrails)
--profilestringvoice profile name in the local store
--profile-filestringpath to a standalone profile YAML
--project, -pstringpath to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted)
--providerstringAI provider (default: anthropic)

← Back to the Command Reference