Oral History Abstract Word Limit Truncation Point Finder
Locate the truncation point for an oral history abstract by counting its words and returning the leading portion that fits a word limit.
Description
Count whitespace-delimited abstract words and return the leading text that fits an exact safe-integer word limit.
Locate the truncation point for an oral history abstract by counting its words and returning the leading portion that fits a word limit.
When to use Oral History Abstract Word Limit Truncation Point Finder
- Count whitespace-delimited abstract words and return the leading text that fits an exact safe-integer word limit.
- Apply the same explicit rule consistently during ingest, quality control, reporting, or preservation planning.
- Expose records that need human review without silently rewriting the source data.
How the calculation works
Whitespace is normalized in the returned text, so original line breaks and repeated spaces are not preserved.
kept words = first min(total words, limit) tokens Interpreting the result
Whitespace is normalized in the returned text, so original line breaks and repeated spaces are not preserved.
Assumptions and limitations
- Whitespace tokenization is not language-aware and may not match editorial word-count rules for hyphens, CJK text, punctuation, or transcripts requiring semantic truncation.
- Preserve the original value and record the rule version when using this result in an archival workflow.