Fundamentals
Request exact text or normalized text from AI
Define which values must be copied character for character and which can be transformed for readability.
State whether meaning or exact spelling is the contract
An assistant can improve sentence rhythm while preserving the underlying idea. If it is copying an edition title, code, or identifier, exact characters may matter more than style. List those fields separately. W3C’s introduction to encoding explains how characters are stored, while prompting guidance encourages explicit instructions about what the result must preserve. 1 3
Give a specific transformation when normalization is allowed
“Clean this text” leaves unclear whether to replace dashes, change repeated spaces, or fix capitalization. For repeated data processing, state exactly which edits can occur and store the original text in a separate field when it might be needed later. For a configuration file, consult the applicable format because some spaces or punctuation carry syntactic meaning. YAML, for example, uses indentation to represent structure. 2
Compare a tricky value after export
Use a title with an accent, an identifier containing a dash, and a field with surrounding spaces. Check the cleaned text and the retained exact fields. Then open it in the intended reader. If characters changed during import, fix the file-handling method before adjusting the assistant’s prompt. If the prompt made a permitted change unclear, narrow that transformation to the relevant field.
Keep embedded line breaks in the original text field when they carry meaning, as they can disappear in the cleaned display.