kapi length-check
kapi length-check [files...]Length Check
Try it
Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.
kapi length-check app.xliff --target-lang frFlags
| Flag | Type | Default | Description |
|---|---|---|---|
| --check-max-char-length | bool | true | Warn if target exceeds a percentage of source character length |
| --check-min-char-length | bool | true | Warn if target is shorter than a percentage of source character length |
| --concurrency, -j | int | 0 | max parallel files (0 = auto) |
| --encoding, -e | string | UTF-8 | input file encoding |
| --fail-on-unknown | bool | false | exit with error if any file cannot be processed (default: skip with warning) |
| --format, -f | string | override input format detection | |
| --json | bool | false | output results as JSON |
| --map, -m | stringArray | map glob pattern to format (e.g. '*.docx=okf_openxml:test') | |
| --max-char-length-above | int | 200 | Max percentage of source length allowed for long text |
| --max-char-length-below | int | 350 | Max percentage of source length allowed for short text |
| --max-char-length-break | int | 20 | Character count threshold between short and long text for max check |
| --max-chars | int | 0 | Absolute maximum character count for target text (0 = disabled) |
| --max-percentage | float64 | 0 | Maximum target/source length ratio as percentage (0 = disabled) |
| --max-words | int | 0 | Maximum word count for target text (0 = disabled) |
| --min-char-length-above | int | 45 | Min percentage of source length allowed for long text |
| --min-char-length-below | int | 30 | Min percentage of source length allowed for short text |
| --min-char-length-break | int | 20 | Character count threshold between short and long text for min check |
| --min-percentage | float64 | 0 | Minimum target/source length ratio as percentage (0 = disabled) |
| --no-warn | bool | false | suppress warnings for skipped files |
| --pack | bool | false | when transforming a .klz, also eject the result to the .klz (auto-pack) |
| --parallel-blocks | int | 0 | fan out block processing across N goroutines (0 = off) |
| --progress, -p | bool | false | show progress bar |
| --source-lang | string | en | source language (e.g. en, en-US) |
| --strict | bool | false | alias for --fail-on-unknown |
| --target-lang | string | target language (e.g. fr, de-DE) | |
| --trace | string | write flow trace JSON to file (for flow visualization) |
More examples
kapi length-check app.xliff --target-lang ja← Back to the Command Reference