Context
What Is Context?
Context, in computing and information systems, is any information that can be used to characterize the situation of an entity, whether that entity is a person, a place, a computational process, or a physical object. The concept formalizes the intuition that the meaning or appropriate response to a signal depends on the signal itself and on the surrounding circumstances in which it occurs. Context draws on linguistics, cognitive science, human-computer interaction, and distributed systems, and it serves as a foundational concept for fields ranging from natural language processing to pervasive computing.
The definition most widely cited in computing research comes from Abowd and Dey's 1999 formulation, which identified location, identity, activity, and time as the four primary context dimensions. Subsequent work has expanded this list to include device capability, network conditions, social relationships, and user emotional state. What unifies these dimensions is that they are all situational attributes that can alter how a system should behave or how an utterance should be interpreted.
Context in Natural Language Processing
In computational linguistics and natural language processing (NLP), context is the surrounding text or discourse that resolves ambiguity in word sense, reference, and pragmatic intent. A word like "bank" has multiple senses whose disambiguation depends on words appearing nearby in the same sentence or passage. IEEE research on context ambiguity resolution demonstrates that methods relying on field association knowledge across sentence boundaries outperform purely local approaches because many ambiguities require information beyond the immediately adjacent tokens. Large language models trained on transformer architectures now represent context through attention mechanisms that weight the contribution of every token in a window when producing a representation for any given position, effectively encoding a soft notion of contextual relevance without hard boundaries.
Context in Pervasive and Ubiquitous Computing
In pervasive computing, context is sensed from physical and digital environments through heterogeneous data streams: location from GPS or Wi-Fi triangulation, activity from accelerometers and gyroscopes, proximity from Bluetooth beacons, and physiological state from wearable sensors. Context-aware systems use this information to adapt their behavior without explicit user commands. The Stanford pragmatics and computational linguistics work distinguishes between context as an input to interpretation and context as a record of prior interaction state maintained across dialogue turns, a distinction that applies equally to embodied computing systems managing session history. Middleware platforms designed for pervasive systems typically maintain a context model that is updated continuously and made available to applications through a query interface.
Pragmatics and Meaning
Pragmatics, the branch of linguistics concerned with language use in context, provides the theoretical vocabulary that computing systems draw on when reasoning about intent rather than literal content. Speech act theory, Gricean maxims of cooperative conversation, and reference resolution algorithms all depend on representations of shared situational context between interlocutors. In dialogue systems and virtual assistants, context tracking maintains discourse state across multiple turns so that pronouns, ellipsis, and implicit references can be resolved correctly. MIT Press computational linguistics research examines how NLP systems have moved from sentence-level analysis toward discourse and document-level models that require richer context representations.
Applications
Context has applications in a wide range of disciplines, including:
- Conversational AI and dialogue systems, resolving cross-turn reference and intent
- Mobile and wearable computing, adapting device behavior to user activity and location
- Recommender systems, personalizing suggestions based on situational factors
- Ambient assisted living, inferring user needs from sensor-derived activity context
- Programming language environments, providing code completion based on surrounding code structure