Catherine Smith, Timothy Rumbell, John Barnden, Robert Hendley, Mark Lee, Alan Wallington, Li Zhang Proceedings of the 45th Annual Meeting of the Association for Computational Linguistics (2007)
Abstract
This paper describes a system designed to detect and analyze affective metaphors within Intelligent Conversational Agents (ICAs). By leveraging syntactic parsing and the WordNet lexical database, the system identifies metaphorical expressions and extracts their underlying emotional intent, moving beyond literal interpretations to improve the naturalness of human-computer interaction.
Introduction
Most Intelligent Conversational Agents (ICAs) are programmed to interpret language literally. While this works for functional tasks, it fails significantly in social or emotional contexts where metaphor is a primary vehicle for expression. For instance, if a user describes their room as a "bomb site," a literal-minded agent might incorrectly trigger emergency protocols rather than recognizing the user's frustration.
In the context of "e-drama"—unscripted, text-based role-play sessions—researchers found that approximately one in every 16 speech turns contains an affect-laden metaphor. To maintain conversational flow and empathy, an ICA must be able to detect these metaphors and determine the user's evaluative intent (e.g., hostility, embarrassment, or affection).
Methodology
The researchers developed a two-stage pipeline to process metaphors within an e-drama ICA framework.
1. Metaphor Recognition
The system first scans for "metaphoricity signals" using the RASP robust parser. By extracting Grammatical Relations (GRs), the system identifies specific syntactic structures that often signal metaphorical usage, such as:
- Equative structures: "X is/are Y" (e.g., "You are a pig").
- Direct address: "You Y" (e.g., "You cow").
- Similes and lexical markers: Phrases like "looks like" or "a bit of a."
Using a parser rather than simple keyword matching allows the system to handle modifiers and complex sentence structures, such as "You are a huge, smelly pig," while still identifying the core metaphorical relationship.
2. Affect Analysis
Once a potential metaphor is flagged, the system employs WordNet 2.0 to navigate the "is-a" hierarchy (taxonomy) to determine the emotional valence.
If the target of the metaphor is a person and the source is an animal or supernatural being, the system searches WordNet for a "person" synset under that category. For example, the term "cow" contains a hypernym for "unpleasant person," which the system maps to a negative affect.
To handle the nuances of human language, the authors implemented specific heuristics:
- The "Baby" Exception: While calling someone a "pig" is typically an insult, calling them a "piglet" or "lamb" often carries an affectionate tag. The system checks the WordNet "gloss" (definition) for terms like "young" to modify the affect score.
- Size Adjectives: The system processes adjectives like "big" as intensifiers, while "little" can signal either contempt or endearment depending on the base metaphor's polarity.
Data and Evaluation
The system was tested using a corpus of approximately 33,000 words derived from e-drama transcripts involving secondary school students. This dataset is notably "noisy," featuring frequent misspellings, abbreviations, and grammatical errors, providing a rigorous test for the RASP parser and the detection logic.
Quantitative Results
The success rate of metaphor identification varied significantly based on the linguistic signal used:
- "X is/are Y": 38% success (18 of 47 cases were truly metaphorical).
- "You Y": 61% success.
- "Like" / "Looks like": 81% success.
Qualitatively, the system demonstrated a sophisticated ability to distinguish between similar metaphors. It correctly identified "You little rat" as contemptuous, while recognizing "You little piggy" as an affectionate metaphor despite the negative base animal.
Discussion and Limitations
The core insight of this research is the concept of affect carry-over, where the emotional weight of a source term (a "bomb site" is negative) is transferred to the target (the "room" is negative). By focusing on this transfer rather than deep analogical reasoning, the system remains computationally efficient for real-time interaction.
However, several limitations remain:
- Parser Dependency: The system’s performance is tethered to the RASP parser. In highly informal or "text-speak" environments, parser failure leads to detection failure.
- Domain Scope: Currently, the system is optimized for animal and supernatural metaphors. It does not yet handle broader metaphorical categories or complex, view-neutral mappings.
- Evaluation Complexity: The idiosyncratic nature of chat data makes large-scale automated evaluation difficult, requiring manual verification of metaphorical intent.
Conclusion
By combining robust syntactic parsing with hierarchical lexical databases, the authors have demonstrated that ICAs can successfully navigate the emotional landscape of non-literal language. Future work will focus on expanding the range of detectable metaphors and improving the system's resilience to the linguistic chaos of real-time human chat.
Summary updated