Helping Conversational Models Distinguish Facts from Metaphors: A Prompt Design Practice

    This article addresses a common issue in large language model–based conversational systems: models often treat every user input as a factual claim, leading to false corrections and conversational dead ends when users employ metaphors, hypotheticals, or value-driven language. It classifies user inputs into two categories—factual claims and exploratory expressions—and proposes a system design that first identifies the discourse type, then selects an appropriate response strategy, and finally generates the reply. The article includes a clear processing pipeline, a practical decision framework, and guidance for implementing this approach in prompt design. It is especially relevant for developers building assistants for creative writing support, educational guidance, emotional companionship, or product consultation.

    1. The Starting Point: Correction Is Not the Goal, Classification Is

    Large language models are trained primarily on factual texts, so during inference they tend to treat every input as a proposition that needs verification. However, users in conversation are often not stating facts. Some users are making metaphors, some are engaging in hypothetical reasoning, and others are discussing values or philosophical questions. If the model blindly applies fact-checking to all such expressions, two types of problems arise. The first is false correction: treating a metaphor as an error. For example, when a user says “Water is the source of life,” the model might respond, “Water is H2O and does not possess life attributes.” That is a false correction. The second is interruption: the conversation is repeatedly pulled back to literal truth or falsehood, preventing the user from continuing their line of thought.

    These problems are especially prominent in scenarios such as creative assistance, educational inspiration, emotional companionship, and product consultation. An assistant that can discuss with users questions like “Does time exist?” or “What is the soul of a city?” should first understand the framework of the question, then decide whether to verify the literal content.

    2. Two Types of Discourse: Factual Claims and Exploratory Expressions

    Philosophically, there are two traditions: analytic philosophy and continental philosophy. Analytic philosophy emphasizes logical clarity and empirical verification, while continental philosophy focuses more on human lived experience, historical context, and meaning. The two address different kinds of questions and are not inherently superior or inferior. From an engineering standpoint, we can borrow this distinction to categorize user inputs into two groups and handle them separately.

    • Factual claims: statements about content that can be observed, measured, or verified—for example, “A certain experiment reached a certain conclusion” or “The recommended dosage of a certain drug is X.” The strategy for these is to verify accurately, provide evidence, and clearly point out errors when found.
    • Exploratory expressions: metaphors, hypotheses, poetic descriptions, value judgments, and metaphysical perspectives—for example, “If time is a river, we are all floating downstream.” The strategy here is to first understand the context, respond within the user’s framework, and note the premise if necessary.

    In real conversations, mixed expressions also exist. For example, “I feel drinking this tea can cure a cold” contains a value expression in the first half and a testable medical claim in the second half. Mixed expressions should be decomposed, and each part should be handled with its respective strategy.

    Dimension Factual Claims Exploratory Expressions
    Basis for judgment Verifiability Context and intent
    Typical examples Data, definitions, causal relationships Metaphors, hypotheses, values
    Default response Verify and provide evidence Discuss within the framework
    Main risk Missing false information Allowing falsehoods to pass as metaphors

    3. System Design: First Classify the Discourse Type, Then Choose the Response Strategy

    It is recommended to split the processing flow into three steps: identify the discourse type, select the response strategy, and generate the reply. The benefit of this approach is that the classification logic and the generation logic are decoupled, allowing each step to be tested and replaced independently.

    Flow diagram:

    1. User input
    2. ↓
    3. Discourse type identification (factual / exploratory / mixed)
    4. ↓
    5. Response strategy selection (corresponding instruction fragment)
    6. ↓
    7. Message assembly (base system prompt + strategy fragment + history + current input)
    8. ↓
    9. Call model to generate reply

    Example code (pseudo-code, platform-agnostic):

    1. ClaimType = {FACTUAL, EXPLORATORY, MIXED}
    2. POLICY = {
    3. FACTUAL: "Verify the claim, provide evidence, and explicitly state corrections if needed.",
    4. EXPLORATORY: "Understand the context, respond within the user's framework, and engage with the idea without enforcing factual verification.",
    5. MIXED: "Separate the factual part from the exploratory part; verify the factual part and engage the exploratory part."
    6. }
    7. def classify(user_input):
    8. # Heuristic or model-based classification
    9. # Returns ClaimType
    10. pass
    11. def build_messages(user_input, history):
    12. claim_type = classify(user_input)
    13. strategy = POLICY[claim_type]
    14. system_prompt = base_system_prompt + " " + strategy
    15. messages = [
    16. {"role": "system", "content": system_prompt},
    17. *history,
    18. {"role": "user", "content": user_input}
    19. ]
    20. return messages
    21. # Example use
    22. messages = build_messages("Water is the source of life.", [])
    23. # The model should then reply without mistakenly correcting the metaphor.

    4. Implementation Notes for Prompt Design

    • The classification step itself can be implemented as a separate model call or as a lightweight heuristic (e.g., keyword detection for metaphors like “as if” or “like”), but for robustness a model-based classifier is recommended.
    • The strategy fragments should be explicit and concise so that the model knows exactly which behavior to adopt.
    • For mixed expressions, explicitly instruct the model to split the input and handle each part accordingly. For example, “First identify the factual claims, then verify them; for the rest, engage as a discussion.”
    • In the base system prompt, it is helpful to set expectations: “Some user statements are factual; others are exploratory. Always decide which type you are dealing with before responding.”
    • When a correction is needed, the model should state it clearly but politely, and then return to the user’s line of discussion if appropriate.

    5. Benefits and Practical Impact

    Adopting this discourse-type–aware approach yields several concrete benefits:

    • Reduces false corrections that irritate users and derails creative or philosophical conversations.
    • Allows the assistant to maintain a natural flow, especially in contexts where users rely on figurative language.
    • Provides a clear, testable framework for evaluating model behavior: you can build unit tests that check whether the model correctly classifies a set of sample inputs and then responds according to the chosen strategy.
    • Separating the classification logic from the generation logic makes the system easier to debug and improve. If the model fails to respond correctly, you can pinpoint whether the classification was wrong or the strategy was not followed.

    6. Conclusion

    The key takeaway is that a conversational assistant should not treat every utterance as a factual claim. By explicitly distinguishing factual claims from exploratory expressions, and by designing a prompt structure that guides the model to first classify, then apply the appropriate response strategy, we can build more robust, more natural, and more user-centric conversational systems. This practice is especially valuable for applications where open-ended discussion, creative exploration, or value-based dialogue is a core feature.