When you ask an AI to polish your prose, you might get better flow, but you might also lose your data. A single rounding error can turn a precise scientific finding into a vague, useless guess.
The Danger of Unconstrained Rewriting
The biggest risk in using Large Language Models (LLMs) for
editing is the tendency to paraphrase. While an AI is excellent at turning passive voice into active voice, it often views numbers as mere suggestions rather than immutable facts. For example, a researcher might input a precise finding like 'a 12.4% reduction across n = 418 participants (95% CI [8.1%, 16.7%], p = 0.0034)'. An unconstrained AI rewriter might decide to 'clean this up' by outputting 'over a 12% drop across roughly 400 subjects.' While the sentence is smoother, the scientific integrity is gone. The precision of the p-value and the exact confidence interval have been sacrificed for the sake of readability.
Decoupling Syntax from Data
To solve this, engineers and power users are moving toward a method called 'Deterministic Token Locking.' The core idea is to treat linguistic syntax (how the sentence is built) and quantitative invariants (the numbers themselves) as two separate layers. Instead of letting the AI see the numbers as part of the sentence, you essentially 'lock' them. This is done by extracting the critical data points—such as decimals, p-values, currency amounts, percentages, ISO dates, and DOIs—and replacing them with unique, temporary placeholders or 'slots' before the AI ever touches the text.
The Two-Stage Pipeline Approach
A reliable workflow for preserving data during an AI rewrite follows a strict two-stage pipeline: First, the Pre-Rewrite Extraction. In this stage, a script or a specific prompt identifies all 'immutable tokens.' These are the numbers and identifiers that must not change. Each one is assigned a unique ID. Second, the Post-Rewrite Verification. Once the AI has finished rearranging the words, a verification step compares the output against the original list of locked tokens. If the count of a specific token in the output does not match the count in the input, the system flags a failure. This ensures that if a trailing zero in a currency value like $14,750.00 is dropped, the error is caught immediately.
What You Should Protect
If you are building a prompt or a workflow to protect your data, you should focus on these specific token classes: Decimals and p-values, which are often paraphrased as 'statistically significant'; Currencies and contract thresholds, which are prone to rounding; DOIs and citations, which can be accidentally dropped; and Percentages, which are frequently simplified. By treating these as 'locked tokens,' you can enjoy the benefits of AI-driven stylistic improvements without the fear of data corruption.
















