checks/semantic/length_ratio library

Classes

LengthRatioRule
Warn when a translation is suspiciously much shorter or longer than the source. Out-of-band lengths are a strong signal of a truncated translation, a swap-bug (wrong locale's text), or an AI that hallucinated extra prose.