Skip to main content

kapi length-check

kapi length-check [files...]

Length Check

Commandlength-check
Groupquality
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 fr
Flags
FlagTypeDefaultDescription
--check-max-char-lengthbooltrueWarn if target exceeds a percentage of source character length
--check-min-char-lengthbooltrueWarn if target is shorter than a percentage of source character length
--concurrency, -jint0max parallel files (0 = auto)
--encoding, -estringUTF-8input file encoding
--fail-on-unknownboolfalseexit with error if any file cannot be processed (default: skip with warning)
--format, -fstringoverride input format detection
--jsonboolfalseoutput results as JSON
--map, -mstringArraymap glob pattern to format (e.g. '*.docx=okf_openxml:test')
--max-char-length-aboveint200Max percentage of source length allowed for long text
--max-char-length-belowint350Max percentage of source length allowed for short text
--max-char-length-breakint20Character count threshold between short and long text for max check
--max-charsint0Absolute maximum character count for target text (0 = disabled)
--max-percentagefloat640Maximum target/source length ratio as percentage (0 = disabled)
--max-wordsint0Maximum word count for target text (0 = disabled)
--min-char-length-aboveint45Min percentage of source length allowed for long text
--min-char-length-belowint30Min percentage of source length allowed for short text
--min-char-length-breakint20Character count threshold between short and long text for min check
--min-percentagefloat640Minimum target/source length ratio as percentage (0 = disabled)
--no-warnboolfalsesuppress warnings for skipped files
--packboolfalsewhen transforming a .klz, also eject the result to the .klz (auto-pack)
--parallel-blocksint0fan out block processing across N goroutines (0 = off)
--progress, -pboolfalseshow progress bar
--source-langstringensource language (e.g. en, en-US)
--strictboolfalsealias for --fail-on-unknown
--target-langstringtarget language (e.g. fr, de-DE)
--tracestringwrite flow trace JSON to file (for flow visualization)
More examples
kapi length-check app.xliff --target-lang ja

← Back to the Command Reference