Description
Compare supplied source and target passage token counts.
Comparative literary records preserve editions, translations, source lines, rhyme classes and editorial omissions. A code-point count differs from a grapheme count, while an aligned token span depends on the supplied text and indexing convention. A source-qualified label does not establish faithful translation, authorship or an interpretation.
Compare supplied source and target passage token counts.
When to use this tool
Use Parallel Passage Token Length Ratio when you already have sourceTokenCount, targetTokenCount and need to compare supplied source and target passage token counts.
How to use the tool and how it works
- Enter sourceTokenCount, targetTokenCount. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read targetToSourceRatio, difference. Use the output convention below.
Require source count positive safe and target count nonnegative safe; return target/source and target-source.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| sourceTokenCount | Source Token Count | Required. Safe integer; minimum 1. |
| targetTokenCount | Target Token Count | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| targetToSourceRatio | Target To Source Ratio | Required. Finite number. |
| difference | Difference | Required. Safe integer. |
{
"input": {
"sourceTokenCount": 80,
"targetTokenCount": 100
},
"output": {
"targetToSourceRatio": 1.25,
"difference": 20
}
} Limitations and assumptions
- Tokenization definitions must be comparable. No text is counted and no translation quality, completeness, alignment or semantic equivalence is inferred.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Read the original passage, translation and relevant editions alongside the stated editorial conventions. Verify context, source locators and attribution when preparing quotations or comparative arguments; local string operations do not make those scholarly judgments.
References
Similar or alternative tools
- Translation Omission Span Length
Count a supplied half-open translation omission token span.
- Poem Stanza Number Label
Label a supplied poem title and one-based stanza number.